diff options
author | Scott Wood <scottwood@freescale.com> | 2013-04-12 10:08:46 -0400 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2013-04-26 14:27:23 -0400 |
commit | 5df554ad5b7522ea62b0ff9d5be35183494efc21 (patch) | |
tree | b00f569c1d7a684d3455ad59f52c7b5aa7ac04e7 /virt | |
parent | f0f5c481a91c56f1ee5b3809bf3943115143b1a7 (diff) |
kvm/ppc/mpic: in-kernel MPIC emulation
Hook the MPIC code up to the KVM interfaces, add locking, etc.
Signed-off-by: Scott Wood <scottwood@freescale.com>
[agraf: add stub function for kvmppc_mpic_set_epr, non-booke, 64bit]
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'virt')
-rw-r--r-- | virt/kvm/kvm_main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 5f0d78c2537b..f6cd14d2f0d9 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c | |||
@@ -2238,6 +2238,12 @@ static int kvm_ioctl_create_device(struct kvm *kvm, | |||
2238 | int ret; | 2238 | int ret; |
2239 | 2239 | ||
2240 | switch (cd->type) { | 2240 | switch (cd->type) { |
2241 | #ifdef CONFIG_KVM_MPIC | ||
2242 | case KVM_DEV_TYPE_FSL_MPIC_20: | ||
2243 | case KVM_DEV_TYPE_FSL_MPIC_42: | ||
2244 | ops = &kvm_mpic_ops; | ||
2245 | break; | ||
2246 | #endif | ||
2241 | default: | 2247 | default: |
2242 | return -ENODEV; | 2248 | return -ENODEV; |
2243 | } | 2249 | } |