Commit 56edaf0c authored by Shaoqin Huang's avatar Shaoqin Huang Committed by Tomasz Nowicki
Browse files

ANDROID: pkvm: x86: Add support of cpuid for protected VM in pkvm



Protected VM can use cpuid to detect if it is running on pkvm
hypervisor, so add support for emulating cpuid for protected VM in pkvm.

PKVM reuse the cpuid for detecting KVM, thus pkvm can intercept the
hypervisor detection once PKVM has been enabled.

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

Change-Id: I7cab988b3e6a578e851eb49e45c072a857fb900b
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 487ac5a3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment