Re: [Qemu-devel] converging around a single guest agent

2011-11-15 Thread Hans de Goede
Hi, On 11/15/2011 11:39 PM, Ayal Baron wrote: If you want to talk about convergence, the discussion should start around collecting requirements. We can then figure out if the two sets of requirements are strictly overlapping or if there are any requirements that are fundamentally in oppos

Re: [Qemu-devel] [RFC PATCH 0/4] virtio-scsi device model

2011-11-15 Thread Paolo Bonzini
On 11/15/2011 09:33 PM, Michael S. Tsirkin wrote: > What's missing is 1) support for writable config space, 2) testing TMF, > 3) events; 4) migration. The last two do not need to be in at the > first commit, they can come later. > > Tested lightly with a seabios driver (see the seabios ML).

Re: [Qemu-devel] [PATCH 0/2] net: socket backend uses uninitialized variables

2011-11-15 Thread Markus Armbruster
Anthony Liguori writes: > On 11/11/2011 03:36 AM, Markus Armbruster wrote: >> Ping? > > I assumed "Compile-tested only, buyer beware." was code for, I'll test > the patches later and post to the ML ;-) Actually, it was "I've never used this network backend, and can't be bothered to try it now, b

[Qemu-devel] [Bug 891002] [NEW] windows mingw compiled qemu-system-x86_64 crash on startup

2011-11-15 Thread humeafo
Public bug reported: qemu-1.0-rc2/cpu-exec.c:37 longjmp(env->jmp_env, 1); it seems that env->jmp_env destroyed, (gdb) p env->jmp_env $3 = {0, 0, 0, 36249608, 41418280, 5303318, 41418664, 0, 0, 0, 0, 0, 0, 0, 0, 0} ** Affects: qemu Importance: Undecided Status: New -- You received

[Qemu-devel] [Bug 891002] Re: windows mingw compiled qemu-system-x86_64 crash on startup

2011-11-15 Thread humeafo
it's compiled on windows 2003 and using mingw gcc version 4.6.1 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/891002 Title: windows mingw compiled qemu-system-x86_64 crash on startup Status in QEM

Re: [Qemu-devel] converging around a single guest agent

2011-11-15 Thread Barak Azulay
On Wednesday 16 November 2011 02:42:30 Alexander Graf wrote: > On 16.11.2011, at 00:01, Michael Roth wrote: > > But practically-speaking, it's unavoidable that qemu-specific management > > tooling will need to communicate with qemu (via QMP/libqmp/HMP/etc, or > > by proxy via libvirt). It's through

[Qemu-devel] [PATCH] Add -f option to qemu-nbd

2011-11-15 Thread Chunyan Liu
Currently qemu-nbd does not support finding free nbd device for users like "losetup -f" and issuing "qemu-nbd -c /dev/nbdX disk.img" won't report error message when /dev/nbd is already in use. It makes things a little confusing. This patch adds "-f" option to qemu-nbd to support finding a free nbd

Re: [Qemu-devel] converging around a single guest agent

2011-11-15 Thread Barak Azulay
On Tuesday 15 November 2011 21:45:42 Perry Myers wrote: > On 11/15/2011 01:08 PM, Subhendu Ghosh wrote: > > On 11/15/2011 01:01 PM, Perry Myers wrote: > >> On 11/15/2011 12:24 PM, Barak Azulay wrote: > >>> Hi, > >>> > >>> One of the breakout sessions during the ovirt workshop [1] was about > >>> t

Re: [Qemu-devel] [Qemu-ppc] [PATCH] pseries: Fix qdev.id handling in the VIO bus code

2011-11-15 Thread David Gibson
On Wed, Nov 16, 2011 at 03:53:13PM +1100, David Gibson wrote: > From: Michael Ellerman > > When the user creates a device on the command line with -device, they > can specify the id, using id=foo. Currently the VIO bus code overwrites > this id with it's own value. We should only set qdev.id if i

[Qemu-devel] [PATCH] pseries: Fix qdev.id handling in the VIO bus code

2011-11-15 Thread David Gibson
From: Michael Ellerman When the user creates a device on the command line with -device, they can specify the id, using id=foo. Currently the VIO bus code overwrites this id with it's own value. We should only set qdev.id if it is not already set by the user. The device tree code uses qdev.id for

Re: [Qemu-devel] [Qemu-ppc] [0/5] Assorted small pseries bug fixes

2011-11-15 Thread David Gibson
On Wed, Nov 16, 2011 at 12:28:29AM +0100, Alexander Graf wrote: > > On 14.11.2011, at 04:18, David Gibson wrote: > > > This series contains a number of small bugfixes for the pseries > > machine. > > > > Which ones of these would you push for 1.0? All of them, they're bugfixes. -- David Gibs

Re: [Qemu-devel] converging around a single guest agent

2011-11-15 Thread Alexander Graf
On 16.11.2011, at 00:01, Michael Roth wrote: > But practically-speaking, it's unavoidable that qemu-specific management > tooling will need to communicate with qemu (via QMP/libqmp/HMP/etc, or by > proxy via libvirt). It's through those same channels that the qemu-ga > interfaces will ultimate

Re: [Qemu-devel] [0/5] Assorted small pseries bug fixes

2011-11-15 Thread Alexander Graf
On 14.11.2011, at 04:18, David Gibson wrote: > This series contains a number of small bugfixes for the pseries > machine. > Which ones of these would you push for 1.0? Alex

Re: [Qemu-devel] converging around a single guest agent

2011-11-15 Thread Michael Roth
On 11/15/2011 11:24 AM, Barak Azulay wrote: Hi, One of the breakout sessions during the ovirt workshop [1] was about the guest tools, and focused mainly on the ovirt-guest-agent [2]. One of the issues discussed there, was the various existing guest agents out there, and the need to converge the

Re: [Qemu-devel] converging around a single guest agent

2011-11-15 Thread Ayal Baron
- Original Message - > On 11/15/2011 11:24 AM, Barak Azulay wrote: > > Hi, > > > > One of the breakout sessions during the ovirt workshop [1] was > > about the guest > > tools, and focused mainly on the ovirt-guest-agent [2]. > > > > One of the issues discussed there, was the various exis

Re: [Qemu-devel] [RFC PATCH] vfio: VFIO Driver core framework

2011-11-15 Thread Scott Wood
On 11/15/2011 03:40 PM, Aaron Fabbri wrote: > > > > On 11/15/11 12:10 PM, "Scott Wood" wrote: > >> On 11/15/2011 12:34 AM, David Gibson wrote: > +static int allow_unsafe_intrs; +module_param(allow_unsafe_intrs, int, 0); +MODULE_PARM_DESC(allow_unsafe_intrs, +"Allo

Re: [Qemu-devel] [RFC PATCH] vfio: VFIO Driver core framework

2011-11-15 Thread Aaron Fabbri
On 11/15/11 12:10 PM, "Scott Wood" wrote: > On 11/15/2011 12:34 AM, David Gibson wrote: >>> +static int allow_unsafe_intrs; >>> +module_param(allow_unsafe_intrs, int, 0); >>> +MODULE_PARM_DESC(allow_unsafe_intrs, >>> +"Allow use of IOMMUs which do not support interrupt remapping"); >

Re: [Qemu-devel] [RFC PATCH 0/4] virtio-scsi device model

2011-11-15 Thread Michael S. Tsirkin
On Tue, Nov 15, 2011 at 06:00:01PM +0100, Paolo Bonzini wrote: > Here is the first sneak peek of virtio-scsi. It's on top of my scsi-sg > branch at http://github.com/bonzini/qemu. I'm more interested > in getting early reviews in the virtio side, so I'm omitting the > scsi-specific patches that i

Re: [Qemu-devel] [RFC PATCH] vfio: VFIO Driver core framework

2011-11-15 Thread Scott Wood
On 11/15/2011 12:34 AM, David Gibson wrote: > I think we need to pin exactly what "MAP_ANY" means down better. Now, > VFIO is pretty much a lost cause if you can't map any normal process > memory page into the IOMMU, so I think the only thing that is really > covered is IOVAs. But saying "can map

Re: [Qemu-devel] [PATCH 00/14] Convert Sun devices to memory API.

2011-11-15 Thread Benoît Canet
Thanks 2011/11/15 Avi Kivity > On 11/15/2011 05:22 PM, Benoît Canet wrote: > > When converting lines like : > > > > -cpu_register_physical_memory_offset(0x1f80, 0x1000, > > -sh7750_io_memory, 0x1f80); > > -cpu_register_physical_memory_offse

Re: [Qemu-devel] converging around a single guest agent

2011-11-15 Thread Perry Myers
On 11/15/2011 01:08 PM, Subhendu Ghosh wrote: > On 11/15/2011 01:01 PM, Perry Myers wrote: >> On 11/15/2011 12:24 PM, Barak Azulay wrote: >>> Hi, >>> >>> One of the breakout sessions during the ovirt workshop [1] was about >>> the guest >>> tools, and focused mainly on the ovirt-guest-agent [2]. >>

Re: [Qemu-devel] converging around a single guest agent

2011-11-15 Thread Anthony Liguori
On 11/15/2011 11:24 AM, Barak Azulay wrote: Hi, One of the breakout sessions during the ovirt workshop [1] was about the guest tools, and focused mainly on the ovirt-guest-agent [2]. One of the issues discussed there, was the various existing guest agents out there, and the need to converge the

Re: [Qemu-devel] converging around a single guest agent

2011-11-15 Thread Anthony Liguori
On 11/15/2011 11:24 AM, Barak Azulay wrote: Hi, One of the breakout sessions during the ovirt workshop [1] was about the guest tools, and focused mainly on the ovirt-guest-agent [2]. One of the issues discussed there, was the various existing guest agents out there, and the need to converge the

Re: [Qemu-devel] [PATCH 0/5] docs: convert specifications to markdown

2011-11-15 Thread Anthony Liguori
On 11/15/2011 12:06 PM, Stefan Weil wrote: Am 15.11.2011 14:44, schrieb Anthony Liguori: Markdown is nice for separated specs and README files, but is it also possible to create a complete printed manual from all markdown files? I think high quality information beats pretty formatting any day.

Re: [Qemu-devel] [PATCH] ivshmem: use PIO for BAR0(Doorbell) instead of MMIO to reduce notification time

2011-11-15 Thread Cam Macdonell
On Sun, Nov 13, 2011 at 8:56 PM, wrote: > From: Hongyong Zang > > Ivshmem(nahanni) is a mechanism for sharing host memory with VMs running on > the same host. Currently, guest notifies qemu by reading or writing ivshmem > device's PCI MMIO BAR0(Doorbell). > > This patch, changes this PCI MMIO

[Qemu-devel] [PATCH v8 1.0] configure: build position independent executables on x86-Linux hosts

2011-11-15 Thread Avi Kivity
Change the default on x86 Linux hosts to building PIE (position independent executables); instead of restricting the option to user-only targets, apply it to all targets. In addition, set the relocation sections to read-only (relro) when available; this reduces the attack surface by disallowing ch

Re: [Qemu-devel] converging around a single guest agent

2011-11-15 Thread Subhendu Ghosh
On 11/15/2011 01:01 PM, Perry Myers wrote: On 11/15/2011 12:24 PM, Barak Azulay wrote: Hi, One of the breakout sessions during the ovirt workshop [1] was about the guest tools, and focused mainly on the ovirt-guest-agent [2]. One of the issues discussed there, was the various existing guest ag

Re: [Qemu-devel] [PATCH 0/5] docs: convert specifications to markdown

2011-11-15 Thread Stefan Weil
Am 15.11.2011 14:44, schrieb Anthony Liguori: On 11/15/2011 02:28 AM, Avi Kivity wrote: On 11/15/2011 12:41 AM, Anthony Liguori wrote: Right now our specs are written in psuedo-wiki syntax. This series converts them to markdown. markdown is a simple markup format that's gaining in popularity

Re: [Qemu-devel] [RFC PATCH] vfio: VFIO Driver core framework

2011-11-15 Thread Alex Williamson
On Tue, 2011-11-15 at 17:34 +1100, David Gibson wrote: > On Thu, Nov 03, 2011 at 02:12:24PM -0600, Alex Williamson wrote: > > diff --git a/Documentation/vfio.txt b/Documentation/vfio.txt > > new file mode 100644 > > index 000..5866896 > > --- /dev/null > > +++ b/Documentation/vfio.txt > > @@ -0

Re: [Qemu-devel] converging around a single guest agent

2011-11-15 Thread Perry Myers
On 11/15/2011 12:24 PM, Barak Azulay wrote: > Hi, > > One of the breakout sessions during the ovirt workshop [1] was about the > guest > tools, and focused mainly on the ovirt-guest-agent [2]. > > One of the issues discussed there, was the various existing guest agents out > there, and the ne

Re: [Qemu-devel] [PATCH v7 1.0] configure: build position independent executables on x86 hosts

2011-11-15 Thread Avi Kivity
On 11/15/2011 04:57 PM, Anthony Liguori wrote: > On 11/15/2011 05:25 AM, Peter Maydell wrote: >> On 15 November 2011 09:34, Avi Kivity wrote: >>> Change the default on x86 hosts to building PIE (position independent >>> executables); instead of restricting the option to user-only targets, >>> appl

Re: [Qemu-devel] [PATCH 00/14] Convert Sun devices to memory API.

2011-11-15 Thread Avi Kivity
On 11/15/2011 05:22 PM, Benoît Canet wrote: > When converting lines like : > > -cpu_register_physical_memory_offset(0x1f80, 0x1000, > -sh7750_io_memory, 0x1f80); > -cpu_register_physical_memory_offset(0xff80, 0x1000, > -

[Qemu-devel] Sharing virtio-devices between several kvm virtual machines over network

2011-11-15 Thread Leib, David
Hi, I am trying to share devices between vm's. For example I want to use a cdrom-drive who is exposed to a vm from another vm over the network. In addition to this I want to use virtio for this idea. What I am trying to do step by step: 1. If virtqueue_pop is called on the KVM 2 I take the io

Re: [Qemu-devel] converging around a single guest agent

2011-11-15 Thread Alon Levy
On Tue, Nov 15, 2011 at 07:24:40PM +0200, Barak Azulay wrote: > Hi, > > One of the breakout sessions during the ovirt workshop [1] was about the > guest > tools, and focused mainly on the ovirt-guest-agent [2]. > > One of the issues discussed there, was the various existing guest agents out >

[Qemu-devel] [PATCH 4/4] virtio-scsi: process control queue requests

2011-11-15 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- hw/virtio-scsi.c | 111 ++--- 1 files changed, 104 insertions(+), 7 deletions(-) diff --git a/hw/virtio-scsi.c b/hw/virtio-scsi.c index 5fc3c00..146ea6e 100644 --- a/hw/virtio-scsi.c +++ b/hw/virtio-scsi.c @@ -224,

Re: [Qemu-devel] [Xen-devel] [PATCH 3/4] xen: introduce an event channel for buffered io event notifications

2011-11-15 Thread Ian Campbell
On Tue, 2011-11-15 at 17:20 +, Stefano Stabellini wrote: > On Tue, 15 Nov 2011, Ian Campbell wrote: > > > +xc_get_hvm_param(xen_xc, xen_domid, HVM_PARAM_BUFIOREQ_EVTCHN, > > > +&bufioreq_evtchn); > > > +rc = xc_evtchn_bind_interdomain(state->xce_handle, xen_domid, > > > +

Re: [Qemu-devel] [PATCH 0/5] docs: convert specifications to markdown

2011-11-15 Thread Stefano Stabellini
On Tue, 15 Nov 2011, Alex Bradbury wrote: > On 15 November 2011 13:51, Avi Kivity wrote: > > Does markdown support rendering into man pages? > > You can do this via pandoc: > http://johnmacfarlane.net/pandoc/ Actually we are having the very same issue on xen right now: we have a manual written

[Qemu-devel] converging around a single guest agent

2011-11-15 Thread Barak Azulay
Hi, One of the breakout sessions during the ovirt workshop [1] was about the guest tools, and focused mainly on the ovirt-guest-agent [2]. One of the issues discussed there, was the various existing guest agents out there, and the need to converge the efforts to a single agent that will serve

[Qemu-devel] [PATCH 2/4] virtio-scsi: Add basic request processing infrastructure

2011-11-15 Thread Paolo Bonzini
From: Stefan Hajnoczi Signed-off-by: Stefan Hajnoczi Signed-off-by: Paolo Bonzini --- hw/virtio-scsi.c | 138 +- 1 files changed, 136 insertions(+), 2 deletions(-) diff --git a/hw/virtio-scsi.c b/hw/virtio-scsi.c index ff86376..7e6348a 1006

[Qemu-devel] [PATCH 3/4] virtio-scsi: add basic SCSI bus operation

2011-11-15 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- hw/virtio-scsi.c | 99 -- 1 files changed, 88 insertions(+), 11 deletions(-) diff --git a/hw/virtio-scsi.c b/hw/virtio-scsi.c index 7e6348a..5fc3c00 100644 --- a/hw/virtio-scsi.c +++ b/hw/virtio-scsi.c @@ -119

[Qemu-devel] [PATCH 1/4] virtio-scsi: Add virtio-scsi stub device

2011-11-15 Thread Paolo Bonzini
From: Stefan Hajnoczi Add a useless virtio SCSI HBA device: qemu -device virtio-scsi-pci Signed-off-by: Stefan Hajnoczi Signed-off-by: Paolo Bonzini --- Makefile.target |1 + default-configs/pci.mak |1 + hw/pci.h|1 + hw/virtio-pci.c | 42

Re: [Qemu-devel] [Xen-devel] [PATCH 3/4] xen: introduce an event channel for buffered io event notifications

2011-11-15 Thread Stefano Stabellini
On Tue, 15 Nov 2011, Ian Campbell wrote: > > +xc_get_hvm_param(xen_xc, xen_domid, HVM_PARAM_BUFIOREQ_EVTCHN, > > +&bufioreq_evtchn); > > +rc = xc_evtchn_bind_interdomain(state->xce_handle, xen_domid, > > +(uint32_t)bufioreq_evtchn); > > +if (rc == -1) { > > +

Re: [Qemu-devel] [Xen-devel] [PATCH 3/4] xen: introduce an event channel for buffered io event notifications

2011-11-15 Thread Ian Campbell
On Tue, 2011-11-15 at 14:51 +, stefano.stabell...@eu.citrix.com wrote: > From: Stefano Stabellini > > Use the newly introduced HVM_PARAM_BUFIOREQ_EVTCHN to receive > notifications for buffered io events. > After the first notification is received leave the event channel masked > and setup a t

[Qemu-devel] [RFC PATCH 0/4] virtio-scsi device model

2011-11-15 Thread Paolo Bonzini
Here is the first sneak peek of virtio-scsi. It's on top of my scsi-sg branch at http://github.com/bonzini/qemu. I'm more interested in getting early reviews in the virtio side, so I'm omitting the scsi-specific patches that introduce support for scatter/gather I/O in the SCSI layer. What's miss

Re: [Qemu-devel] [PATCH 1/4] xen: introduce mc146818rtcxen

2011-11-15 Thread Stefano Stabellini
On Tue, 15 Nov 2011, Anthony Liguori wrote: > On 11/15/2011 08:51 AM, stefano.stabell...@eu.citrix.com wrote: > > From: Stefano Stabellini > > > > Xen doesn't need full RTC emulation in Qemu because the RTC is already > > emulated by the hypervisor. In particular we want to avoid the timers > > ini

[Qemu-devel] [PATCH 1.0 v2] scsi: fix fw path

2011-11-15 Thread Paolo Bonzini
The pre-1.0 firmware path for SCSI devices already included the LUN using the suffix argument to add_boot_device_path. I missed that when making channel and LUN customizable. Avoid that it is included twice, and convert the colons to commas for consistency with other kinds of devices Signed-off-

Re: [Qemu-devel] KVM call agenda for November 15th

2011-11-15 Thread Anthony Liguori
On 11/14/2011 11:44 AM, Juan Quintela wrote: Hi Please send in any agenda items you are interested in covering. Proposal: - Migration debacle. Just to capture my action items so I don't forget: 1) write up a markdown document for qemu.git that describes the past, current, and future state

[Qemu-devel] [PATCH 1.0] scsi-disk: guess geometry

2011-11-15 Thread Paolo Bonzini
Old operating systems rely on correct geometry to convert from CHS addresses to LBA. Providing correct data is necessary for them to boot. Signed-off-by: Paolo Bonzini --- This fixes booting the FreeDOS image on bochs.sf.net with virtio-scsi. I haven't tested with LSI option ROM

Re: [Qemu-devel] [PATCH 00/14] Convert Sun devices to memory API.

2011-11-15 Thread Benoît Canet
When converting lines like : -cpu_register_physical_memory_offset(0x1f80, 0x1000, -sh7750_io_memory, 0x1f80); -cpu_register_physical_memory_offset(0xff80, 0x1000, -sh7750_io_memory, 0x1f80); I'

Re: [Qemu-devel] [RFC 1.0] pc_piix: set qxl revision to 2 for pc-0.14

2011-11-15 Thread Anthony Liguori
On 11/13/2011 07:27 AM, Alon Levy wrote: The default is still 3, and I didn't change older machine types. Signed-off-by: Alon Levy Applied. Thanks. Regards, Anthony Liguori --- Is there a better way then copy pasting this to the older pc types to get the revision == 2 for them as well?

Re: [Qemu-devel] [PATCH] hw/omap_gpio: Fix infinite recursion when doing 8/16 bit reads

2011-11-15 Thread Anthony Liguori
On 11/07/2011 07:25 AM, Peter Maydell wrote: Fix a long-standing bug which meant that any attempt to do an 8 or 16 bit read from the OMAP GPIO module would cause qemu to crash due to an infinite recursion. Signed-off-by: Peter Maydell Applied. Thanks. Regards, Anthony Liguori --- This has

Re: [Qemu-devel] [PATCH v7 1.0] configure: build position independent executables on x86 hosts

2011-11-15 Thread Anthony Liguori
On 11/15/2011 05:25 AM, Peter Maydell wrote: On 15 November 2011 09:34, Avi Kivity wrote: Change the default on x86 hosts to building PIE (position independent executables); instead of restricting the option to user-only targets, apply it to all targets. In addition, set the relocation section

Re: [Qemu-devel] [PATCH 1/4] xen: introduce mc146818rtcxen

2011-11-15 Thread Anthony Liguori
On 11/15/2011 08:51 AM, stefano.stabell...@eu.citrix.com wrote: From: Stefano Stabellini Xen doesn't need full RTC emulation in Qemu because the RTC is already emulated by the hypervisor. In particular we want to avoid the timers initialization so that Qemu doesn't need to wake up needlessly. S

[Qemu-devel] [PATCH 3/4] xen: introduce an event channel for buffered io event notifications

2011-11-15 Thread stefano.stabellini
From: Stefano Stabellini Use the newly introduced HVM_PARAM_BUFIOREQ_EVTCHN to receive notifications for buffered io events. After the first notification is received leave the event channel masked and setup a timer to process the rest of the batch. Once we have completed processing the batch, unm

Re: [Qemu-devel] [PATCH 0/5] docs: convert specifications to markdown

2011-11-15 Thread Anthony Liguori
On 11/15/2011 07:51 AM, Avi Kivity wrote: On 11/15/2011 03:44 PM, Anthony Liguori wrote: Nice. Suggest you enable rename detection, to make patches like these easier to read (not that it truly matters in the particular case). I haven't figured out yet how to make this sane to merge, but I've

[Qemu-devel] [PATCH 4/4] qemu_calculate_timeout: increase minimum timeout to 1h

2011-11-15 Thread stefano.stabellini
From: Stefano Stabellini There is no reason why the minimum timeout should be 1sec, it could easily be 1h and we would safe lots of cpu cycles. Signed-off-by: Stefano Stabellini --- qemu-timer.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/qemu-timer.c b/qemu-timer

[Qemu-devel] [PATCH 1/4] xen: introduce mc146818rtcxen

2011-11-15 Thread stefano.stabellini
From: Stefano Stabellini Xen doesn't need full RTC emulation in Qemu because the RTC is already emulated by the hypervisor. In particular we want to avoid the timers initialization so that Qemu doesn't need to wake up needlessly. Signed-off-by: Stefano Stabellini --- hw/mc146818rtc.c | 36 ++

[Qemu-devel] [PATCH 2/4] xen: do not initialize the interval timer emulator

2011-11-15 Thread stefano.stabellini
From: Stefano Stabellini PIT is emulated by the hypervisor so we don't need to emulate it in Qemu: this patch prevents Qemu from waking up needlessly at PIT_FREQ on Xen. Signed-off-by: Stefano Stabellini --- hw/pc.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a

[Qemu-devel] [PATCH 0/4] prevent Qemu from waking up needlessly

2011-11-15 Thread Stefano Stabellini
Hi all, this small patch series prevents Qemu from waking up needlessly on Xen several times a second in order to check some timers. The first two patches stop Qemu from emulating the RTC and the PIT on Xen, that are both already emulated in the hypervisor and consume precious cpu cycles because t

Re: [Qemu-devel] endless loop when use qemu-system-mipsel to load bios

2011-11-15 Thread Markus Armbruster
rui chen writes: > Hi all, > When I try to use command line "qemu-system-mipsel -M malta -L . > -nographic" to run redboot, it will have an endless loop, then I find this > bug, here is my patch: > > > Author: Chen Rui > Date: Sat Nov 12 01:38:23 2011 +0800 > > resolve an endless loop

Re: [Qemu-devel] [PATCH V2 03/12] hw/9pfs: File system helper process for qemu 9p proxy FS

2011-11-15 Thread Stefan Hajnoczi
On Tue, Nov 15, 2011 at 11:57 AM, M. Mohan Kumar wrote: > diff --git a/fsdev/virtfs-proxy-helper.c b/fsdev/virtfs-proxy-helper.c > new file mode 100644 > index 000..69daf7c > --- /dev/null > +++ b/fsdev/virtfs-proxy-helper.c > @@ -0,0 +1,271 @@ > +/* > + * Helper for QEMU Proxy FS Driver > + *

Re: [Qemu-devel] [PATCH 0/5] docs: convert specifications to markdown

2011-11-15 Thread Alex Bradbury
On 15 November 2011 13:51, Avi Kivity wrote: > Does markdown support rendering into man pages? You can do this via pandoc: http://johnmacfarlane.net/pandoc/ Alex

Re: [Qemu-devel] qemu and qemu.git -> Migration + disk stress introduces qcow2 corruptions

2011-11-15 Thread Anthony Liguori
On 11/15/2011 07:20 AM, Juan Quintela wrote: Again, I think defaulting DAS to cache=none|directsync is what makes the most sense here. I think it is the only sane solution. Otherwise, we need to write the equivalent of a lock manager, to know _who_ has the storage, and distributed lock manager

Re: [Qemu-devel] [PATCH 0/5] docs: convert specifications to markdown

2011-11-15 Thread Avi Kivity
On 11/15/2011 03:44 PM, Anthony Liguori wrote: > On 11/15/2011 02:28 AM, Avi Kivity wrote: >> On 11/15/2011 12:41 AM, Anthony Liguori wrote: >>> Right now our specs are written in psuedo-wiki syntax. This series >>> converts >>> them to markdown. markdown is a simple markup format that's gaining

Re: [Qemu-devel] [PATCH] migration: add a MAINTAINERS entry for migration

2011-11-15 Thread Anthony Liguori
On 11/15/2011 03:36 AM, Kevin Wolf wrote: Am 14.11.2011 22:08, schrieb Anthony Liguori: On 11/14/2011 11:40 AM, Juan Quintela wrote: Anthony Liguori wrote: I think this is an accurate reflection of the state of migration today. This is the second release in a row where we're scrambling to f

Re: [Qemu-devel] [PATCH] migration: add a MAINTAINERS entry for migration

2011-11-15 Thread Anthony Liguori
On 11/15/2011 02:32 AM, Stefan Hajnoczi wrote: On Mon, Nov 14, 2011 at 03:08:25PM -0600, Anthony Liguori wrote: On 11/14/2011 11:40 AM, Juan Quintela wrote: Anthony Liguori wrote: I think this is an accurate reflection of the state of migration today. This is the second release in a row whe

Re: [Qemu-devel] [PATCH 0/5] docs: convert specifications to markdown

2011-11-15 Thread Anthony Liguori
On 11/15/2011 02:28 AM, Avi Kivity wrote: On 11/15/2011 12:41 AM, Anthony Liguori wrote: Right now our specs are written in psuedo-wiki syntax. This series converts them to markdown. markdown is a simple markup format that's gaining in popularity. The big advantage of using markdown is that t

Re: [Qemu-devel] Summary of Anthony's 'next' queue

2011-11-15 Thread Anthony Liguori
On 11/14/2011 09:34 PM, Stefan Berger wrote: On 11/14/2011 03:17 PM, Anthony Liguori wrote: Hi, This is a summary of the patches that I have queued in my next tree that were identified as 1.1 candidates. These patches will not be applied until after the 1.1 tree opens (December 1st). These pat

[Qemu-devel] [PATCH 1.0] scsi: fix fw path

2011-11-15 Thread Paolo Bonzini
The pre-1.0 firmware path for SCSI devices already included the LUN using the suffix argument to add_boot_device_path. Avoid that it is included twice, and convert the colons to commas for consistency with other kinds of devices Signed-off-by: Paolo Bonzini --- hw/scsi-bus.c |2 +- 1 files

Re: [Qemu-devel] qemu and qemu.git -> Migration + disk stress introduces qcow2 corruptions

2011-11-15 Thread Avi Kivity
On 11/14/2011 11:58 AM, Kevin Wolf wrote: > Am 12.11.2011 11:25, schrieb Avi Kivity: > > On 11/11/2011 12:15 PM, Kevin Wolf wrote: > >> Am 10.11.2011 22:30, schrieb Anthony Liguori: > >>> Live migration with qcow2 or any other image format is just not going to > >>> work > >>> right now even with

Re: [Qemu-devel] qemu and qemu.git -> Migration + disk stress introduces qcow2 corruptions

2011-11-15 Thread Juan Quintela
Anthony Liguori wrote: > On 11/14/2011 04:16 AM, Daniel P. Berrange wrote: >> On Sat, Nov 12, 2011 at 12:25:34PM +0200, Avi Kivity wrote: >>> On 11/11/2011 12:15 PM, Kevin Wolf wrote: Am 10.11.2011 22:30, schrieb Anthony Liguori: > Live migration with qcow2 or any other image format is ju

Re: [Qemu-devel] Windows 7 shutdown causes BSOD

2011-11-15 Thread Stefan Hajnoczi
On Fri, Nov 4, 2011 at 11:25 AM, Stefan Hajnoczi wrote: > On Fri, Nov 4, 2011 at 10:48 AM, Stefan Hajnoczi wrote: >> Windows 7 32-bit guest blue screens when I shut it down properly with >> Start | Shut Down.  The blue screen is only displayed for a split >> second before the guest reboots so I a

Re: [Qemu-devel] [PATCH] migration: add a MAINTAINERS entry for migration

2011-11-15 Thread Avi Kivity
On 11/15/2011 10:32 AM, Stefan Hajnoczi wrote: > It would help to have a migration wiki page or document that explains > the implications of migration on QEMU code - what to look out for in > device emulation code. > > Although regular QEMU contributors may know the background on > migration/save/l

[Qemu-devel] [PATCH v3 0/6] Remove libqemu related stuff from QEMU source tree

2011-11-15 Thread 陳韋任
From: Chen Wei-Ren According to [1], libqemu is not available anymore. Remove libqemu related stuff from QEMU source tree. [1] http://www.mail-archive.com/address@hidden/msg49809.html v2: - Remove entry "qruncom.c" from "3 Regression Tests" in qemu-tech.texi. - Undo the deletion of common-o

[Qemu-devel] [PATCH v3 2/6] tests/qruncom.c: Remove libqemu.a example

2011-11-15 Thread 陳韋任
From: Chen Wei-Ren Remove libqemu example since libqemu.a is not available anymore. Signed-off-by: Chen Wei-Ren --- tests/qruncom.c | 284 --- 1 files changed, 0 insertions(+), 284 deletions(-) delete mode 100644 tests/qruncom.c diff --g

[Qemu-devel] [PATCH v3 3/6] qemu-tech.texi: Remove libqemu related stuff from the document

2011-11-15 Thread 陳韋任
From: Chen Wei-Ren Remove libqemu related stuff from the document since libqemu.a is not supported anymore. Signed-off-by: Chen Wei-Ren --- qemu-tech.texi | 10 -- 1 files changed, 0 insertions(+), 10 deletions(-) diff --git a/qemu-tech.texi b/qemu-tech.texi index 62afe45..5676fb

[Qemu-devel] [PATCH v3 4/6] Makefile.target: Remove out of date comment

2011-11-15 Thread 陳韋任
From: Chen Wei-Ren Remove the out of date comment, i.e., "# libqemu" since libqemu.a is not available anymore. Signed-off-by: Chen Wei-Ren --- v3: - Only remove out-of-date comment about libqemu.a from Makefile.target, leave manually inserted dependencie alone. Makefile.target |2 --

[Qemu-devel] [PATCH v3 1/6] tests/Makefile: Remove qruncom target

2011-11-15 Thread 陳韋任
From: Chen Wei-Ren Remove qruncom target from the Makefile file. Signed-off-by: Chen Wei-Ren --- tests/Makefile |6 -- 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index 430e0c1..15e36a2 100644 --- a/tests/Makefile +++ b/tests/Makefil

[Qemu-devel] [PATCH v3 5/6] Makefile.objs: Remove libqemu_common.a from the comment

2011-11-15 Thread 陳韋任
From: Chen Wei-Ren Remove libqemu_common.a from the comment. Signed-off-by: Chen Wei-Ren --- Makefile.objs |7 +++ 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile.objs b/Makefile.objs index d7a6539..64c5c24 100644 --- a/Makefile.objs +++ b/Makefile.objs @@ -68

[Qemu-devel] [PATCH v3 6/6] LICENSE: There is no libqemu.a anymore

2011-11-15 Thread 陳韋任
From: Chen Wei-Ren Remove statement about libqemu.a from LICENSE. Signed-off-by: Chen Wei-Ren --- LICENSE |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/LICENSE b/LICENSE index cbd92c0..acae9a3 100644 --- a/LICENSE +++ b/LICENSE @@ -6,9 +6,7 @@ The following poin

[Qemu-devel] [PATCH 12/14] slavio_timer: convert to memory API

2011-11-15 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/slavio_timer.c | 41 - 1 files changed, 20 insertions(+), 21 deletions(-) diff --git a/hw/slavio_timer.c b/hw/slavio_timer.c index 84449ba..c23f990 100644 --- a/hw/slavio_timer.c +++ b/hw/slavio_timer.c @@ -61,6 +61,7 @

[Qemu-devel] [PATCH V2 03/12] hw/9pfs: File system helper process for qemu 9p proxy FS

2011-11-15 Thread M. Mohan Kumar
Provide root privilege access to QEMU 9p proxy filesystem using socket communication. Proxy helper is started by root user as: ~ # virtfs-proxy-helper -f|--fd -p|--path Signed-off-by: M. Mohan Kumar --- Makefile|3 + configure | 19 +++ fsdev/virtfs

[Qemu-devel] [PATCH 02/14] slavio_misc: convert configuration to memory API

2011-11-15 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/slavio_misc.c | 31 +++ 1 files changed, 15 insertions(+), 16 deletions(-) diff --git a/hw/slavio_misc.c b/hw/slavio_misc.c index 7d427f7..7b98f11 100644 --- a/hw/slavio_misc.c +++ b/hw/slavio_misc.c @@ -36,6 +36,7 @@ typedef st

[Qemu-devel] [PATCH 05/14] slavio_misc: convert leds to memory API

2011-11-15 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/slavio_misc.c | 31 +++ 1 files changed, 15 insertions(+), 16 deletions(-) diff --git a/hw/slavio_misc.c b/hw/slavio_misc.c index 9110c64..db266ba 100644 --- a/hw/slavio_misc.c +++ b/hw/slavio_misc.c @@ -39,6 +39,7 @@ typedef struc

[Qemu-devel] [PATCH V2 04/12] hw/9pfs: Open and create files

2011-11-15 Thread M. Mohan Kumar
Add interfaces to open and create files for proxy file system driver. Signed-off-by: M. Mohan Kumar --- fsdev/virtfs-proxy-helper.c | 136 +++- hw/9pfs/virtio-9p-proxy.c | 180 +-- hw/9pfs/virtio-9p-proxy.h |9 ++ 3 fi

[Qemu-devel] [PATCH 14/14] esp: Fix memory API conversion

2011-11-15 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/esp.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/esp.c b/hw/esp.c index 2f23df9..9ab41ba 100644 --- a/hw/esp.c +++ b/hw/esp.c @@ -745,6 +745,7 @@ static int esp_init1(SysBusDevice *dev) memory_region_init_io(&s->iomem, &es

[Qemu-devel] [PATCH 04/14] slavio_misc: convert modem to memory API

2011-11-15 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/slavio_misc.c | 31 +++ 1 files changed, 15 insertions(+), 16 deletions(-) diff --git a/hw/slavio_misc.c b/hw/slavio_misc.c index 60a115d..9110c64 100644 --- a/hw/slavio_misc.c +++ b/hw/slavio_misc.c @@ -38,6 +38,7 @@ typedef struc

[Qemu-devel] [PATCH 09/14] slavio_intctl: convert master interrupt controller to memory API

2011-11-15 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/slavio_intctl.c | 31 +++ 1 files changed, 15 insertions(+), 16 deletions(-) diff --git a/hw/slavio_intctl.c b/hw/slavio_intctl.c index 329c251..0bc2a0b 100644 --- a/hw/slavio_intctl.c +++ b/hw/slavio_intctl.c @@ -54,6 +54,7 @@ typ

[Qemu-devel] [PATCH 10/14] slavio_intctl: convert slaves interrupt controllers to memory API

2011-11-15 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/slavio_intctl.c | 36 ++-- 1 files changed, 18 insertions(+), 18 deletions(-) diff --git a/hw/slavio_intctl.c b/hw/slavio_intctl.c index 0bc2a0b..e7812ed 100644 --- a/hw/slavio_intctl.c +++ b/hw/slavio_intctl.c @@ -46,6 +46,7 @

[Qemu-devel] [PATCH V2 09/12] hw/9pfs: Proxy getversion

2011-11-15 Thread M. Mohan Kumar
Add proxy getversion to get generation number Signed-off-by: M. Mohan Kumar --- fsdev/virtfs-proxy-helper.c | 74 +++ hw/9pfs/virtio-9p-proxy.c | 31 ++ hw/9pfs/virtio-9p-proxy.h |1 + 3 files changed, 106 insertions(+), 0 delet

Re: [Qemu-devel] [PATCH 00/14] Convert Sun devices to memory API.

2011-11-15 Thread Avi Kivity
On 11/15/2011 01:13 PM, Benoît Canet wrote: > .valid was used where the access size is specified like in > http://www.ibiblio.org/pub/historic-linux/early-ports/Sparc/NCR/NCR89C105.txt > .impl was used when the behavior is not known. Thanks, all applied except: > sun4c_intctl: convert to memory

[Qemu-devel] [PATCH V2 08/12] hw/9pfs: xattr interfaces in proxy filesystem driver

2011-11-15 Thread M. Mohan Kumar
Add xattr support for proxy FS Signed-off-by: M. Mohan Kumar --- fsdev/virtfs-proxy-helper.c | 78 - hw/9pfs/virtio-9p-proxy.c | 119 +++ hw/9pfs/virtio-9p-proxy.h |4 ++ 3 files changed, 190 insertions(+), 11 deletio

Re: [Qemu-devel] [PATCH] virtio-blk: fix cross-endian config space

2011-11-15 Thread Stefan Hajnoczi
On Tue, Nov 15, 2011 at 12:07:53PM +0100, Paolo Bonzini wrote: > Signed-off-by: Paolo Bonzini > --- > hw/virtio-blk.c |6 +++--- > 1 files changed, 3 insertions(+), 3 deletions(-) Works with existing x86 guests and does the right thing for big-endian guests. Reviewed-by: Stefan Hajnoczi

[Qemu-devel] [PATCH 00/12] Proxy FS driver for VirtFS

2011-11-15 Thread M. Mohan Kumar
Pass-through security model in QEMU 9p server needs root privilege to do few file operations (like chown, chmod to any mode/uid:gid). There are two issues in pass-through security model 1) TOCTTOU vulnerability: Following symbolic links in the server could provide access to files beyond 9p export

[Qemu-devel] [PATCH V2 11/12] hw/9pfs: man page for proxy helper

2011-11-15 Thread M. Mohan Kumar
Signed-off-by: M. Mohan Kumar --- Makefile | 12 +++- fsdev/virtfs-proxy-helper.texi | 59 2 files changed, 70 insertions(+), 1 deletions(-) create mode 100644 fsdev/virtfs-proxy-helper.texi diff --git a/Makefile b/Makefile

Re: [Qemu-devel] [PATCH v2] qcow2: Unlock during COW

2011-11-15 Thread Stefan Hajnoczi
On Mon, Nov 14, 2011 at 06:55:18PM +0100, Kevin Wolf wrote: > Unlocking during COW allows for more parallelism. One change it requires is > that buffers are dynamically allocated instead of just using a per-image > buffer. > > While touching the code, drop the synchronous qcow2_read() function and

Re: [Qemu-devel] [PATCH V2 00/12] Proxy FS driver for VirtFS

2011-11-15 Thread M. Mohan Kumar
Changes from previous version: 1) Communication between qemu and helper process is similar to 9p way of packing elements (pdu marshaling). M. Mohan Kumar wrote: Pass-through security model in QEMU 9p server needs root privilege to do few file operations (like chown, chmod to any mode/uid:gid)

[Qemu-devel] [PATCH V2 01/12] hw/9pfs: Move pdu_marshal/unmarshal code to a seperate file

2011-11-15 Thread M. Mohan Kumar
Move p9 marshaling/unmarshaling code to a separate file so that proxy filesytem driver can use these calls. Also made marshaling code generic to accept "struct iovec" instead of V9fsPDU. Signed-off-by: M. Mohan Kumar --- Makefile.objs |2 +- fsdev/virtio-9p-marshal.c | 338 +

[Qemu-devel] [PATCH 08/14] slavio_misc: convert aux2 to memory API

2011-11-15 Thread Benoît Canet
Signed-off-by: Benoit Canet --- hw/slavio_misc.c | 32 +++- 1 files changed, 15 insertions(+), 17 deletions(-) diff --git a/hw/slavio_misc.c b/hw/slavio_misc.c index 7a51e1b..ccc1c53 100644 --- a/hw/slavio_misc.c +++ b/hw/slavio_misc.c @@ -42,6 +42,7 @@ typedef stru

[Qemu-devel] [PATCH V2 10/12] hw/9pfs: Documentation changes related to proxy fs

2011-11-15 Thread M. Mohan Kumar
Signed-off-by: M. Mohan Kumar --- qemu-options.hx | 25 - 1 files changed, 16 insertions(+), 9 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index 681eaf1..cde17ed 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -530,19 +530,19 @@ DEFHEADING() DEFHE

  1   2   >