On Sun, 14 Jul 2013 13:19:59 +0300 Gleb Natapov <gleb@xxxxxxxxxx> wrote: > On Sun, Jul 14, 2013 at 12:25:16PM +0300, Gleb Natapov wrote: > > 1/2 broke x86. QEMU prints "Invalid read from memory region kvm-pic" and > > guest hangs. Looks like IO is forwarded to userspace instead of in kernel device > > for some reason. Un-applying for now. > > > OK, stupid typo. Will amend the commit instead of dropping. > Thanks for fixing. > > diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c > index 6cde6fa..a86735d 100644 > --- a/virt/kvm/kvm_main.c > +++ b/virt/kvm/kvm_main.c > @@ -2942,7 +2942,7 @@ static int __kvm_io_bus_read(struct kvm_io_bus *bus, struct kvm_io_range *range, > return -EOPNOTSUPP; > > while (idx < bus->dev_count && > - kvm_io_bus_sort_cmp(&range, &bus->range[idx]) == 0) { > + kvm_io_bus_sort_cmp(range, &bus->range[idx]) == 0) { > if (!kvm_iodevice_read(bus->range[idx].dev, range->addr, > range->len, val)) > return idx; > -- > Gleb. > -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html