From: Jan Kiszka <[email protected]>

vcpu_handle_msr_read already takes care of accounting.

Fixes: 3e9c91302ee5 ("x86: Push MSR statistic down to the dispatching points")
Signed-off-by: Jan Kiszka <[email protected]>
---
 hypervisor/arch/x86/vmx.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/hypervisor/arch/x86/vmx.c b/hypervisor/arch/x86/vmx.c
index 5a69710d..f610e507 100644
--- a/hypervisor/arch/x86/vmx.c
+++ b/hypervisor/arch/x86/vmx.c
@@ -1173,7 +1173,6 @@ void vcpu_handle_exit(struct per_cpu *cpu_data)
                        return;
                break;
        case EXIT_REASON_MSR_READ:
-               stats[JAILHOUSE_CPU_STAT_VMEXITS_MSR_OTHER]++;
                if (vcpu_handle_msr_read())
                        return;
                break;
-- 
2.35.3

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/778388b9-9ac4-e5b2-0077-78d78501d587%40siemens.com.

Reply via email to