Add the guest physical address and r/w/x bits to

the paging exit in preparation for a rework of
bhyve MMIO handling.

Reviewed by:	neel
Obtained from:	NetApp
This commit is contained in:
Peter Grehan 2012-10-12 23:12:19 +00:00
parent 3019332f6d
commit 13ec93719a
2 changed files with 4 additions and 0 deletions

View File

@ -266,6 +266,8 @@ struct vm_exit {
} inout;
struct {
uint64_t cr3;
uint64_t gpa;
int rwx;
} paging;
/*
* VMX specific payload. Used when there is no "better"

View File

@ -1289,6 +1289,8 @@ vmx_exit_process(struct vmx *vmx, int vcpu, struct vm_exit *vmexit)
if (!handled) {
vmexit->exitcode = VM_EXITCODE_PAGING;
vmexit->u.paging.cr3 = cr3;
vmexit->u.paging.gpa = gpa;
vmexit->u.paging.rwx = qual & 0x7;
}
break;
default: