aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/kvm
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ia64/kvm')
-rw-r--r--arch/ia64/kvm/kvm-ia64.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/ia64/kvm/kvm-ia64.c b/arch/ia64/kvm/kvm-ia64.c
index 0ad09f05efa9..4a983147f6eb 100644
--- a/arch/ia64/kvm/kvm-ia64.c
+++ b/arch/ia64/kvm/kvm-ia64.c
@@ -851,8 +851,7 @@ static int kvm_vm_ioctl_get_irqchip(struct kvm *kvm,
851 r = 0; 851 r = 0;
852 switch (chip->chip_id) { 852 switch (chip->chip_id) {
853 case KVM_IRQCHIP_IOAPIC: 853 case KVM_IRQCHIP_IOAPIC:
854 memcpy(&chip->chip.ioapic, ioapic_irqchip(kvm), 854 r = kvm_get_ioapic(kvm, &chip->chip.ioapic);
855 sizeof(struct kvm_ioapic_state));
856 break; 855 break;
857 default: 856 default:
858 r = -EINVAL; 857 r = -EINVAL;
@@ -868,9 +867,7 @@ static int kvm_vm_ioctl_set_irqchip(struct kvm *kvm, struct kvm_irqchip *chip)
868 r = 0; 867 r = 0;
869 switch (chip->chip_id) { 868 switch (chip->chip_id) {
870 case KVM_IRQCHIP_IOAPIC: 869 case KVM_IRQCHIP_IOAPIC:
871 memcpy(ioapic_irqchip(kvm), 870 r = kvm_set_ioapic(kvm, &chip->chip.ioapic);
872 &chip->chip.ioapic,
873 sizeof(struct kvm_ioapic_state));
874 break; 871 break;
875 default: 872 default:
876 r = -EINVAL; 873 r = -EINVAL;