Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 215819
b: refs/heads/master
c: 30644b9
h: refs/heads/master
i:
  215817: d5e371e
  215815: 8cde2fd
v: v3
  • Loading branch information
Xiao Guangrong authored and Avi Kivity committed Oct 24, 2010
1 parent 9efb0b9 commit e2e04f4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eb2591865a234c6fb1162085d9b277236fa890b6
refs/heads/master: 30644b902c5eef5328d37a2e15f1921aaca2588b
7 changes: 7 additions & 0 deletions trunk/arch/x86/kvm/mmu_audit.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
*
*/

#include <linux/ratelimit.h>

static const char *audit_msg;

typedef void (*inspect_spte_fn) (struct kvm_vcpu *vcpu, u64 *sptep, int level);
Expand Down Expand Up @@ -228,6 +230,11 @@ static void audit_vcpu_spte(struct kvm_vcpu *vcpu)

static void kvm_mmu_audit(void *ignore, struct kvm_vcpu *vcpu, int audit_point)
{
static DEFINE_RATELIMIT_STATE(ratelimit_state, 5 * HZ, 10);

if (!__ratelimit(&ratelimit_state))
return;

audit_msg = audit_point_name[audit_point];
audit_all_active_sps(vcpu->kvm);
audit_vcpu_spte(vcpu);
Expand Down

0 comments on commit e2e04f4

Please sign in to comment.