Software Archive
Read-only legacy content
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
17065 Discussions

[ QUESTION] How to manually do VM exit in the guest?

Le__Nam
Beginner
493 Views

I need to define a new exit reason of my own and want to set the exit reason in VMCS before switching to the host KVM module,then do something in KVM hypervisor for this reason.But I notice the vmcs_writel() is static,how can I do it?

THANKS

0 Kudos
3 Replies
Quoc-Thai_L_Intel
493 Views

Found this slide set online, it may have some information for you on the VM exit. URL: https://www.usenix.org/sites/default/files/conference/protected-files/agesen_atc12_slides.pdf

-Thai

Quoc-Thai_L_Intel
493 Views

Here is some examples that I found online on vmcs_write: https://www.fclose.com/linux-kernels/47396/x86kvmvmx-preserve-cr4-across-vm-entry-linux-3-4-106/

-Thai

Quoc-Thai_L_Intel
493 Views
Reply