[PATCH 1/6] KVM: x86: Don't exit to userspace when SEV-ES INS is successful

From: Sean Christopherson
Date: Thu Oct 21 2021 - 19:22:27 EST


Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>
---
arch/x86/kvm/x86.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index c59b63c56af9..c245edfd974c 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -12509,7 +12509,7 @@ static int kvm_sev_es_ins(struct kvm_vcpu *vcpu, unsigned int size,
vcpu->arch.complete_userspace_io = complete_sev_es_emulated_ins;
}

- return 0;
+ return ret;
}

int kvm_sev_es_string_io(struct kvm_vcpu *vcpu, unsigned int size,
--
2.33.0.1079.g6e70778dc9-goog


--kTbyx1pw6IySRUfp
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment;
filename="0002-KVM-x86-WARN-if-emulated-kernel-port-I-O-fails-after.patch"