projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2023a29
)
KVM: use vcpu_id instead of bsp_vcpu pointer in kvm_vcpu_is_bsp
author
Marcelo Tosatti
<mtosatti@redhat.com>
Wed, 17 Jun 2009 13:07:59 +0000
(10:07 -0300)
committer
Avi Kivity
<avi@redhat.com>
Thu, 10 Sep 2009 05:33:04 +0000
(08:33 +0300)
Change kvm_vcpu_is_bsp to use vcpu_id instead of bsp_vcpu pointer, which
is only initialized at the end of kvm_vm_ioctl_create_vcpu.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
include/linux/kvm_host.h
patch
|
blob
|
history
diff --git
a/include/linux/kvm_host.h
b/include/linux/kvm_host.h
index
0604d56
..
4ea42c9
100644
(file)
--- a/
include/linux/kvm_host.h
+++ b/
include/linux/kvm_host.h
@@
-538,7
+538,7
@@
static inline void kvm_irqfd_release(struct kvm *kvm) {}
#ifdef CONFIG_KVM_APIC_ARCHITECTURE
static inline bool kvm_vcpu_is_bsp(struct kvm_vcpu *vcpu)
{
- return vcpu->kvm->bsp_vcpu
== vcpu
;
+ return vcpu->kvm->bsp_vcpu
_id == vcpu->vcpu_id
;
}
#endif
#endif