diff options
author | neel <neel@FreeBSD.org> | 2015-05-28 17:37:01 +0000 |
---|---|---|
committer | neel <neel@FreeBSD.org> | 2015-05-28 17:37:01 +0000 |
commit | 3f2b4fc770fb5b735b286cf251b967cfa4afdf12 (patch) | |
tree | bf06da9d3f5b0d4207c8486e7021daaf66ac42b5 /sys/amd64/vmm/vmm_stat.c | |
parent | 67b3bbe09c36f09dda55d0e010c9d1bf12cc6073 (diff) | |
download | FreeBSD-src-3f2b4fc770fb5b735b286cf251b967cfa4afdf12.zip FreeBSD-src-3f2b4fc770fb5b735b286cf251b967cfa4afdf12.tar.gz |
Fix non-deterministic delays when accessing a vcpu that was in "running" or
"sleeping" state. This is done by forcing the vcpu to transition to "idle"
by returning to userspace with an exit code of VM_EXITCODE_REQIDLE.
MFC after: 2 weeks
Diffstat (limited to 'sys/amd64/vmm/vmm_stat.c')
-rw-r--r-- | sys/amd64/vmm/vmm_stat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/amd64/vmm/vmm_stat.c b/sys/amd64/vmm/vmm_stat.c index 4ae5fb9..7e2f64d 100644 --- a/sys/amd64/vmm/vmm_stat.c +++ b/sys/amd64/vmm/vmm_stat.c @@ -164,6 +164,7 @@ VMM_STAT(VMEXIT_NESTED_FAULT, "vm exits due to nested page fault"); VMM_STAT(VMEXIT_INST_EMUL, "vm exits for instruction emulation"); VMM_STAT(VMEXIT_UNKNOWN, "number of vm exits for unknown reason"); VMM_STAT(VMEXIT_ASTPENDING, "number of times astpending at exit"); +VMM_STAT(VMEXIT_REQIDLE, "number of times idle requested at exit"); VMM_STAT(VMEXIT_USERSPACE, "number of vm exits handled in userspace"); VMM_STAT(VMEXIT_RENDEZVOUS, "number of times rendezvous pending at exit"); VMM_STAT(VMEXIT_EXCEPTION, "number of vm exits due to exceptions"); |