diff options
Diffstat (limited to 'arch/ia64')
-rw-r--r-- | arch/ia64/kvm/Makefile | 3 | ||||
-rw-r--r-- | arch/ia64/kvm/kvm-ia64.c | 20 |
2 files changed, 11 insertions, 12 deletions
diff --git a/arch/ia64/kvm/Makefile b/arch/ia64/kvm/Makefile index 112791dd2542..bf22fb9e6dcf 100644 --- a/arch/ia64/kvm/Makefile +++ b/arch/ia64/kvm/Makefile | |||
@@ -43,7 +43,8 @@ $(obj)/$(offsets-file): arch/ia64/kvm/asm-offsets.s | |||
43 | EXTRA_CFLAGS += -Ivirt/kvm -Iarch/ia64/kvm/ | 43 | EXTRA_CFLAGS += -Ivirt/kvm -Iarch/ia64/kvm/ |
44 | EXTRA_AFLAGS += -Ivirt/kvm -Iarch/ia64/kvm/ | 44 | EXTRA_AFLAGS += -Ivirt/kvm -Iarch/ia64/kvm/ |
45 | 45 | ||
46 | common-objs = $(addprefix ../../../virt/kvm/, kvm_main.o ioapic.o) | 46 | common-objs = $(addprefix ../../../virt/kvm/, kvm_main.o ioapic.o \ |
47 | coalesced_mmio.o) | ||
47 | 48 | ||
48 | kvm-objs := $(common-objs) kvm-ia64.o kvm_fw.o | 49 | kvm-objs := $(common-objs) kvm-ia64.o kvm_fw.o |
49 | obj-$(CONFIG_KVM) += kvm.o | 50 | obj-$(CONFIG_KVM) += kvm.o |
diff --git a/arch/ia64/kvm/kvm-ia64.c b/arch/ia64/kvm/kvm-ia64.c index 68c978be9a51..2672f4d278ac 100644 --- a/arch/ia64/kvm/kvm-ia64.c +++ b/arch/ia64/kvm/kvm-ia64.c | |||
@@ -187,6 +187,9 @@ int kvm_dev_ioctl_check_extension(long ext) | |||
187 | 187 | ||
188 | r = 1; | 188 | r = 1; |
189 | break; | 189 | break; |
190 | case KVM_CAP_COALESCED_MMIO: | ||
191 | r = KVM_COALESCED_MMIO_PAGE_OFFSET; | ||
192 | break; | ||
190 | default: | 193 | default: |
191 | r = 0; | 194 | r = 0; |
192 | } | 195 | } |
@@ -195,11 +198,11 @@ int kvm_dev_ioctl_check_extension(long ext) | |||
195 | } | 198 | } |
196 | 199 | ||
197 | static struct kvm_io_device *vcpu_find_mmio_dev(struct kvm_vcpu *vcpu, | 200 | static struct kvm_io_device *vcpu_find_mmio_dev(struct kvm_vcpu *vcpu, |
198 | gpa_t addr) | 201 | gpa_t addr, int len, int is_write) |
199 | { | 202 | { |
200 | struct kvm_io_device *dev; | 203 | struct kvm_io_device *dev; |
201 | 204 | ||
202 | dev = kvm_io_bus_find_dev(&vcpu->kvm->mmio_bus, addr); | 205 | dev = kvm_io_bus_find_dev(&vcpu->kvm->mmio_bus, addr, len, is_write); |
203 | 206 | ||
204 | return dev; | 207 | return dev; |
205 | } | 208 | } |
@@ -231,7 +234,7 @@ static int handle_mmio(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) | |||
231 | kvm_run->exit_reason = KVM_EXIT_MMIO; | 234 | kvm_run->exit_reason = KVM_EXIT_MMIO; |
232 | return 0; | 235 | return 0; |
233 | mmio: | 236 | mmio: |
234 | mmio_dev = vcpu_find_mmio_dev(vcpu, p->addr); | 237 | mmio_dev = vcpu_find_mmio_dev(vcpu, p->addr, p->size, !p->dir); |
235 | if (mmio_dev) { | 238 | if (mmio_dev) { |
236 | if (!p->dir) | 239 | if (!p->dir) |
237 | kvm_iodevice_write(mmio_dev, p->addr, p->size, | 240 | kvm_iodevice_write(mmio_dev, p->addr, p->size, |
@@ -1035,14 +1038,6 @@ static void kvm_free_vmm_area(void) | |||
1035 | } | 1038 | } |
1036 | } | 1039 | } |
1037 | 1040 | ||
1038 | /* | ||
1039 | * Make sure that a cpu that is being hot-unplugged does not have any vcpus | ||
1040 | * cached on it. Leave it as blank for IA64. | ||
1041 | */ | ||
1042 | void decache_vcpus_on_cpu(int cpu) | ||
1043 | { | ||
1044 | } | ||
1045 | |||
1046 | static void vti_vcpu_load(struct kvm_vcpu *vcpu, int cpu) | 1041 | static void vti_vcpu_load(struct kvm_vcpu *vcpu, int cpu) |
1047 | { | 1042 | { |
1048 | } | 1043 | } |
@@ -1460,6 +1455,9 @@ int kvm_arch_set_memory_region(struct kvm *kvm, | |||
1460 | return 0; | 1455 | return 0; |
1461 | } | 1456 | } |
1462 | 1457 | ||
1458 | void kvm_arch_flush_shadow(struct kvm *kvm) | ||
1459 | { | ||
1460 | } | ||
1463 | 1461 | ||
1464 | long kvm_arch_dev_ioctl(struct file *filp, | 1462 | long kvm_arch_dev_ioctl(struct file *filp, |
1465 | unsigned int ioctl, unsigned long arg) | 1463 | unsigned int ioctl, unsigned long arg) |