KVM: MMU audit: audit_mappings tweaks
authorMarcelo Tosatti <mtosatti@redhat.com>
Wed, 10 Jun 2009 15:27:07 +0000 (12:27 -0300)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 05:32:54 +0000 (08:32 +0300)
commit2aaf65e8c40468b198b709a765abe311f91c1a1d
treebdd3804ee2c76136c914798850ed760be40e8dc8
parent48fc03174b125238c541cf00acd5e9b9dff6b9ba
KVM: MMU audit: audit_mappings tweaks

- Fail early in case gfn_to_pfn returns is_error_pfn.
- For the pre pte write case, avoid spurious "gva is valid but spte is notrap"
  messages (the emulation code does the guest write first, so this particular
  case is OK).

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/mmu.c