diff options
author | neel <neel@FreeBSD.org> | 2014-09-27 22:15:50 +0000 |
---|---|---|
committer | neel <neel@FreeBSD.org> | 2014-09-27 22:15:50 +0000 |
commit | 09ab9e29373f2b48f72ff71789f6afc0e01c2c91 (patch) | |
tree | 946f5a62ce46b853d35291bd0a8f36622d72980b /sys/amd64/vmm/vmm.c | |
parent | 11f176f81434584587aa1973f46fae8948a837b2 (diff) | |
parent | 54f38c8738077e829c5528976a3269afc01ff7ee (diff) | |
download | FreeBSD-src-09ab9e29373f2b48f72ff71789f6afc0e01c2c91.zip FreeBSD-src-09ab9e29373f2b48f72ff71789f6afc0e01c2c91.tar.gz |
IFC @r272185
Diffstat (limited to 'sys/amd64/vmm/vmm.c')
-rw-r--r-- | sys/amd64/vmm/vmm.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/amd64/vmm/vmm.c b/sys/amd64/vmm/vmm.c index 26f7c59..d73c7b3 100644 --- a/sys/amd64/vmm/vmm.c +++ b/sys/amd64/vmm/vmm.c @@ -1197,8 +1197,12 @@ vm_handle_paging(struct vm *vm, int vcpuid, bool *retu) if (ftype == VM_PROT_READ || ftype == VM_PROT_WRITE) { rv = pmap_emulate_accessed_dirty(vmspace_pmap(vm->vmspace), vme->u.paging.gpa, ftype); - if (rv == 0) + if (rv == 0) { + VCPU_CTR2(vm, vcpuid, "%s bit emulation for gpa %#lx", + ftype == VM_PROT_READ ? "accessed" : "dirty", + vme->u.paging.gpa); goto done; + } } map = &vm->vmspace->vm_map; @@ -1239,6 +1243,8 @@ vm_handle_inst_emul(struct vm *vm, int vcpuid, bool *retu) paging = &vme->u.inst_emul.paging; cpu_mode = paging->cpu_mode; + VCPU_CTR1(vm, vcpuid, "inst_emul fault accessing gpa %#lx", gpa); + /* Fetch, decode and emulate the faulting instruction */ if (vie->num_valid == 0) { /* |