Re: [Qemu-devel] bdrv_flush for qemu block drivers nbd, rbd and sheepdog

2010-10-21 Thread MORITA Kazutaka
At Thu, 21 Oct 2010 16:07:28 +0200, Kevin Wolf wrote: > > Hi all, > > I'm currently looking into adding a return value to qemu's bdrv_flush > function and I noticed that your block drivers (nbd, rbd and sheepdog) > don't implement bdrv_flush at all. bdrv_flush is going to return > -ENOTSUP for an

Re: [Qemu-devel] [PATCH 0/3] add usb_detach and usb_attach (v3)

2010-10-21 Thread Ryan Harper
* Alon Levy [2010-10-21 08:26]: > On Thu, Oct 21, 2010 at 08:13:19AM -0500, Anthony Liguori wrote: > > On 10/21/2010 08:03 AM, Gerd Hoffmann wrote: > > >On 10/21/10 08:36, Alon Levy wrote: > > >>v2->v3 changes: > > >> * add configure parameter > > >> * fix docs > > >> > > >>v2 message: > > >>Thi

[Qemu-devel] [PATCH 1/2] v2 Add drive_get_by_id

2010-10-21 Thread Ryan Harper
Add a function to find a drive by id string. Changes since v1: -Coding Style fix Signed-off-by: Ryan Harper --- blockdev.c | 13 + blockdev.h |1 + 2 files changed, 14 insertions(+), 0 deletions(-) diff --git a/blockdev.c b/blockdev.c index ff7602b..5fc3b9b 100644 --- a/block

[Qemu-devel] [PATCH 2/2] v3 Fix Block Hotplug race with drive_unplug()

2010-10-21 Thread Ryan Harper
Block hot unplug is racy since the guest is required to acknowlege the ACPI unplug event; this may not happen synchronously with the device removal command This series aims to close a gap where by mgmt applications that assume the block resource has been removed without confirming that the guest h

[Qemu-devel] [PATCH 0/2] v3 Decouple block device removal from device removal

2010-10-21 Thread Ryan Harper
This patch series decouples the detachment of a block device from the removal of the backing pci-device. Removal of a hotplugged pci device requires the guest to respond before qemu tears down the block device. In some cases, the guest may not respond leaving the guest with continued access to the

[Qemu-devel] Offerta

2010-10-21 Thread Tipografia
TIPOGRAFIA e STAMPA DIGITALE www.tipoprint.com Tel: 02 89 92 67 50 Gentile Cliente, Crediamo sia cosa gradita farvi pervenire questa nostra offerta relativa ai nostri stampati. E' una occasione da non perdere anche perche' potrete sfruttare questa offerta per tutto il 2010 a sola condizione che ri

[Qemu-devel] Offerta

2010-10-21 Thread Tipografia
TIPOGRAFIA e STAMPA DIGITALE www.tipoprint.com Tel: 02 89 92 67 50 Gentile Cliente, Crediamo sia cosa gradita farvi pervenire questa nostra offerta relativa ai nostri stampati. E' una occasione da non perdere anche perche' potrete sfruttare questa offerta per tutto il 2010 a sola condizione che ri

[Qemu-devel] Re: [PATCH v6 08/12] pcie/aer: helper functions for pcie aer capability

2010-10-21 Thread Isaku Yamahata
On Thu, Oct 21, 2010 at 10:07:01AM +0200, Michael S. Tsirkin wrote: > On Thu, Oct 21, 2010 at 02:15:24PM +0900, Isaku Yamahata wrote: > > Thank you for detailed review. > > > > On Wed, Oct 20, 2010 at 11:56:16AM +0200, Michael S. Tsirkin wrote: > > > > +static uint32_t aer_log_del(PCIEAERLog *aer_

[Qemu-devel] Re: VM with two interfaces

2010-10-21 Thread Nirmal Guhan
On Thu, Oct 21, 2010 at 9:23 AM, Nirmal Guhan wrote: > Hi, > > Am trying to create a VM using qemu-kvm with two interfaces(fedora12 > is the host and vm) and running into an issue. Given below is the > command : > > qemu-kvm -net nic,macaddr=$macaddress,model=pcnet -net > tap,script=/etc/qemu-ifup

Re: [Qemu-devel] [PATCH 2/2] v2 Fix Block Hotplug race with drive_unplug()

2010-10-21 Thread Ryan Harper
* Daniel P. Berrange [2010-10-21 08:29]: > On Tue, Oct 19, 2010 at 09:32:29AM -0500, Ryan Harper wrote: > > Block hot unplug is racy since the guest is required to acknowlege the ACPI > > unplug event; this may not happen synchronously with the device removal > > command > > > > This series aims

[Qemu-devel] [PATCH] sparc32: convert debug printf statements to tracepoints

2010-10-21 Thread Blue Swirl
Replace debug printf statements with tracepoints. Signed-off-by: Blue Swirl --- There were problems with tracetool if the tracepoint string contained parentheses or brackets, so I removed those. hw/cs4231.c| 20 ++--- hw/eccmemctl.c | 46 +- hw/lance.c

Re: [Qemu-devel] KVM call minutes for Oct 19

2010-10-21 Thread Andrew Beekhof
On 10/21/2010 06:25 PM, Anthony Liguori wrote: Hi Andrew, On 10/21/2010 10:43 AM, Andrew Beekhof wrote: In that case we've done a bad job of the wiki. Windows and other distributions are a key part of the Matahari vision. Matahari is two things - an architecture, and - an implementation of the

Re: [Qemu-devel] [PATCH 3/3] monitor: add usb_attach and usb_detach

2010-10-21 Thread Alon Levy
On Wed, Oct 20, 2010 at 02:24:20PM -0200, Luiz Capitulino wrote: > On Tue, 19 Oct 2010 15:35:01 +0200 > Gerd Hoffmann wrote: > > >Hi, > > > > > +.help = "attach USB device 'bus.addr'", > > > > > +...@item usb_attach @var{devname} > > > > /me sees a mismatch here. > > > > The

Re: [Qemu-devel] bdrv_flush for qemu block drivers nbd, rbd and sheepdog

2010-10-21 Thread Laurent Vivier
Le jeudi 21 octobre 2010 à 10:07 -0500, Anthony Liguori a écrit : > On 10/21/2010 09:07 AM, Kevin Wolf wrote: > > Hi all, > > > > I'm currently looking into adding a return value to qemu's bdrv_flush > > function and I noticed that your block drivers (nbd, rbd and sheepdog) > > don't implement bdrv

[Qemu-devel] [PATCH 6/7] kvm: writeback SMP TSCs on migration only

2010-10-21 Thread Marcelo Tosatti
commit 6389c45441269baa2873e6feafebd17105ddeaf6 Author: Jan Kiszka Date: Mon Mar 1 18:17:26 2010 +0100 qemu-kvm: Cleanup/fix TSC and PV clock writeback Signed-off-by: Marcelo Tosatti --- target-i386/kvm.c | 10 +- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/t

[Qemu-devel] [PATCH V6 05/15] xen: Add xen in -accel option.

2010-10-21 Thread anthony . perard
From: Anthony PERARD This come with the initialisation of Xen. Signed-off-by: Anthony PERARD --- Makefile.target |5 + hw/xen.h| 10 ++ vl.c|2 ++ xen-all.c | 25 + xen-stub.c | 17 + 5 files chang

[Qemu-devel] [PATCH 3/7] Fix build on !KVM_CAP_MCE

2010-10-21 Thread Marcelo Tosatti
From: Hidetoshi Seto This patch removes following warnings: target-i386/kvm.c: In function 'kvm_put_msrs': target-i386/kvm.c:782: error: unused variable 'i' target-i386/kvm.c: In function 'kvm_get_msrs': target-i386/kvm.c:1083: error: label at end of compound statement Signed-off-by: Hidetoshi

[Qemu-devel] [PATCH 7/7] kvm: save/restore x86-64 MSRs on x86-64 kernels

2010-10-21 Thread Marcelo Tosatti
Signed-off-by: Marcelo Tosatti --- target-i386/kvm.c | 30 -- 1 files changed, 20 insertions(+), 10 deletions(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index e2f7e2e..ae0a034 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -15,6 +15,7 @@ #incl

[Qemu-devel] [PATCH 5/7] kvm: factor out kvm_has_msr_star

2010-10-21 Thread Marcelo Tosatti
And add kvm_has_msr_hsave_pa(), to avoid warnings on older kernels without support. Signed-off-by: Marcelo Tosatti --- target-i386/kvm.c | 41 ++--- 1 files changed, 30 insertions(+), 11 deletions(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index

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

2010-10-21 Thread Marcelo Tosatti
The following changes since commit 633aa0acfe2c4d3e56acfe28c912796bf54de6d3: Fix pci hotplug to generate level triggered interrupt. (2010-10-20 17:23:28 -0500) are available in the git repository at: git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git uq/master Hidetoshi Seto (3): x86,

[Qemu-devel] [PATCH 1/7] x86, mce: ignore SRAO only when MCG_SER_P is available

2010-10-21 Thread Marcelo Tosatti
From: Hidetoshi Seto And restruct this block to call kvm_mce_in_exception() only when it is required. Signed-off-by: Hidetoshi Seto Signed-off-by: Marcelo Tosatti --- target-i386/kvm.c | 16 ++-- 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/target-i386/kvm.c b

[Qemu-devel] [PATCH 4/7] kvm: add save/restore of MSR_VM_HSAVE_PA

2010-10-21 Thread Marcelo Tosatti
commit 2bba4446746add456ceeb0e8359a43032a2ea333 Author: Alexander Graf Date: Thu Dec 18 15:38:32 2008 +0100 Enable nested SVM support in userspace Signed-off-by: Marcelo Tosatti --- target-i386/kvm.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/target-i386

[Qemu-devel] Fwd: Your Userful Multiplier Download

2010-10-21 Thread jairo mayorga
-- Forwarded message -- From: Date: 2010/10/21 Subject: Your Userful Multiplier Download To: jairom...@gmail.com Hi Jairo, I wanted to drop you a line to check in on how things are going with the free-2-user version of Userful Multiplier you signed up for on our website a while

[Qemu-devel] [PATCH 2/7] x86, mce: broadcast mce depending on the cpu version

2010-10-21 Thread Marcelo Tosatti
From: Hidetoshi Seto There is no reason why SRAO event received by the main thread is the only one that being broadcasted. According to the x86 ASDM vol.3A 15.10.4.1, MCE signal is broadcast on processor version 06H_EH or later. This change is required to handle SRAR in smp guests. Signed-off-

[Qemu-devel] [PATCH V6 03/15] xen: Add xen_machine_fv

2010-10-21 Thread anthony . perard
From: Anthony PERARD Add the Xen FV (Fully Virtualized) machine to Qemu; this is groundwork to add Xen device model support in Qemu. Signed-off-by: Anthony PERARD Signed-off-by: Stefano Stabellini --- Makefile.target |3 + hw/xen_common.h |5 ++ hw/xen_machine_fv.c | 158

[Qemu-devel] [PATCH V6 13/15] xen: Initialize event channels and io rings

2010-10-21 Thread anthony . perard
From: Arun Sharma Open and bind event channels; map ioreq and buffered ioreq rings. Signed-off-by: Arun Sharma Signed-off-by: Anthony PERARD Signed-off-by: Stefano Stabellini --- hw/xen_common.h |3 + xen-all.c | 407 +++ 2 files

[Qemu-devel] [PATCH V6 12/15] vl.c: Introduce getter for shutdown_requested and reset_requested.

2010-10-21 Thread anthony . perard
From: Anthony PERARD Introduce two functions qemu_shutdown_requested_get and qemu_reset_requested_get to get the value of shutdown/reset_requested without reset it. Signed-off-by: Anthony PERARD Signed-off-by: Stefano Stabellini --- sysemu.h |2 ++ vl.c | 10 ++ 2 files chan

[Qemu-devel] [PATCH V6 04/15] Introduce -accel command option.

2010-10-21 Thread anthony . perard
From: Anthony PERARD This option gives the ability to switch one "accelerator" like kvm, xen or the default one tcg. We can specify more than one accelerator by separate them by a comma. QEMU will try each one and use the first whose works. So, -accel xen,kvm,tcg which would try Xen support fi

[Qemu-devel] [PATCH V6 09/15] xen: Introduce the Xen mapcache

2010-10-21 Thread anthony . perard
From: Jun Nakajima On IA32 host or IA32 PAE host, at present, generally, we can't create an HVM guest with more than 2G memory, because generally it's almost impossible for Qemu to find a large enough and consecutive virtual address space to map an HVM guest's whole physical address space. The at

[Qemu-devel] [PATCH V6 10/15] configure: Always use 64bits target physical addresses with xen enabled.

2010-10-21 Thread anthony . perard
From: Anthony PERARD With MapCache, we can handle a 64b target, even with a 32b host/qemu. So, we need to have target_phys_addr_t to 64bits. Signed-off-by: Anthony PERARD --- configure |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/configure b/configure index d5a855

[Qemu-devel] [PATCH V6 08/15] xen: add a 8259 Interrupt Controller

2010-10-21 Thread anthony . perard
From: Anthony PERARD Introduce a 8259 Interrupt Controller for target-xen; every set_irq call makes a Xen hypercall. Signed-off-by: Anthony PERARD Signed-off-by: Stefano Stabellini --- hw/xen_common.h |2 ++ hw/xen_machine_fv.c |5 ++--- xen-all.c | 12 3

[Qemu-devel] [PATCH V6 15/15] acpi-piix4: Add Xen hypercall for sleep state.

2010-10-21 Thread anthony . perard
From: Anthony PERARD Signed-off-by: Anthony PERARD --- hw/acpi_piix4.c |4 hw/xen.h|2 ++ xen-all.c |7 +++ xen-stub.c |4 4 files changed, 17 insertions(+), 0 deletions(-) diff --git a/hw/acpi_piix4.c b/hw/acpi_piix4.c index f74f34c..c9a3694 10

[Qemu-devel] [PATCH V6 14/15] xen: Set running state in xenstore.

2010-10-21 Thread anthony . perard
From: Anthony PERARD This tells to the xen management tool that the machine can begin run. Signed-off-by: Anthony PERARD --- xen-all.c | 27 +++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/xen-all.c b/xen-all.c index a0d1b9b..fc862cb 100644 --- a/x

[Qemu-devel] [PATCH V6 07/15] piix_pci: Introduces Xen specific call for irq.

2010-10-21 Thread anthony . perard
From: Anthony PERARD This patch introduces Xen specific call in piix_pci. The specific part for Xen is in write_config, set_irq and get_pirq. Signed-off-by: Anthony PERARD Signed-off-by: Stefano Stabellini --- hw/piix_pci.c | 28 ++-- hw/xen.h |6 ++ xe

[Qemu-devel] [PATCH V6 11/15] Introduce qemu_ram_ptr_unlock.

2010-10-21 Thread anthony . perard
From: Anthony PERARD This function allows to unlock a ram_ptr give by qemu_get_ram_ptr. After a call to qemu_ram_ptr_unlock, the pointer may be unmap from QEMU when used with Xen. Signed-off-by: Anthony PERARD --- cpu-common.h |1 + exec.c | 10 ++ xen-mapcache.c | 34

[Qemu-devel] [PATCH V6 06/15] xen: Add the Xen platform pci device

2010-10-21 Thread anthony . perard
From: Steven Smith Introduce a new emulated PCI device, specific to fully virtualized Xen guests. The device is necessary for PV on HVM drivers to work. Signed-off-by: Steven Smith Signed-off-by: Anthony PERARD Signed-off-by: Stefano Stabellini --- Makefile.target |1 + hw/hw.h

[Qemu-devel] [PATCH V6 01/15] xen: Replace some tab-indents with spaces (clean-up).

2010-10-21 Thread anthony . perard
From: Anthony PERARD Signed-off-by: Anthony PERARD --- hw/xen_backend.c | 308 hw/xen_disk.c| 412 +++--- hw/xen_nic.c | 222 +++--- 3 files changed, 471 insertions(+), 47

[Qemu-devel] [PATCH V6 02/15] xen: Support new libxc calls from xen unstable.

2010-10-21 Thread anthony . perard
From: Anthony PERARD Update the libxenctrl calls in Qemu to use the new interface, otherwise Qemu wouldn't be able to build against new versions of the library. We also check libxenctrl version in configure, from Xen 3.3.0 to Xen unstable. Signed-off-by: Anthony PERARD Signed-off-by: Stefano S

[Qemu-devel] [PATCH V6 00/15] xen device model support

2010-10-21 Thread anthony . perard
From: Anthony PERARD Hi all, This is the fifth version of the patch series that adds Xen device model support in QEMU. Some change are made on the last version: - We fixed the build error in Xen MapCache by use -1 as default value of last_address_index (instead of ~0UL). - We added a

Re: [Qemu-devel] KVM call minutes for Oct 19

2010-10-21 Thread Chris Wright
* Anthony Liguori (anth...@codemonkey.ws) wrote: > So there's no doubt in my mind that if you need a way to inventory > physical and virtual systems, something like Matahari becomes a very > appealing option to do that. > > But that's not the problem space I'm trying to tackle. > > An example of

Re: [Qemu-devel] [PATCH]: VNC: set listener socket to non-blocking mode

2010-10-21 Thread Anthony Liguori
On 10/21/2010 11:18 AM, Gianni Tedesco wrote: This prevents qemu from hanging waiting for a client to connect. I have reproduced this when doing a loadvm but it may be a more general problem in that poll/accept may race if a client aborts the connection with a RST before the accept has completed.

Re: [Qemu-devel] qemu arm with non-linux image

2010-10-21 Thread Stefan Weil
Am 21.10.2010 03:34, schrieb Nathan Fain: Is it possible to use qemu with a arm raw image from an embedded device? The device does not use linux. Any links to documentation or general knowledge I can search with appreciated. thanks Maybe. It depends on the emulated arm platform (qemu support

Re: [Qemu-devel] Re: [PATCH,curses] Fix contro...@[\]^_} and ESC

2010-10-21 Thread andrzej zaborowski
On 19 October 2010 19:48, Samuel Thibault wrote: > Hello, > > This apparently has been neither applied, nor commented on.  Could > either be done? Thanks, pushed the patch and sorry for missing the email the first time. Cheers

Re: [Qemu-devel] KVM call minutes for Oct 19

2010-10-21 Thread Anthony Liguori
Hi Andrew, On 10/21/2010 10:43 AM, Andrew Beekhof wrote: In that case we've done a bad job of the wiki. Windows and other distributions are a key part of the Matahari vision. Matahari is two things - an architecture, and - an implementation of the most common API sets Each set of APIs (ie. hos

[Qemu-devel] VM with two interfaces

2010-10-21 Thread Nirmal Guhan
Hi, Am trying to create a VM using qemu-kvm with two interfaces(fedora12 is the host and vm) and running into an issue. Given below is the command : qemu-kvm -net nic,macaddr=$macaddress,model=pcnet -net tap,script=/etc/qemu-ifup -net nic,model=pcnet -net tap,script=/etc/qemu-ifup -m 1024 -hda ./

[Qemu-devel] [PATCH]: VNC: set listener socket to non-blocking mode

2010-10-21 Thread Gianni Tedesco
This prevents qemu from hanging waiting for a client to connect. I have reproduced this when doing a loadvm but it may be a more general problem in that poll/accept may race if a client aborts the connection with a RST before the accept has completed. In either case the fix seems harmless. Signed-

[Qemu-devel] Re: [PATCH] x86, mce: broadcast mce depending on the cpu version

2010-10-21 Thread Marcelo Tosatti
On Thu, Oct 21, 2010 at 05:47:06PM +0900, Hidetoshi Seto wrote: > There is no reason why SRAO event received by the main thread > is the only one that being broadcasted. > > According to the x86 ASDM vol.3A 15.10.4.1, > MCE signal is broadcast on processor version 06H_EH or later. > > This change

[Qemu-devel] Re: [PATCHv2] Add support for async page fault to qemu

2010-10-21 Thread Marcelo Tosatti
On Thu, Oct 21, 2010 at 05:08:45PM +0200, Gleb Natapov wrote: > Add save/restore of MSR for migration and cpuid bit. > > Signed-off-by: Gleb Natapov > --- > v1->v2 > - use vmstate subsection to migrate new msr. > > diff --git a/qemu-kvm-x86.c b/qemu-kvm-x86.c > index 59aacd0..145c863 100644 >

Re: [Qemu-devel] KVM call minutes for Oct 19

2010-10-21 Thread Andrew Beekhof
On 10/21/2010 03:32 PM, Anthony Liguori wrote: On 10/21/2010 08:18 AM, Daniel P. Berrange wrote: On Thu, Oct 21, 2010 at 08:09:44AM -0500, Anthony Liguori wrote: Hi Andrew, On 10/21/2010 05:22 AM, Andrew Beekhof wrote: Hello from the Matahari tech-lead... Is there any documentation on the cap

Re: [SeaBIOS] [Qemu-devel] [PATCH 1/2] pci: Automatically patch PCI device id in PCI ROM

2010-10-21 Thread Avi Kivity
On 10/21/2010 03:14 PM, Anthony Liguori wrote: On 10/21/2010 05:09 AM, Avi Kivity wrote: On 10/18/2010 08:39 PM, Anthony Liguori wrote: SeaBIOS rejects them when loaded from the rom bar and doesn't reject them when loaded via fw_cfg. What I meant was, rombar=0 in qdev. Sometimes my finger

[Qemu-devel] [PATCH 3/4] Switch migrate_set_speed() to take an 'o' argument rather than a float.

2010-10-21 Thread Jes . Sorensen
From: Jes Sorensen Clarify default value of MB in migration speed argument in monitor, if no suffix is specified. This differ from previous default of bytes, but is consistent with the rest of the places where we accept a size argument. Signed-off-by: Jes Sorensen --- hmp-commands.hx |5 ++

[Qemu-devel] [PATCH 2/4] Add support for 'o' octet (bytes) format as monitor parameter.

2010-10-21 Thread Jes . Sorensen
From: Jes Sorensen Octet format relies on strtosz which supports K/k, M/m, G/g, T/t suffixes and unit support for humans, like 1.3G Signed-off-by: Jes Sorensen --- monitor.c | 29 + 1 files changed, 29 insertions(+), 0 deletions(-) diff --git a/monitor.c b/monito

[Qemu-devel] [PATCH 1/4] Introduce strtosz() library function to convert a string to a byte count.

2010-10-21 Thread Jes . Sorensen
From: Jes Sorensen strtosz() returns -1 on error. It now supports human unit formats in eg. 1.0G, with better error handling. The following suffixes are supported: B/b = bytes K/k = KB M/m = MB G/g = GB T/t = TB This patch changes -numa and -m input to use strtosz(). Signed-off-by: Jes Sorense

[Qemu-devel] [PATCH 4/4] Remove obsolete 'f' double parameter type

2010-10-21 Thread Jes . Sorensen
From: Jes Sorensen 'f' double is no longer used, and we should be using floating point variables to store byte sizes. Remove it. Signed-off-by: Jes Sorensen --- monitor.c | 18 +- 1 files changed, 1 insertions(+), 17 deletions(-) diff --git a/monitor.c b/monitor.c index 6ef9

[Qemu-devel] [PATCH v9 0/4] Introduce strtosz and make use of it

2010-10-21 Thread Jes . Sorensen
From: Jes Sorensen This patch introduces cutils.c: strtosz() and gets rid of the multiple custom hacks for parsing byte sizes. In addition it adds supports for specifying human style sizes such as 1.5G. Last it eliminates the horrible abuse of a float to store the byte size for migrate_set_speed

[Qemu-devel] [PATCHv2] Add support for async page fault to qemu

2010-10-21 Thread Gleb Natapov
Add save/restore of MSR for migration and cpuid bit. Signed-off-by: Gleb Natapov --- v1->v2 - use vmstate subsection to migrate new msr. diff --git a/qemu-kvm-x86.c b/qemu-kvm-x86.c index 59aacd0..145c863 100644 --- a/qemu-kvm-x86.c +++ b/qemu-kvm-x86.c @@ -678,6 +678,9 @@ static int get_msr_

Re: [Qemu-devel] bdrv_flush for qemu block drivers nbd, rbd and sheepdog

2010-10-21 Thread Anthony Liguori
On 10/21/2010 09:07 AM, Kevin Wolf wrote: Hi all, I'm currently looking into adding a return value to qemu's bdrv_flush function and I noticed that your block drivers (nbd, rbd and sheepdog) don't implement bdrv_flush at all. bdrv_flush is going to return -ENOTSUP for any block driver not implem

[Qemu-devel] bdrv_flush for qemu block drivers nbd, rbd and sheepdog

2010-10-21 Thread Kevin Wolf
Hi all, I'm currently looking into adding a return value to qemu's bdrv_flush function and I noticed that your block drivers (nbd, rbd and sheepdog) don't implement bdrv_flush at all. bdrv_flush is going to return -ENOTSUP for any block driver not implementing this, effectively breaking these thre

Re: [Qemu-devel] [PATCH 0/3] add usb_detach and usb_attach (v3)

2010-10-21 Thread Alon Levy
On Thu, Oct 21, 2010 at 08:13:19AM -0500, Anthony Liguori wrote: > On 10/21/2010 08:03 AM, Gerd Hoffmann wrote: > >On 10/21/10 08:36, Alon Levy wrote: > >>v2->v3 changes: > >> * add configure parameter > >> * fix docs > >> > >>v2 message: > >>This patchset uses id like device_del for attaching/de

Re: [Qemu-devel] KVM call minutes for Oct 19

2010-10-21 Thread Anthony Liguori
On 10/21/2010 08:18 AM, Daniel P. Berrange wrote: On Thu, Oct 21, 2010 at 08:09:44AM -0500, Anthony Liguori wrote: Hi Andrew, On 10/21/2010 05:22 AM, Andrew Beekhof wrote: Hello from the Matahari tech-lead... Is there any documentation on the capabilities provided guest agent Anthony

Re: [Qemu-devel] [PATCH 2/2] v2 Fix Block Hotplug race with drive_unplug()

2010-10-21 Thread Daniel P. Berrange
On Tue, Oct 19, 2010 at 09:32:29AM -0500, Ryan Harper wrote: > Block hot unplug is racy since the guest is required to acknowlege the ACPI > unplug event; this may not happen synchronously with the device removal > command > > This series aims to close a gap where by mgmt applications that assume

Re: [Qemu-devel] [PATCH 0/3] add usb_detach and usb_attach (v3)

2010-10-21 Thread Alon Levy
On Thu, Oct 21, 2010 at 08:13:19AM -0500, Anthony Liguori wrote: > On 10/21/2010 08:03 AM, Gerd Hoffmann wrote: > >On 10/21/10 08:36, Alon Levy wrote: > >>v2->v3 changes: > >> * add configure parameter > >> * fix docs > >> > >>v2 message: > >>This patchset uses id like device_del for attaching/de

Re: [Qemu-devel] [PATCH 3/3] Add helper functions to enable virtio-9p make use of the threadlets

2010-10-21 Thread Arun R Bharadwaj
* Arun R Bharadwaj [2010-10-21 17:40:55]: > From: Gautham R Shenoy > > infrastructure for offloading blocking tasks such as making posix calls on > to the helper threads and handle the post_posix_operations() from the > context of the iothread. This frees the vcpu thread to process any other gu

Re: [Qemu-devel] KVM call minutes for Oct 19

2010-10-21 Thread Daniel P. Berrange
On Thu, Oct 21, 2010 at 08:09:44AM -0500, Anthony Liguori wrote: > Hi Andrew, > > On 10/21/2010 05:22 AM, Andrew Beekhof wrote: > > > >Hello from the Matahari tech-lead... > >Is there any documentation on the capabilities provided guest agent > >Anthony is creating? Perhaps we can combine effort

Re: [SeaBIOS] [Qemu-devel] [PATCH 1/2] pci: Automatically patch PCI device id in PCI ROM

2010-10-21 Thread Anthony Liguori
On 10/21/2010 05:09 AM, Avi Kivity wrote: On 10/18/2010 08:39 PM, Anthony Liguori wrote: SeaBIOS rejects them when loaded from the rom bar and doesn't reject them when loaded via fw_cfg. What I meant was, rombar=0 in qdev. Sometimes my fingers don't work the same way my brain does :-) A

Re: [Qemu-devel] [PATCH 0/3] add usb_detach and usb_attach (v3)

2010-10-21 Thread Anthony Liguori
On 10/21/2010 08:03 AM, Gerd Hoffmann wrote: On 10/21/10 08:36, Alon Levy wrote: v2->v3 changes: * add configure parameter * fix docs v2 message: This patchset uses id like device_del for attaching/detaching usb devices. The first two patches ready the way: 1. makes qdev_find_recursive no

Re: [Qemu-devel] KVM call minutes for Oct 19

2010-10-21 Thread Anthony Liguori
Hi Andrew, On 10/21/2010 05:22 AM, Andrew Beekhof wrote: Hello from the Matahari tech-lead... Is there any documentation on the capabilities provided guest agent Anthony is creating? Perhaps we can combine efforts. Mike should be posting today or tomorrow. Also happy to provide more inform

Re: [Qemu-devel] KVM call minutes for Oct 19

2010-10-21 Thread Dor Laor
On 10/21/2010 03:02 PM, Anthony Liguori wrote: On 10/21/2010 02:45 AM, Paolo Bonzini wrote: On 10/21/2010 03:14 AM, Alexander Graf wrote: I agree that some agent code for basic stuff like live snapshot sync with the filesystem is small enough and worth to host within qemu. Maybe we do need more

Re: [Qemu-devel] [PATCH 0/3] add usb_detach and usb_attach (v3)

2010-10-21 Thread Gerd Hoffmann
On 10/21/10 08:36, Alon Levy wrote: v2->v3 changes: * add configure parameter * fix docs v2 message: This patchset uses id like device_del for attaching/detaching usb devices. The first two patches ready the way: 1. makes qdev_find_recursive non static and in qdev.h 2. adds a usb_device_

Re: [Qemu-devel] KVM call minutes for Oct 19

2010-10-21 Thread Anthony Liguori
On 10/21/2010 02:45 AM, Paolo Bonzini wrote: On 10/21/2010 03:14 AM, Alexander Graf wrote: I agree that some agent code for basic stuff like live snapshot sync with the filesystem is small enough and worth to host within qemu. Maybe we do need more than one project? No, please. That's exactly

[Qemu-devel] Re: [Tracing][v4 PATCH 2/2] Add documentation for QMP interfaces

2010-10-21 Thread Luiz Capitulino
On Thu, 21 Oct 2010 12:21:46 +0530 Prerna Saxena wrote: > Hi Luiz, > Thanks for your feedback. > > On 10/21/2010 12:47 AM, Luiz Capitulino wrote: > > On Tue, 19 Oct 2010 11:57:50 +0530 > > Prerna Saxena wrote: > > > >> [PATCH 2/2] Add documentation for QMP commands: > >> - query-trace > >>

[Qemu-devel] [PATCH 3/3] Add helper functions to enable virtio-9p make use of the threadlets

2010-10-21 Thread Arun R Bharadwaj
From: Gautham R Shenoy infrastructure for offloading blocking tasks such as making posix calls on to the helper threads and handle the post_posix_operations() from the context of the iothread. This frees the vcpu thread to process any other guest operations while the processing of v9fs_io is in p

[Qemu-devel] [PATCH 1/3] Introduce threadlets

2010-10-21 Thread Arun R Bharadwaj
From: Aneesh Kumar K.V This patch creates a generic asynchronous-task-offloading infrastructure named threadlets. The core idea has been borrowed from the threading framework that is being used by paio. The reason for creating this generic infrastructure is so that other subsystems, such as virt

[Qemu-devel] [PATCH 2/3] Make paio subsystem use threadlets

2010-10-21 Thread Arun R Bharadwaj
From: Gautham R Shenoy This patch makes the paio subsystem use the threadlet framework thereby decoupling asynchronous threading framework portion out of posix-aio-compat.c The patch has been tested with fstress. Signed-off-by: Gautham R Shenoy Signed-off-by: Sripathi Kodi Signed-off-by: Arun

[Qemu-devel] [PATCH 0/3]: v7: Threadlets: A generic task offloading framework.

2010-10-21 Thread Arun R Bharadwaj
Hi, This is the v7 of the patch-series to have a generic asynchronous task offloading framework (called threadlets) within qemu. Request to consider pulling this series as discussed during the Qemu-devel call. V6 can be found here: http://www.mail-archive.com/qemu-devel@nongnu.org/msg44344.html

[Qemu-devel] [RESEND PATCH] monitor: properly handle illegal fd/vhostfd from command line

2010-10-21 Thread Jason Wang
When hanlding fd/vhostfd form command line through net_handle_fd_param(), we need to check mon and return value of strtol() other than we could get segmentation fault or invalid fd when user type an illegal fd/vhostfd. This patch is based on the suggestions from Luiz Capitulino . Signed-off-by: J

Re: [Qemu-devel] [PATCH 3/3] monitor: add usb_attach and usb_detach

2010-10-21 Thread Alon Levy
On Thu, Oct 21, 2010 at 12:00:12PM +0200, Gerd Hoffmann wrote: > On 10/20/10 18:24, Luiz Capitulino wrote: > >On Tue, 19 Oct 2010 15:35:01 +0200 > >Gerd Hoffmann wrote: > > > >>Hi, > >> > >>>+.help = "attach USB device 'bus.addr'", > >> > >>>+...@item usb_attach @var{devname} > >

Re: [Qemu-devel] KVM call minutes for Oct 19

2010-10-21 Thread Dor Laor
On 10/21/2010 12:22 PM, Andrew Beekhof wrote: On 10/20/2010 02:16 PM, Dor Laor wrote: On 10/20/2010 10:21 AM, Alexander Graf wrote: On 19.10.2010, at 17:14, Chris Wright wrote: Guest Agent - have one coming RSN (poke Anthony for details) Would there be a chance to have a single agent for ev

Re: [Qemu-devel] KVM call minutes for Oct 19

2010-10-21 Thread Andrew Beekhof
On 10/20/2010 02:16 PM, Dor Laor wrote: On 10/20/2010 10:21 AM, Alexander Graf wrote: On 19.10.2010, at 17:14, Chris Wright wrote: Guest Agent - have one coming RSN (poke Anthony for details) Would there be a chance to have a single agent for everyone, so that we actually form a Qemu agent i

Re: [SeaBIOS] [Qemu-devel] [PATCH 1/2] pci: Automatically patch PCI device id in PCI ROM

2010-10-21 Thread Avi Kivity
On 10/18/2010 08:39 PM, Anthony Liguori wrote: SeaBIOS rejects them when loaded from the rom bar and doesn't reject them when loaded via fw_cfg. What I meant was, rombar=0 in qdev. Sometimes my fingers don't work the same way my brain does :-) Are you using qmp or the human monitor proto

[Qemu-devel] Re: [SeaBIOS] [PATCH] mark irq9 active high in DSDT

2010-10-21 Thread Avi Kivity
On 10/21/2010 04:00 AM, Kevin O'Connor wrote: On Wed, Oct 20, 2010 at 11:34:41AM +0200, Gleb Natapov wrote: > In PIIX4 SCI (irq9) is active high. Seabios marks it so in interrupt > override table, but some OSes (FreeBSD) require the same information to > be present in DSDT too. Make it so. >

[Qemu-devel] [RFC 0/5] QMP interfaces for tracing

2010-10-21 Thread Prerna Saxena
As suggested by Luiz, I'm posting this set of documentation patches that elucidate for proposed QMP interfaces for tracing. QMP commands : * trace-event : to toggle state of a trace-event. * set-trace-file : to set a new output file for tracing; enable/disable writing traces to

Re: [Qemu-devel] [PATCH 3/3] monitor: add usb_attach and usb_detach

2010-10-21 Thread Gerd Hoffmann
On 10/20/10 18:24, Luiz Capitulino wrote: On Tue, 19 Oct 2010 15:35:01 +0200 Gerd Hoffmann wrote: Hi, +.help = "attach USB device 'bus.addr'", +...@item usb_attach @var{devname} /me sees a mismatch here. There is still the use case question. Also note that this might

[Qemu-devel] [RFC][PATCH 4/5] trace-event

2010-10-21 Thread Prerna Saxena
trace-event : QMP interface to change state of a trace-event. (Analogous to hmp command : trace-event ) Signed-off-by: Prerna Saxena --- qmp-commands.hx | 32 1 files changed, 32 insertions(+), 0 deletions(-) diff --git a/qmp-commands.hx b/qmp-commands.hx inde

[Qemu-devel] [RFC] [PATCH 3/5] query-trace-file

2010-10-21 Thread Prerna Saxena
'query-trace-file' : QMP interface to find currently set trace file and its status. (Analogous to hmp command : trace-file) Signed-off-by: Prerna Saxena --- qmp-commands.hx | 24 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/qmp-commands.hx b/qmp-com

[Qemu-devel] [RFC][PATCH 5/5] set-trace-file

2010-10-21 Thread Prerna Saxena
set-trace-file : QMP command to: - Enable/disable logging traces to file - Set a new output file - Flush a semi-filled trace-buffer to output file. Signed-off-by: Prerna Saxena --- qmp-commands.hx | 41 + 1 files changed, 41 insertions(+)

[Qemu-devel] Re: [PATCH v6 07/12] pcie/hotplug: introduce pushing attention button command

2010-10-21 Thread Isaku Yamahata
On Thu, Oct 21, 2010 at 10:02:37AM +0200, Michael S. Tsirkin wrote: > On Thu, Oct 21, 2010 at 12:46:33PM +0900, Isaku Yamahata wrote: > > On Wed, Oct 20, 2010 at 12:00:11PM +0200, Michael S. Tsirkin wrote: > > > On Wed, Oct 20, 2010 at 05:18:56PM +0900, Isaku Yamahata wrote: > > > > glue pcie_push_

[Qemu-devel] [RFC][PATCH 2/5] query-trace-events

2010-10-21 Thread Prerna Saxena
'query-trace-events' : QMP interface to display currently available trace-events with their state. ( Analogous to hmp command : info trace-events ) Signed-off-by: Prerna Saxena --- qmp-commands.hx | 32 1 files changed, 32 insertions(+), 0 deletions(-) diff -

[Qemu-devel] [RFC][PATCH 1/5] query-trace command

2010-10-21 Thread Prerna Saxena
QMP interface "query-trace" to list current contents of trace-buffer. ( Analogous to hmp command : info trace ) Signed-off-by: Prerna Saxena --- qmp-commands.hx | 51 +++ 1 files changed, 51 insertions(+), 0 deletions(-) diff --git a/qmp-comman

Re: [Qemu-devel] [PATCH 2/3] Make paio subsystem use threadlets

2010-10-21 Thread Stefan Hajnoczi
On Thu, Oct 21, 2010 at 9:40 AM, Arun R Bharadwaj wrote: > * Stefan Hajnoczi [2010-10-20 10:30:38]: > >> On Tue, Oct 19, 2010 at 6:43 PM, Arun R Bharadwaj >> wrote: >> > From: Gautham R Shenoy >> > >> > This patch makes the paio subsystem use the threadlet framework thereby >> > decoupling asyn

Re: Tracing block devices (was: Re: [Qemu-devel] Static tracepoint control via trace-event)

2010-10-21 Thread Daniel P. Berrange
On Tue, Oct 19, 2010 at 03:29:51PM +0100, Richard W.M. Jones wrote: > On Tue, Oct 19, 2010 at 03:59:36PM +0200, Jan Kiszka wrote: > > Once we have "-trace events=...", defining the list of active > > tracepoints before starting qemu will be trivial (e.g. via a config > > file). Of course, this requ

Re: Tracing block devices (was: Re: [Qemu-devel] Static tracepoint control via trace-event)

2010-10-21 Thread Stefan Hajnoczi
On Thu, Oct 21, 2010 at 6:20 AM, Christoph Hellwig wrote: > On Tue, Oct 19, 2010 at 03:29:51PM +0100, Richard W.M. Jones wrote: >> On Tue, Oct 19, 2010 at 03:59:36PM +0200, Jan Kiszka wrote: >> > Once we have "-trace events=...", defining the list of active >> > tracepoints before starting qemu wi

[Qemu-devel] [PATCH] x86, mce: broadcast mce depending on the cpu version

2010-10-21 Thread Hidetoshi Seto
There is no reason why SRAO event received by the main thread is the only one that being broadcasted. According to the x86 ASDM vol.3A 15.10.4.1, MCE signal is broadcast on processor version 06H_EH or later. This change is required to handle SRAR in smp guests. Signed-off-by: Hidetoshi Seto ---

[Qemu-devel] [PATCH] x86, mce: ignore SRAO only when MCG_SER_P is available

2010-10-21 Thread Hidetoshi Seto
And restruct this block to call kvm_mce_in_exception() only when it is required. Signed-off-by: Hidetoshi Seto --- target-i386/kvm.c | 16 ++-- 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 786eeeb..a0d0603 100644 --- a/

Re: [Qemu-devel] [PATCH 2/3] Make paio subsystem use threadlets

2010-10-21 Thread Arun R Bharadwaj
* Stefan Hajnoczi [2010-10-20 10:30:38]: > On Tue, Oct 19, 2010 at 6:43 PM, Arun R Bharadwaj > wrote: > > From: Gautham R Shenoy > > > > This patch makes the paio subsystem use the threadlet framework thereby > > decoupling asynchronous threading framework portion out of > > posix-aio-compat.c

[Qemu-devel] [Bug 654913] Re: Windows XP uses 200% CPU when given 2 VCPUs

2010-10-21 Thread Michael Tokarev
I see no problems in my tests wrt SMP performance (tried two cores only so far). MPS variant in winXP works noticeable slower in my case, apparently due to CPU wastage. ACPI variant runs almost at native speed (when run in winXP booted on bare metal) - I tried some simple multi- treaded java benc

[Qemu-devel] [PATCH 5/6] fix test_path

2010-10-21 Thread Paolo Bonzini
path.c grew quite a few new dependencies (mostly via cutils.c), include them. Signed-off-by: Paolo Bonzini --- tests/Makefile|2 +- tests/test_path.c | 13 +++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/tests/Makefile b/tests/Makefile index e26b2d7..ef575

[Qemu-devel] [PATCH 6/6] rewrite i386 tests Makefile

2010-10-21 Thread Paolo Bonzini
1) compute path to i386 compiler from configure. If it is found, run the i386 tests. I use macros so that this approach could be applied for other arches as well. 2) provide an easily extensible way to add tests Most tests fail, but at least "make test" does something meaningful. Signed-off-by

[Qemu-devel] [PATCH 4/6] make runcom compile on recent distributions

2010-10-21 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- tests/runcom.c | 11 --- 1 files changed, 4 insertions(+), 7 deletions(-) diff --git a/tests/runcom.c b/tests/runcom.c index 6380566..d60342b 100644 --- a/tests/runcom.c +++ b/tests/runcom.c @@ -13,15 +13,12 @@ #include #include -//#define SIGTEST

[Qemu-devel] [PATCH] Fix build on !KVM_CAP_MCE

2010-10-21 Thread Hidetoshi Seto
This patch removes following warnings: target-i386/kvm.c: In function 'kvm_put_msrs': target-i386/kvm.c:782: error: unused variable 'i' target-i386/kvm.c: In function 'kvm_get_msrs': target-i386/kvm.c:1083: error: label at end of compound statement Signed-off-by: Hidetoshi Seto --- target-i386/

  1   2   >