Displaying 2 results from an estimated 2 matches for "nvmx_update_tpr_threshold".
2012 Dec 18
0
[PATCH] nested vmx: nested TPR shadow/threshold emulation
...vapic_va = hvm_map_guest_frame_ro(vapic_gpfn);
+ vapic_mfn = virt_to_mfn(vapic_va);
+ __vmwrite(VIRTUAL_APIC_PAGE_ADDR, (vapic_mfn << PAGE_SHIFT));
+ hvm_unmap_guest_frame(vapic_va);
+ }
+ else
+ __vmwrite(VIRTUAL_APIC_PAGE_ADDR, 0);
+}
+
+static void nvmx_update_tpr_threshold(struct vcpu *v)
+{
+ struct nestedvcpu *nvcpu = &vcpu_nestedhvm(v);
+ u32 ctrl = __n2_exec_control(v);
+ if ( ctrl & CPU_BASED_TPR_SHADOW )
+ __vmwrite(TPR_THRESHOLD, __get_vvmcs(nvcpu->nv_vvmcx, TPR_THRESHOLD));
+ else
+ __vmwrite(TPR_THRESHOLD, 0);
}
stati...
2013 Jan 07
9
[PATCH v2 0/3] nested vmx bug fixes
Changes from v1 to v2:
- Use a macro to replace the hardcode in patch 1/3.
This patchset fixes issues about IA32_VMX_MISC MSR emulation, VMCS guest area
synchronization about PAGE_FAULT_ERROR_CODE_MASK/PAGE_FAULT_ERROR_CODE_MATCH,
and CR0/CR4 emulation.
Please help to review and pull.
Thanks,
Dongxiao
Dongxiao Xu (3):
nested vmx: emulate IA32_VMX_MISC MSR
nested vmx: synchronize page