Software Archive
Read-only legacy content
17061 Discussions

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

Le__Nam
Beginner
1,682 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
1,682 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

0 Kudos
Quoc-Thai_L_Intel
1,682 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

0 Kudos
Quoc-Thai_L_Intel
1,682 Views
0 Kudos
Reply