diff options
Diffstat (limited to 'arch/ia64')
-rw-r--r-- | arch/ia64/hp/sim/simserial.c | 46 | ||||
-rw-r--r-- | arch/ia64/kvm/Makefile | 3 | ||||
-rw-r--r-- | arch/ia64/kvm/kvm-ia64.c | 20 |
3 files changed, 14 insertions, 55 deletions
diff --git a/arch/ia64/hp/sim/simserial.c b/arch/ia64/hp/sim/simserial.c index 23cafc80d2a4..24b1ad5334cb 100644 --- a/arch/ia64/hp/sim/simserial.c +++ b/arch/ia64/hp/sim/simserial.c | |||
@@ -193,18 +193,6 @@ static irqreturn_t rs_interrupt_single(int irq, void *dev_id) | |||
193 | * ------------------------------------------------------------------- | 193 | * ------------------------------------------------------------------- |
194 | */ | 194 | */ |
195 | 195 | ||
196 | #if 0 | ||
197 | /* | ||
198 | * not really used in our situation so keep them commented out for now | ||
199 | */ | ||
200 | static DECLARE_TASK_QUEUE(tq_serial); /* used to be at the top of the file */ | ||
201 | static void do_serial_bh(void) | ||
202 | { | ||
203 | run_task_queue(&tq_serial); | ||
204 | printk(KERN_ERR "do_serial_bh: called\n"); | ||
205 | } | ||
206 | #endif | ||
207 | |||
208 | static void do_softint(struct work_struct *private_) | 196 | static void do_softint(struct work_struct *private_) |
209 | { | 197 | { |
210 | printk(KERN_ERR "simserial: do_softint called\n"); | 198 | printk(KERN_ERR "simserial: do_softint called\n"); |
@@ -351,11 +339,7 @@ static void rs_flush_buffer(struct tty_struct *tty) | |||
351 | info->xmit.head = info->xmit.tail = 0; | 339 | info->xmit.head = info->xmit.tail = 0; |
352 | local_irq_restore(flags); | 340 | local_irq_restore(flags); |
353 | 341 | ||
354 | wake_up_interruptible(&tty->write_wait); | 342 | tty_wakeup(tty); |
355 | |||
356 | if ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) && | ||
357 | tty->ldisc.write_wakeup) | ||
358 | (tty->ldisc.write_wakeup)(tty); | ||
359 | } | 343 | } |
360 | 344 | ||
361 | /* | 345 | /* |
@@ -404,12 +388,6 @@ static void rs_unthrottle(struct tty_struct * tty) | |||
404 | printk(KERN_INFO "simrs_unthrottle called\n"); | 388 | printk(KERN_INFO "simrs_unthrottle called\n"); |
405 | } | 389 | } |
406 | 390 | ||
407 | /* | ||
408 | * rs_break() --- routine which turns the break handling on or off | ||
409 | */ | ||
410 | static void rs_break(struct tty_struct *tty, int break_state) | ||
411 | { | ||
412 | } | ||
413 | 391 | ||
414 | static int rs_ioctl(struct tty_struct *tty, struct file * file, | 392 | static int rs_ioctl(struct tty_struct *tty, struct file * file, |
415 | unsigned int cmd, unsigned long arg) | 393 | unsigned int cmd, unsigned long arg) |
@@ -422,14 +400,6 @@ static int rs_ioctl(struct tty_struct *tty, struct file * file, | |||
422 | } | 400 | } |
423 | 401 | ||
424 | switch (cmd) { | 402 | switch (cmd) { |
425 | case TIOCMGET: | ||
426 | printk(KERN_INFO "rs_ioctl: TIOCMGET called\n"); | ||
427 | return -EINVAL; | ||
428 | case TIOCMBIS: | ||
429 | case TIOCMBIC: | ||
430 | case TIOCMSET: | ||
431 | printk(KERN_INFO "rs_ioctl: TIOCMBIS/BIC/SET called\n"); | ||
432 | return -EINVAL; | ||
433 | case TIOCGSERIAL: | 403 | case TIOCGSERIAL: |
434 | printk(KERN_INFO "simrs_ioctl TIOCGSERIAL called\n"); | 404 | printk(KERN_INFO "simrs_ioctl TIOCGSERIAL called\n"); |
435 | return 0; | 405 | return 0; |
@@ -488,14 +458,6 @@ static int rs_ioctl(struct tty_struct *tty, struct file * file, | |||
488 | 458 | ||
489 | static void rs_set_termios(struct tty_struct *tty, struct ktermios *old_termios) | 459 | static void rs_set_termios(struct tty_struct *tty, struct ktermios *old_termios) |
490 | { | 460 | { |
491 | unsigned int cflag = tty->termios->c_cflag; | ||
492 | |||
493 | if ( (cflag == old_termios->c_cflag) | ||
494 | && ( RELEVANT_IFLAG(tty->termios->c_iflag) | ||
495 | == RELEVANT_IFLAG(old_termios->c_iflag))) | ||
496 | return; | ||
497 | |||
498 | |||
499 | /* Handle turning off CRTSCTS */ | 461 | /* Handle turning off CRTSCTS */ |
500 | if ((old_termios->c_cflag & CRTSCTS) && | 462 | if ((old_termios->c_cflag & CRTSCTS) && |
501 | !(tty->termios->c_cflag & CRTSCTS)) { | 463 | !(tty->termios->c_cflag & CRTSCTS)) { |
@@ -623,9 +585,8 @@ static void rs_close(struct tty_struct *tty, struct file * filp) | |||
623 | * the line discipline to only process XON/XOFF characters. | 585 | * the line discipline to only process XON/XOFF characters. |
624 | */ | 586 | */ |
625 | shutdown(info); | 587 | shutdown(info); |
626 | if (tty->ops->flush_buffer) | 588 | rs_flush_buffer(tty); |
627 | tty->ops->flush_buffer(tty); | 589 | tty_ldisc_flush(tty); |
628 | if (tty->ldisc.flush_buffer) tty->ldisc.flush_buffer(tty); | ||
629 | info->event = 0; | 590 | info->event = 0; |
630 | info->tty = NULL; | 591 | info->tty = NULL; |
631 | if (info->blocked_open) { | 592 | if (info->blocked_open) { |
@@ -955,7 +916,6 @@ static const struct tty_operations hp_ops = { | |||
955 | .stop = rs_stop, | 916 | .stop = rs_stop, |
956 | .start = rs_start, | 917 | .start = rs_start, |
957 | .hangup = rs_hangup, | 918 | .hangup = rs_hangup, |
958 | .break_ctl = rs_break, | ||
959 | .wait_until_sent = rs_wait_until_sent, | 919 | .wait_until_sent = rs_wait_until_sent, |
960 | .read_proc = rs_read_proc, | 920 | .read_proc = rs_read_proc, |
961 | }; | 921 | }; |
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) |