diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2007-07-30 16:41:57 +1000 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-10-13 10:18:21 +0200 |
commit | 3077c4513c46f66537c1205acc464e49c9847dc0 (patch) | |
tree | c259f223d6815528d357b338c4915783ebc8c8ac /drivers/kvm/svm.c | |
parent | 8b9cf98cc7ea7354d6d4cbc4ffdb18a26a1129d3 (diff) | |
download | blackbird-op-linux-3077c4513c46f66537c1205acc464e49c9847dc0.tar.gz blackbird-op-linux-3077c4513c46f66537c1205acc464e49c9847dc0.zip |
KVM: Remove three magic numbers
There are several places where hardcoded numbers are used in place of
the easily-available constant, which is poor form.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/svm.c')
-rw-r--r-- | drivers/kvm/svm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/kvm/svm.c b/drivers/kvm/svm.c index 9a840e08b207..c18f0b2d3d3e 100644 --- a/drivers/kvm/svm.c +++ b/drivers/kvm/svm.c @@ -241,7 +241,7 @@ static void skip_emulated_instruction(struct kvm_vcpu *vcpu) printk(KERN_DEBUG "%s: NOP\n", __FUNCTION__); return; } - if (svm->next_rip - svm->vmcb->save.rip > 15) { + if (svm->next_rip - svm->vmcb->save.rip > MAX_INST_SIZE) { printk(KERN_ERR "%s: ip 0x%llx next 0x%llx\n", __FUNCTION__, svm->vmcb->save.rip, |