Commit d07898e
KVM: x86: Don't WARN if userspace mucks with RCX during string I/O exit
Replace a WARN with a comment to call out that userspace can modify RCX
during an exit to userspace to handle string I/O. KVM doesn't actually
support changing the rep count during an exit, i.e. the scenario can be
ignored, but the WARN needs to go as it's trivial to trigger from
userspace.
Cc: stable@vger.kernel.org
Fixes: 3b27de2 ("KVM: x86: split the two parts of emulator_pio_in")
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20211025201311.1881846-2-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>1 parent 777ab82 commit d07898e
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7122 | 7122 | | |
7123 | 7123 | | |
7124 | 7124 | | |
7125 | | - | |
| 7125 | + | |
| 7126 | + | |
| 7127 | + | |
| 7128 | + | |
| 7129 | + | |
| 7130 | + | |
| 7131 | + | |
7126 | 7132 | | |
7127 | 7133 | | |
7128 | 7134 | | |
| |||
7131 | 7137 | | |
7132 | 7138 | | |
7133 | 7139 | | |
7134 | | - | |
7135 | 7140 | | |
7136 | 7141 | | |
7137 | 7142 | | |
| |||
0 commit comments