Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

How to manually do VM exit in the guest?

198710
Beginner
917 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?
0 Kudos
1 Solution
Tracy_Camp
New Contributor I
917 Views
You can't define new exit reasons per se, but you can use a vmcall instruction to cause a vmexit from a guest. You can establish some form of calling convention around the vmexit that you can then setup in the host context and decode in the hypervisor context to indicate your 'reason'. I've never read KVM source, but I suspect you will find it already has such a protocol established around 'vmexit'.

View solution in original post

0 Kudos
2 Replies
Tracy_Camp
New Contributor I
918 Views
You can't define new exit reasons per se, but you can use a vmcall instruction to cause a vmexit from a guest. You can establish some form of calling convention around the vmexit that you can then setup in the host context and decode in the hypervisor context to indicate your 'reason'. I've never read KVM source, but I suspect you will find it already has such a protocol established around 'vmexit'.
0 Kudos
adamfast
Beginner
917 Views
vm is excellent tool to work with a different platform in a single window
0 Kudos
Reply