Commit 2bd8ee5b authored by Shaoqin Huang's avatar Shaoqin Huang Committed by Tomasz Nowicki
Browse files

ANDROID: pkvm: x86: Add pkvm guest virtualization exception (#VE)



This patch includes the guest support for the virtualization exception.
When guest do the MMIO operation, guest will receive #VE and jump to the
exception handler.

In the #VE handler, guest will first use hypercall to get #VE
information, and then it will do instruction decode by itself. And using
hypercall to pass the mmio information to KVM to emulate it.

After KVM emulate this MMIO, guest will return from the #VE handler.
After it return, guest execute the MMIO operation success, and continue
to run.

Bug: 395299836
Test: Boot, verify cpus are de-privileged and run a minimal protected vm.

Change-Id: I46bca42557dd995634dce72ae04f9e7824dd1818
Signed-off-by: default avatarShaoqin Huang <shaoqin.huang@intel.com>
Reviewed-by: default avatarJason Chen CJ <jason.cj.chen@intel.com>
Signed-off-by: default avatarVineeth Pillai <vineethrp@google.com>
parent 49e0bb62
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment