KVM: MMU: audit: allow audit more guests at the same time
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Thu, 23 Dec 2010 08:08:35 +0000 (16:08 +0800)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:31:17 +0000 (11:31 +0200)
commitb034cf0105235e65ee1b0161dbe8fef0338d06e7
treeb6cbc4df50939c459d5557c3a502f4f1cd1f28c5
parentaff48baa34c033318ad322ecbf2e4bcd891b29ca
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>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/mmu.c
arch/x86/kvm/mmu_audit.c