diff options
author | Xiao Guangrong <xiaoguangrong@cn.fujitsu.com> | 2010-12-23 03:08:35 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-01-12 04:31:17 -0500 |
commit | b034cf0105235e65ee1b0161dbe8fef0338d06e7 (patch) | |
tree | b6cbc4df50939c459d5557c3a502f4f1cd1f28c5 /arch/x86/include/asm | |
parent | aff48baa34c033318ad322ecbf2e4bcd891b29ca (diff) |
KVM: MMU: audit: allow audit more guests at the same time
It only allows to audit one guest in the system since:
- 'audit_point' is a glob variable
- mmu_audit_disable() is called in kvm_mmu_destroy(), so audit is disabled
after a guest exited
this patch fix those issues then allow to audit more guests at the same time
Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/include/asm')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index 95f026be8b5e..aa75f21a9fba 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h | |||
@@ -461,6 +461,10 @@ struct kvm_arch { | |||
461 | /* fields used by HYPER-V emulation */ | 461 | /* fields used by HYPER-V emulation */ |
462 | u64 hv_guest_os_id; | 462 | u64 hv_guest_os_id; |
463 | u64 hv_hypercall; | 463 | u64 hv_hypercall; |
464 | |||
465 | #ifdef CONFIG_KVM_MMU_AUDIT | ||
466 | int audit_point; | ||
467 | #endif | ||
464 | }; | 468 | }; |
465 | 469 | ||
466 | struct kvm_vm_stat { | 470 | struct kvm_vm_stat { |