Commit 94cb6d29 authored by Chuanxiao Dong's avatar Chuanxiao Dong Committed by Tomasz Nowicki
Browse files

ANDROID: pkvm: vmx: Handle IO vmexit



For the pVM, only non-string IO vmexit is allowed for the host KVM to
emulate. The string IO vmexit requires instruction decoding and
emulating, so it is not supported. The pkvm hypervisor will inject #GP
to the guest if the string IO vmexit happens. The necessary pVM vcpu
registers are shared to the host KVM to emulate the IO instruction. The
pkvm hypervisor will update the guest registers accordingly before
entering the guest.

For the npVM, both non-string/string IO vmexits are supported.

Bug: 391539939
Test: pKVM works
Upstream-Task: 402758258

Change-Id: I8a44ecd5536042ab72e641127e81b7a4852e894a
Signed-off-by: default avatarChuanxiao Dong <chuanxiao.dong@intel.com>
Signed-off-by: default avatarDmytro Maluka <dmaluka@google.com>
parent 820c8513
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment