diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2007-07-31 20:48:02 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-10-13 04:18:22 -0400 |
commit | f02424785ab83bab8283ad33044284f749c08db8 (patch) | |
tree | 020d73469f801e33012702c58233e776381d3008 /drivers/kvm/vmx.c | |
parent | 33830b4f5bdf2bc21d0c10d38beffdce8edcded7 (diff) |
KVM: Add and use pr_unimpl for standard formatting of unimplemented features
All guest-invokable printks should be ratelimited to prevent malicious
guests from flooding logs. This is a start.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/vmx.c')
-rw-r--r-- | drivers/kvm/vmx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c index 3bf36508c84b..ae54d9a24ce8 100644 --- a/drivers/kvm/vmx.c +++ b/drivers/kvm/vmx.c | |||
@@ -1920,7 +1920,7 @@ static int handle_cr(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) | |||
1920 | break; | 1920 | break; |
1921 | } | 1921 | } |
1922 | kvm_run->exit_reason = 0; | 1922 | kvm_run->exit_reason = 0; |
1923 | printk(KERN_ERR "kvm: unhandled control register: op %d cr %d\n", | 1923 | pr_unimpl(vcpu, "unhandled control register: op %d cr %d\n", |
1924 | (int)(exit_qualification >> 4) & 3, cr); | 1924 | (int)(exit_qualification >> 4) & 3, cr); |
1925 | return 0; | 1925 | return 0; |
1926 | } | 1926 | } |