diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2007-07-17 23:05:58 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-10-13 04:18:18 -0400 |
commit | 9eb829ced8c6f2e43a3a644ddf1279ffeee38a33 (patch) | |
tree | ea8360405de41110dd0063a9838447c5a7ab2632 /drivers/kvm/kvm.h | |
parent | 66aee91aaab8f998d28a61ed7733be17ad8e6d8f (diff) |
KVM: Trivial: Use standard BITMAP macros, open-code userspace-exposed header
Creating one's own BITMAP macro seems suboptimal: if we use manual
arithmetic in the one place exposed to userspace, we can use standard
macros elsewhere.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r-- | drivers/kvm/kvm.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h index 25439a5968f9..cec5f057f3bf 100644 --- a/drivers/kvm/kvm.h +++ b/drivers/kvm/kvm.h | |||
@@ -324,8 +324,7 @@ struct kvm_vcpu { | |||
324 | int guest_mode; | 324 | int guest_mode; |
325 | unsigned long requests; | 325 | unsigned long requests; |
326 | unsigned long irq_summary; /* bit vector: 1 per word in irq_pending */ | 326 | unsigned long irq_summary; /* bit vector: 1 per word in irq_pending */ |
327 | #define NR_IRQ_WORDS KVM_IRQ_BITMAP_SIZE(unsigned long) | 327 | DECLARE_BITMAP(irq_pending, KVM_NR_INTERRUPTS); |
328 | unsigned long irq_pending[NR_IRQ_WORDS]; | ||
329 | unsigned long regs[NR_VCPU_REGS]; /* for rsp: vcpu_load_rsp_rip() */ | 328 | unsigned long regs[NR_VCPU_REGS]; /* for rsp: vcpu_load_rsp_rip() */ |
330 | unsigned long rip; /* needs vcpu_load_rsp_rip() */ | 329 | unsigned long rip; /* needs vcpu_load_rsp_rip() */ |
331 | 330 | ||