Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162819772
D40245.id122348.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D40245.id122348.diff
View Options
diff --git a/usr.sbin/bhyve/bhyverun.c b/usr.sbin/bhyve/bhyverun.c
--- a/usr.sbin/bhyve/bhyverun.c
+++ b/usr.sbin/bhyve/bhyverun.c
@@ -198,17 +198,6 @@
static void vm_loop(struct vmctx *ctx, struct vcpu *vcpu);
-static struct bhyvestats {
- uint64_t vmexit_bogus;
- uint64_t vmexit_reqidle;
- uint64_t vmexit_hlt;
- uint64_t vmexit_pause;
- uint64_t vmexit_mtrap;
- uint64_t vmexit_inst_emul;
- uint64_t cpu_switch_rotate;
- uint64_t cpu_switch_direct;
-} stats;
-
static struct vcpu_info {
struct vmctx *ctx;
struct vcpu *vcpu;
@@ -753,8 +742,6 @@
{
assert(vmrun->vm_exit->inst_length == 0);
- stats.vmexit_bogus++;
-
return (VMEXIT_CONTINUE);
}
@@ -764,8 +751,6 @@
{
assert(vmrun->vm_exit->inst_length == 0);
- stats.vmexit_reqidle++;
-
return (VMEXIT_CONTINUE);
}
@@ -773,8 +758,6 @@
vmexit_hlt(struct vmctx *ctx __unused, struct vcpu *vcpu __unused,
struct vm_run *vmrun __unused)
{
- stats.vmexit_hlt++;
-
/*
* Just continue execution with the next instruction. We use
* the HLT VM exit as a way to be friendly with the host
@@ -787,8 +770,6 @@
vmexit_pause(struct vmctx *ctx __unused, struct vcpu *vcpu __unused,
struct vm_run *vmrun __unused)
{
- stats.vmexit_pause++;
-
return (VMEXIT_CONTINUE);
}
@@ -798,8 +779,6 @@
{
assert(vmrun->vm_exit->inst_length == 0);
- stats.vmexit_mtrap++;
-
#ifdef BHYVE_SNAPSHOT
checkpoint_cpu_suspend(vcpu_id(vcpu));
#endif
@@ -822,8 +801,6 @@
vme = vmrun->vm_exit;
- stats.vmexit_inst_emul++;
-
vie = &vme->u.inst_emul.vie;
if (!vie->decoded) {
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jul 18, 5:41 AM (5 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35190623
Default Alt Text
D40245.id122348.diff (1 KB)
Attached To
Mode
D40245: bhyve: Remove the exitcode stats structure
Attached
Detach File
Event Timeline
Log In to Comment