[Qemu-devel] FWD:[PATCH] [Seabios] Over 4GB address ranges for 64bit PCI BARs

2010-11-05 Thread Isaku Yamahata
FWD - Forwarded message from Isaku Yamahata - Subject: Re: [PATCH] [Seabios] Over 4GB address ranges for 64bit PCI BARs User-Agent: Mutt/1.5.19 (2009-01-05) Hi. The current BAR allocation doesn't check overflow and some patches are floating around which aren't merged yet. There are seve

[Qemu-devel] FWD:[PATCH] [Seabios] Over 4GB address ranges for 64bit PCI BARs]

2010-11-05 Thread Isaku Yamahata
FWD - Forwarded message from Alexey Korolev - Subject: [PATCH] [Seabios] Over 4GB address ranges for 64bit PCI BARs X-Mailer: Evolution 2.24.3 Hi, We have seen some issues with 64bit PCI address and large BAR region support in seabios. On attempting to register a 64bit BAR of 1GB s

[Qemu-devel] [PATCH 0/1] [PULL] qemu-kvm.git uq/master queue

2010-11-05 Thread Marcelo Tosatti
The following changes since commit d33ea50a958b2e050d2b28e5f17e3b55e91c6d74: scsi-disk: Fix immediate failure of bdrv_aio_* (2010-11-04 13:54:37 +0100) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git uq/master Gleb Natapov (1): Add support for

[Qemu-devel] [PATCH 1/1] Add support for async page fault to qemu

2010-11-05 Thread Marcelo Tosatti
From: Gleb Natapov Add save/restore of MSR for migration and cpuid bit. Signed-off-by: Gleb Natapov Signed-off-by: Marcelo Tosatti --- target-i386/cpu.h |1 + target-i386/cpuid.c |2 +- target-i386/kvm.c | 14 ++ target-i386/machine.c | 26 +++

[Qemu-devel] [PATCH 1/1] Add support for async page fault to qemu

2010-11-05 Thread Marcelo Tosatti
From: Gleb Natapov Add save/restore of MSR for migration and cpuid bit. Signed-off-by: Gleb Natapov Signed-off-by: Marcelo Tosatti --- target-i386/cpu.h |1 + target-i386/cpuid.c |2 +- target-i386/kvm.c | 14 ++ target-i386/machine.c | 26 +++

[Qemu-devel] [PATCH 0/1] [PULL] qemu-kvm.git uq/master queue

2010-11-05 Thread Marcelo Tosatti
The following changes since commit d33ea50a958b2e050d2b28e5f17e3b55e91c6d74: scsi-disk: Fix immediate failure of bdrv_aio_* (2010-11-04 13:54:37 +0100) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git uq/master Gleb Natapov (1): Add support for

[Qemu-devel] [PATCH RESEND] apic: Don't iterate past last used apic

2010-11-05 Thread Alex Williamson
local_apics are allocated sequentially and never removed, so we can stop any iterations that go to MAX_APICS as soon as we hit the first NULL. Looking at a small guest running a virtio-net workload with oprofile, this drops apic_get_delivery_bitmask() from #3 in the profile to down in the noise.

[Qemu-devel] [PATCH v2 RESEND] pc: e820 qemu_cfg tables need to be packed

2010-11-05 Thread Alex Williamson
We can't let the compiler define the alignment for qemu_cfg data. Signed-off-by: Alex Williamson --- hw/pc.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index 69b13bf..0264e3d 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -75,12 +75,12 @@ struct e820_en

[Qemu-devel] [PATCH RESEND 6/6] savevm: Remove register_device_unmigratable()

2010-11-05 Thread Alex Williamson
Now that the save state handlers can return error, individual drivers can cancel a migration if they hit an error or don't support it. This makes the unmigratable callback redundant. Remove it and change the only user to cancel the migration in a set_params callback, which actually happens much e

[Qemu-devel] [PATCH RESEND 5/6] savevm: Allow set_params and save_live_state to error

2010-11-05 Thread Alex Williamson
This lets a save state handler NAK a migration or cancel if it runs into problems. Signed-off-by: Alex Williamson --- block-migration.c |4 +++- hw/hw.h |2 +- savevm.c | 18 +++--- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/block-mi

[Qemu-devel] [PATCH RESEND 3/6] pci: Allow pci_device_save() to return error

2010-11-05 Thread Alex Williamson
Carry the vmsd pre_save error reporting through pci_device_save(). Signed-off-by: Alex Williamson --- hw/grackle_pci.c |4 +--- hw/gt64xxx.c |3 +-- hw/ivshmem.c |7 ++- hw/openpic.c |4 +--- hw/pci.c |9 +++-- hw/pci.h |2 +- hw/piix4

[Qemu-devel] [PATCH RESEND 4/6] virtio: Allow virtio_save() errors

2010-11-05 Thread Alex Williamson
Carry pci_device_save() error through to virtio_save(). Signed-off-by: Alex Williamson --- hw/virtio-balloon.c|6 +- hw/virtio-blk.c|6 +- hw/virtio-net.c|6 +- hw/virtio-pci.c| 10 -- hw/virtio-serial-bus.c |6 +- hw/virtio.

[Qemu-devel] [PATCH RESEND 1/6] savevm: Allow SaveStateHandler() to return error

2010-11-05 Thread Alex Williamson
Some devices may not always able to save their state, allow the save handler to return an error. Signed-off-by: Alex Williamson --- hw/adb.c|8 ++-- hw/ads7846.c|4 +++- hw/arm_gic.c|4 +++- hw/arm_timer.c |6 +

[Qemu-devel] [PATCH RESEND 2/6] savevm: Allow vmsd->pre_save to return error

2010-11-05 Thread Alex Williamson
This allows vmsd based saves to also have a way to signal that they can't be saved or migrated. Signed-off-by: Alex Williamson --- hw/fdc.c |3 ++- hw/hpet.c |3 ++- hw/hw.h |6 +++--- hw/i2c.c |3 ++- hw/ide/core.c |

[Qemu-devel] [PATCH RESEND 0/6] Save state error handling (kill off no_migrate)

2010-11-05 Thread Alex Williamson
No changes from previous version -- Our code paths for saving or migrating a VM are full of functions that return void, leaving no opportunity for a device to cancel a migration, either from error or incompatibility. The ivshmem driver attempted to solve this with a no_migrate flag on the save s

[Qemu-devel] [PATCH RESEND] PCI: Bus number from the bridge, not the device

2010-11-05 Thread Alex Williamson
pcibus_dev_print() was erroneously retrieving the device bus number from the secondary bus number offset of the device instead of the bridge above the device. This ends of landing in the 2nd byte of the 3rd BAR for devices, which thankfully is usually zero. pcibus_get_dev_path() copied this code,

[Qemu-devel] [PATCH] e1000: Fix TCP checksum overflow with TSO

2010-11-05 Thread Alex Williamson
When adding the length to the pseudo header, we're not properly accounting for overflow. From: Mark Wu Signed-off-by: Alex Williamson --- hw/e1000.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/hw/e1000.c b/hw/e1000.c index 532efdc..677165f 100644 --- a/hw/e1000

[Qemu-devel] [RFC PATCH v2] VFIO based device assignment

2010-11-05 Thread Alex Williamson
This is an update to the original QEMU VFIO driver I sent several months ago. Since then, I've ported it to the qemu-kvm.git tree, and back, incorporated common msix and msi code, added irqfd support, created an irqfd-like mechanism for EOIs, and likely numerous other things that I've forgotten.

Re: [Qemu-devel] [PATCHv2 4/8] Store IDE bus id in IDEBus structure for easy access.

2010-11-05 Thread Gleb Natapov
On Fri, Nov 05, 2010 at 05:31:38PM +0100, Markus Armbruster wrote: > Gleb Natapov writes: > > > On Fri, Nov 05, 2010 at 03:04:05PM +0100, Markus Armbruster wrote: > [...] > >> >> >> There has been quite some discussion on "canonical path" on the list, > >> >> >> but no consensus. Ironically, one

[Qemu-devel] [RFC PATCH v2 4/4] qcow2: Use block-queue

2010-11-05 Thread Kevin Wolf
This needs to be reworked. It was a mostly automatic conversion that hasn't had a review and with just some fixes in places where things broke. It was good enough for some testing, though. --- block/qcow2-cluster.c | 39 +++-- block/qcow2-refcount.c | 62 ++

[Qemu-devel] [RFC PATCH v2 1/4] block: Fake a bdrv_aio_pwrite

2010-11-05 Thread Kevin Wolf
Don't read this patch, it will be thrown away :-) --- block.c | 30 ++ block.h |2 ++ 2 files changed, 32 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index 985d0b7..f75da13 100644 --- a/block.c +++ b/block.c @@ -2053,6 +2053,36 @@ BlockDriverAIOC

[Qemu-devel] [RFC PATCH v2 3/4] Test cases for block-queue

2010-11-05 Thread Kevin Wolf
--- Makefile|1 + check-block-queue.c | 402 +++ 2 files changed, 403 insertions(+), 0 deletions(-) create mode 100644 check-block-queue.c diff --git a/Makefile b/Makefile index 02698e9..7e2785f 100644 --- a/Makefile +++ b/Makefile

[Qemu-devel] [RFC PATCH v2 2/4] Add block-queue

2010-11-05 Thread Kevin Wolf
Instead of directly executing writes and fsyncs, queue them and execute them asynchronously. What makes this interesting is that we can delay syncs and if multiple syncs occur, we can merge them into one bdrv_flush. A typical sequence in qcow2 (simple cluster allocation) looks like this: 1. Updat

[Qemu-devel] [RFC PATCH v2 0/4] block-queue: Delay and batch metadata writes

2010-11-05 Thread Kevin Wolf
Still not quite there, but should be a bit more correct than the first RFC. I still need to add proper error handling, the rest of block-queue itself should be fairly complete. With respect to error handling, IDE, virtio-blk and scsi-disk can deal with failed bdrv_(aio_)flush now, so just failing t

Re: [Qemu-devel] [PATCHv2 1/8] Introduce deriver_name field to DeviceInfo structure.

2010-11-05 Thread Gleb Natapov
On Fri, Nov 05, 2010 at 05:24:01PM +0100, Markus Armbruster wrote: > Gleb Natapov writes: > > > On Fri, Nov 05, 2010 at 03:14:20PM +0100, Markus Armbruster wrote: > >> Gleb Natapov writes: > >> > >> > On Thu, Nov 04, 2010 at 03:58:03PM +0100, Markus Armbruster wrote: > >> >> Gleb Natapov write

Re: [Qemu-devel] Re: [PATCH] Implement a virtio GPU transport

2010-11-05 Thread Ian Molton
On 03/11/10 18:17, Anthony Liguori wrote: On 11/03/2010 01:03 PM, Ian Molton wrote: Why is it better than using virtio-serial? For one thing, it enforces the PID in kernel so the guests processes cant screw each other over by forging the PID passed to qemu. My current patch touches a tin

Re: [Qemu-devel] Re: [PATCH] Implement a virtio GPU transport

2010-11-05 Thread Ian Molton
On 04/11/10 09:13, Alon Levy wrote: On Wed, Nov 03, 2010 at 06:03:50PM +, Ian Molton wrote: On 01/11/10 13:28, Anthony Liguori wrote: On 11/01/2010 06:53 AM, Alon Levy wrote: While we (speaking as part of the SPICE developers) want to have the same support in our virtual GPU for 3d as we

[Qemu-devel] [sparc] Unassigned mem read access on writing?

2010-11-05 Thread Artyom Tarasenko
Trying to boot Solaris 2.1 I get the following error message: Unassigned mem read access of 1 byte to 0768 from f0014768 qemu: fatal: Trap 0x29 while interrupts disabled, Error state pc: f0014768 npc: f001476c Looks like a read access to a non-mapped memory (the NF-bit is 0). But whe

[Qemu-devel] [RESEND][PATCH] Remove 16-character limit on process title

2010-11-05 Thread John Morrissey
qemu uses prctl() to set its process title. I bumped up against prctl()'s 16-character limit recently, when adding process title support to libvirt[1][2]. The attached patch overwrites argv instead. Linux seems to maintain the length of the original args, even when the new args are shorter and NUL

Re: [Qemu-devel] [PATCHv2 4/8] Store IDE bus id in IDEBus structure for easy access.

2010-11-05 Thread Markus Armbruster
Gleb Natapov writes: > On Fri, Nov 05, 2010 at 03:04:05PM +0100, Markus Armbruster wrote: [...] >> >> >> There has been quite some discussion on "canonical path" on the list, >> >> >> but no consensus. Ironically, one of the places where we got stuck was >> >> >> ISA. You cut right through that

Re: [Qemu-devel] [PATCHv2 1/8] Introduce deriver_name field to DeviceInfo structure.

2010-11-05 Thread Markus Armbruster
Gleb Natapov writes: > On Fri, Nov 05, 2010 at 03:14:20PM +0100, Markus Armbruster wrote: >> Gleb Natapov writes: >> >> > On Thu, Nov 04, 2010 at 03:58:03PM +0100, Markus Armbruster wrote: >> >> Gleb Natapov writes: >> >> >> >> > On Thu, Nov 04, 2010 at 10:20:18AM +0100, Markus Armbruster wro

Re: [Qemu-devel] [PATCH 0/3] v4 Decouple block device removal from device removal

2010-11-05 Thread Ryan Harper
* Markus Armbruster [2010-11-05 11:11]: > Ryan Harper writes: > > > * Markus Armbruster [2010-11-05 08:28]: > >> I'd be fine with any of these: > >> > >> 1. A new command "device_disconnet ID" (or similar name) to disconnect > >>device ID from any host parts. Nice touch: you don't have to

Re: [Qemu-devel] [PATCH 0/3] v4 Decouple block device removal from device removal

2010-11-05 Thread Markus Armbruster
Ryan Harper writes: > * Markus Armbruster [2010-11-05 08:28]: >> I'd be fine with any of these: >> >> 1. A new command "device_disconnet ID" (or similar name) to disconnect >>device ID from any host parts. Nice touch: you don't have to know >>about the device's host part(s) to disconne

Re: [Qemu-devel] [PATCH 0/3] v4 Decouple block device removal from device removal

2010-11-05 Thread Markus Armbruster
"Michael S. Tsirkin" writes: > On Fri, Nov 05, 2010 at 02:27:49PM +0100, Markus Armbruster wrote: >> I'd be fine with any of these: >> >> 1. A new command "device_disconnet ID" (or similar name) to disconnect >>device ID from any host parts. Nice touch: you don't have to know >>about th

Re: [Qemu-devel] [PATCHv2 4/8] Store IDE bus id in IDEBus structure for easy access.

2010-11-05 Thread Gleb Natapov
On Fri, Nov 05, 2010 at 03:04:05PM +0100, Markus Armbruster wrote: [skip] > >> Passing bus numbers explicitly isn't hard either. Programmer is free to > >> pass nonsensical numbers. For the most common case of one bus, the bus > >> number parameter is just noise. > > If programmer makes an error

Re: [Qemu-devel] [PATCHv2 1/8] Introduce deriver_name field to DeviceInfo structure.

2010-11-05 Thread Gleb Natapov
On Fri, Nov 05, 2010 at 03:14:20PM +0100, Markus Armbruster wrote: > Gleb Natapov writes: > > > On Thu, Nov 04, 2010 at 03:58:03PM +0100, Markus Armbruster wrote: > >> Gleb Natapov writes: > >> > >> > On Thu, Nov 04, 2010 at 10:20:18AM +0100, Markus Armbruster wrote: > >> >> Gleb Natapov write

Re: [Qemu-devel] [PATCH 0/3] v4 Decouple block device removal from device removal

2010-11-05 Thread Ryan Harper
* Markus Armbruster [2010-11-05 08:28]: > Ryan Harper writes: > > > * Michael S. Tsirkin [2010-11-03 16:46]: > >> On Wed, Nov 03, 2010 at 03:59:29PM -0500, Ryan Harper wrote: > >> > * Michael S. Tsirkin [2010-11-03 13:03]: > >> > > On Wed, Nov 03, 2010 at 12:29:10PM -0500, Ryan Harper wrote: >

Re: [Qemu-devel] [PATCH 0/3] v4 Decouple block device removal from device removal

2010-11-05 Thread Michael S. Tsirkin
On Fri, Nov 05, 2010 at 02:27:49PM +0100, Markus Armbruster wrote: > Ryan Harper writes: > > > * Michael S. Tsirkin [2010-11-03 16:46]: > >> On Wed, Nov 03, 2010 at 03:59:29PM -0500, Ryan Harper wrote: > >> > * Michael S. Tsirkin [2010-11-03 13:03]: > >> > > On Wed, Nov 03, 2010 at 12:29:10PM -

Re: [Qemu-devel] [PATCHv2 1/8] Introduce deriver_name field to DeviceInfo structure.

2010-11-05 Thread Markus Armbruster
Gleb Natapov writes: > On Thu, Nov 04, 2010 at 03:58:03PM +0100, Markus Armbruster wrote: >> Gleb Natapov writes: >> >> > On Thu, Nov 04, 2010 at 10:20:18AM +0100, Markus Armbruster wrote: >> >> Gleb Natapov writes: >> >> >> >> > Add "deriver_name" to DeviceInfo to use in device path building

Re: [Qemu-devel] [PATCH 0/3] v4 Decouple block device removal from device removal

2010-11-05 Thread Ryan Harper
* Michael S. Tsirkin [2010-11-05 09:18]: > On Fri, Nov 05, 2010 at 02:27:49PM +0100, Markus Armbruster wrote: > > Ryan Harper writes: > > > > > * Michael S. Tsirkin [2010-11-03 16:46]: > > >> On Wed, Nov 03, 2010 at 03:59:29PM -0500, Ryan Harper wrote: > > >> > * Michael S. Tsirkin [2010-11-03

Re: [Qemu-devel] [PATCHv2 4/8] Store IDE bus id in IDEBus structure for easy access.

2010-11-05 Thread Markus Armbruster
Gleb Natapov writes: > On Thu, Nov 04, 2010 at 03:22:50PM +0100, Markus Armbruster wrote: >> Gleb Natapov writes: >> >> > On Thu, Nov 04, 2010 at 09:46:57AM +0100, Markus Armbruster wrote: >> >> > But why order of device creation is important? It shouldn't be if we >> >> > want to move HW descr

[Qemu-devel] Re: [RFC][RESEND][PATCH v1 02/15] virtproxy: qemu-vp, standalone daemon skeleton

2010-11-05 Thread Adam Litke
On Thu, 2010-11-04 at 08:57 -0500, Michael Roth wrote: > > This resembles vl.c's main_loop_wait() but I can see why you might want > > your own. There is opportunity for sharing the select logic and ioh > > callbacks but I think that could be addressed later. > > > > Yup these are all basically c

Re: [Qemu-devel] [PATCH 0/3] v4 Decouple block device removal from device removal

2010-11-05 Thread Markus Armbruster
Ryan Harper writes: > * Michael S. Tsirkin [2010-11-03 16:46]: >> On Wed, Nov 03, 2010 at 03:59:29PM -0500, Ryan Harper wrote: >> > * Michael S. Tsirkin [2010-11-03 13:03]: >> > > On Wed, Nov 03, 2010 at 12:29:10PM -0500, Ryan Harper wrote: >> > > > * Markus Armbruster [2010-11-03 11:42]: >> >

[Qemu-devel] [Bug 655120] Re: VirtFS EFAULT when accessing not existing files

2010-11-05 Thread Venkateswararao Jujjuri (JV)
Crash indicates that the QEMU is older version. Basically client is sending something that QEMU doesn't have support on. We have a bug opened internally to handle this situation gracefully instead of crashing. I will post the patch soon. Moving to latest QEMU should resolve this issue... Thanks,

[Qemu-devel] [Bug 655120] Re: VirtFS EFAULT when accessing not existing files

2010-11-05 Thread Moshroum
** Changed in: qemu Status: New => Invalid -- VirtFS EFAULT when accessing not existing files https://bugs.launchpad.net/bugs/655120 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU: Invalid Bug description:  use a

[Qemu-devel] [Bug 655120] Re: VirtFS EFAULT when accessing not existing files

2010-11-05 Thread Moshroum
Yes, it is a lot better... now only the complete machine crashes when accessing the 9p.L mounted directory {{{ virtio-9p.c:3448: submit_pdu: Assertion `!(handler == ((void *)0))' failed. }}} -- VirtFS EFAULT when accessing not existing files https://bugs.launchpad.net/bugs/655120 You received th

Re: [Qemu-devel] [PATCH 0/7] scsi and megasas update

2010-11-05 Thread Hannes Reinecke
On 11/04/2010 09:49 PM, Alexander Graf wrote: > > On 15.06.2010, at 11:15, Hannes Reinecke wrote: > >> Hi all, >> >> I've run an I/O exerciser against the megasas emulation and >> found quite some issues, both with the HBA and the SCSI >> emulation. >> >> - SG_IO returns -EDOM if the internal que