Avi,
I guess I only really care about intercepting ring 0 -> ring 3
transitions in the guest. Is there an easier way of intercepting these?
Never mind about this. I figured out a solution to my problem that
didn't need to intercept these transitions.
Unfortunately, now I have a new problem. I'm getting a segfault in
gfn_to_rmap caused by gfn_to_memslot returning NULL. Would someone mind
explaining this code to me? I don't really understand what it is doing.
Also, does the current code assume that any guest page in any level can
be shadowed more than once, or are only certain levels allowed to be
shadowed multiple times?
Thank you!
Marek
Marek
Avi Kivity wrote:
On 04/22/2010 08:26 AM, Marek Olszewski wrote:
Under VMX without EPT, I do not seeing any VM Exits due to task
switches. Is there a way to enable these? I'm looking to intercept
the guest whenever it does a iret.
See EXIT_REASON_TASK_SWITCH. However, that won't fire on any iret,
only irets that generate task switches. You can ask for exits on
irets by setting CPU_BASED_VIRTUAL_NMI_PENDING and
GUEST_INTR_STATE_NMI, and looking for EXIT_REASON_NMI_WINDOW.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html