diff options
| author | Paolo Bonzini <[email protected]> | 2021-10-25 16:14:31 +0000 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2021-10-27 14:58:26 +0000 |
| commit | 9b0971ca7fc75daca80c0bb6c02e96059daea90a (patch) | |
| tree | 0c2f994c2eaeffaa02392cbe3e08909d70f61b71 /scripts/gcc-plugins/randomize_layout_plugin.c | |
| parent | KVM: x86/xen: Fix kvm_xen_has_interrupt() sleeping in kvm_vcpu_block() (diff) | |
| download | kernel-9b0971ca7fc75daca80c0bb6c02e96059daea90a.tar.gz kernel-9b0971ca7fc75daca80c0bb6c02e96059daea90a.zip | |
KVM: SEV-ES: fix another issue with string I/O VMGEXITs
If the guest requests string I/O from the hypervisor via VMGEXIT,
SW_EXITINFO2 will contain the REP count. However, sev_es_string_io
was incorrectly treating it as the size of the GHCB buffer in
bytes.
This fixes the "outsw" test in the experimental SEV tests of
kvm-unit-tests.
Cc: [email protected]
Fixes: 7ed9abfe8e9f ("KVM: SVM: Support string IO operations for an SEV-ES guest")
Reported-by: Marc Orr <[email protected]>
Tested-by: Marc Orr <[email protected]>
Reviewed-by: Marc Orr <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions
