diff options
author | Xiao Guangrong <xiaoguangrong@cn.fujitsu.com> | 2010-12-23 16:08:35 +0800 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-01-12 11:31:17 +0200 |
commit | b034cf0105235e65ee1b0161dbe8fef0338d06e7 (patch) | |
tree | b6cbc4df50939c459d5557c3a502f4f1cd1f28c5 /arch/x86/include | |
parent | aff48baa34c033318ad322ecbf2e4bcd891b29ca (diff) | |
download | blackbird-op-linux-b034cf0105235e65ee1b0161dbe8fef0338d06e7.tar.gz blackbird-op-linux-b034cf0105235e65ee1b0161dbe8fef0338d06e7.zip |
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')
-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 { /* fields used by HYPER-V emulation */ u64 hv_guest_os_id; u64 hv_hypercall; + + #ifdef CONFIG_KVM_MMU_AUDIT + int audit_point; + #endif }; struct kvm_vm_stat { |