projects
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
KVM: Ensure all vcpus are consistent with in-kernel irqchip settings
[linux-2.6.git]
/
arch
/
ia64
/
kvm
/
kvm-ia64.c
diff --git
a/arch/ia64/kvm/kvm-ia64.c
b/arch/ia64/kvm/kvm-ia64.c
index
d8ddbba
..
f5104b7
100644
(file)
--- a/
arch/ia64/kvm/kvm-ia64.c
+++ b/
arch/ia64/kvm/kvm-ia64.c
@@
-1172,6
+1172,11
@@
out:
#define PALE_RESET_ENTRY 0x80000000ffffffb0UL
+bool kvm_vcpu_compatible(struct kvm_vcpu *vcpu)
+{
+ return irqchip_in_kernel(vcpu->kcm) == (vcpu->arch.apic != NULL);
+}
+
int kvm_arch_vcpu_init(struct kvm_vcpu *vcpu)
{
struct kvm_vcpu *v;