mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-07 17:46:15 +00:00
hv: remove cr3 handling from cr_access_vmexit_handler
Guest CR3 read/write operations are not trapped. Remove CR3 handling in cr_access_vmexit_handler. Also remove unused API vmx_read_cr3. Signed-off-by: Binbin Wu <binbin.wu@intel.com> Reviewed-by: Kevin Tian <kevin.tian@intel.com>
This commit is contained in:
@@ -292,21 +292,10 @@ int cr_access_vmexit_handler(struct vcpu *vcpu)
|
||||
/* mov to cr0 */
|
||||
vmx_write_cr0(vcpu, *regptr);
|
||||
break;
|
||||
|
||||
case 0x03:
|
||||
/* mov to cr3 */
|
||||
vmx_write_cr3(vcpu, *regptr);
|
||||
break;
|
||||
|
||||
case 0x04:
|
||||
/* mov to cr4 */
|
||||
vmx_write_cr4(vcpu, *regptr);
|
||||
break;
|
||||
|
||||
case 0x13:
|
||||
/* mov from cr3 */
|
||||
vmx_read_cr3(vcpu, regptr);
|
||||
break;
|
||||
#if 0
|
||||
case 0x14:
|
||||
/* mov from cr4 (this should not happen) */
|
||||
|
||||
Reference in New Issue
Block a user