Re: [Qemu-devel] [PATCH v5] net: add support of mac-programming over macvtap in QEMU side

2013-06-06 Thread Jason Wang
On 06/05/2013 06:42 PM, Amos Kong wrote: > Currently macvtap based macvlan device is working in promiscuous > mode, we want to implement mac-programming over macvtap through > Libvirt for better performance. > > Design: > QEMU notifies Libvirt when rx-filter config is changed in guest, > then Libvi

Re: [Qemu-devel] [PATCH V19 6/8] add debug event for add-cow

2013-06-06 Thread Stefan Hajnoczi
On Wed, Jun 05, 2013 at 03:46:43PM +0200, Kevin Wolf wrote: > Am 30.05.2013 um 12:00 hat Dongxu Wang geschrieben: > > From: Dong Xu Wang > > > > Signed-off-by: Dong Xu Wang > > Signed-off-by: Dongxu Wang > > One of these should surely be enough? > > > --- > > block/blkdebug.c | 3 +++ >

Re: [Qemu-devel] [PATCH v5 03/11] block: add basic backup support to block driver

2013-06-06 Thread Stefan Hajnoczi
On Thu, Jun 06, 2013 at 11:56:18AM +0800, Fam Zheng wrote: > On Thu, 05/30 14:34, Stefan Hajnoczi wrote: > > + > > +static int coroutine_fn backup_before_write_notify( > > +NotifierWithReturn *notifier, > > +void *opaque) > > +{ > > +BdrvTrackedRequest *req = opaque; > > + > > +

Re: [Qemu-devel] [PATCH RFC v2 0/7] coordinate cpu hotplug/unplug bewteen QEMU and kernel by EC

2013-06-06 Thread Michael S. Tsirkin
On Thu, Jun 06, 2013 at 11:16:53AM +0800, liguang wrote: > v2: > 1.remove PIIX4_PROC_BASE operations for cpu hotplug > 2.fix wrong description fo cpu-del > > patch 1 adds ACPI Embedded Controller (EC), > refer-to: > ACPI SPEC v5 chapter 12 > "ACPI Embedded Controller Interface Specification" > >

Re: [Qemu-devel] [PATCH] pseries: Support for in-kernel XICS interrupt controller

2013-06-06 Thread David Gibson
On Wed, Jun 05, 2013 at 05:39:58PM +1000, Alexey Kardashevskiy wrote: > From: David Gibson > > Recent (host) kernels support emulating the PAPR defined "XICS" interrupt > controller system within KVM. This patch allows qemu to initialize and > configure the in-kernel XICS, and keep its state in

Re: [Qemu-devel] [PATCH 6/8] pci: Simpler implementation of primary PCI bus

2013-06-06 Thread David Gibson
On Thu, May 30, 2013 at 08:02:27AM +0300, Michael S. Tsirkin wrote: > On Thu, May 30, 2013 at 01:34:41PM +1000, David Gibson wrote: > > On Wed, May 29, 2013 at 03:22:29PM +0300, Michael S. Tsirkin wrote: > > > On Wed, May 29, 2013 at 09:04:00PM +1000, David Gibson wrote: > > > > On Wed, May 29, 201

Re: [Qemu-devel] [PATCH 6/8] pci: Simpler implementation of primary PCI bus

2013-06-06 Thread Michael S. Tsirkin
On Thu, Jun 06, 2013 at 05:39:11PM +1000, David Gibson wrote: > On Thu, May 30, 2013 at 08:02:27AM +0300, Michael S. Tsirkin wrote: > > On Thu, May 30, 2013 at 01:34:41PM +1000, David Gibson wrote: > > > On Wed, May 29, 2013 at 03:22:29PM +0300, Michael S. Tsirkin wrote: > > > > On Wed, May 29, 201

Re: [Qemu-devel] [PATCH] pseries: Support for in-kernel XICS interrupt controller

2013-06-06 Thread Alexey Kardashevskiy
On 06/06/2013 05:41 PM, David Gibson wrote: > On Wed, Jun 05, 2013 at 05:39:58PM +1000, Alexey Kardashevskiy wrote: >> From: David Gibson >> >> Recent (host) kernels support emulating the PAPR defined "XICS" interrupt >> controller system within KVM. This patch allows qemu to initialize and >> co

Re: [Qemu-devel] [PATCH] build: remove compile warning

2013-06-06 Thread Stefan Hajnoczi
On Thu, Jun 06, 2013 at 11:55:36AM +0800, Wenchao Xia wrote: > This patch simply remove "variable may be used uninitialized" warning. > > Signed-off-by: Wenchao Xia > --- > libcacard/vscclient.c |2 +- > util/iov.c|2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >

[Qemu-devel] AArch64 TCG target implementation, git repo

2013-06-06 Thread Claudio Fontana
Hello all, On 30.05.2013 13:07, Peter Maydell wrote: > On 29 May 2013 10:04, Claudio Fontana wrote: >> >> This series implements preliminary support for the ARM aarch64 TCG target. > > Reviewed-by: Peter Maydell > > Cc'd some people who might like to commit the patchset. > > thanks > -- PMM

Re: [Qemu-devel] [PATCH RFC v2 0/7] coordinate cpu hotplug/unplug bewteen QEMU and kernel by EC

2013-06-06 Thread li guang
在 2013-06-06四的 11:13 +0300,Michael S. Tsirkin写道: > On Thu, Jun 06, 2013 at 11:16:53AM +0800, liguang wrote: > > v2: > > 1.remove PIIX4_PROC_BASE operations for cpu hotplug > > 2.fix wrong description fo cpu-del > > > > patch 1 adds ACPI Embedded Controller (EC), > > refer-to: > > ACPI SPEC v5 cha

Re: [Qemu-devel] [PATCH 10/21] memory: make section size a 128-bit integer

2013-06-06 Thread Alexey Kardashevskiy
On 05/31/2013 07:16 AM, Paolo Bonzini wrote: > So far, the size of all regions passed to listeners could fit in 64 bits, > because artificial regions (containers and aliases) are eliminated by > the memory core, leaving only device regions which have reasonable sizes > > An IOMMU however cannot be

[Qemu-devel] [PATCH 0/2] virtio-ccw/css: bugfixes

2013-06-06 Thread Cornelia Huck
Two bugfixes for problems that lurked in the virtual css and virtio-ccw code since the beginning: Concurrent sense data was indicated by the wrong bit, and un-setting indicators never worked due to a thinko. Cornelia Huck (2): s390x/css: Fix concurrent sense. virtio-ccw: Fix unsetting of indic

[Qemu-devel] [PATCH 1/2] s390x/css: Fix concurrent sense.

2013-06-06 Thread Cornelia Huck
Fix an off-by-one error when indicating availablity of concurrent sense data. Cc: qemu-sta...@nongnu.org Signed-off-by: Cornelia Huck --- hw/s390x/css.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/s390x/css.c b/hw/s390x/css.c index e526a1c..f82abfe 100644 --- a/hw/s

[Qemu-devel] [PATCH 2/2] virtio-ccw: Fix unsetting of indicators.

2013-06-06 Thread Cornelia Huck
Interpretation of the ccws to register (configuration) indicators contained a thinko: We want to disallow reading from 0, but setting the indicator pointer to 0 is fine. Let's fix the handling for CCW_CMD_SET{,_CONF}_IND. Cc: qemu-sta...@nongnu.org Signed-off-by: Cornelia Huck --- hw/s390x/virt

Re: [Qemu-devel] [PATCH V15 0/5] enhancement for qmp/hmp interfaces of block info

2013-06-06 Thread Wenchao Xia
于 2013-6-6 14:42, Fam Zheng 写道: On Thu, 06/06 12:27, Wenchao Xia wrote: This series lets qmp interface show delaied info, including internal snapshot Typo? s/delaied/detailed/ yep, it should be detailed, mistype. /backing chain on all block device at runtime, which helps management stac

[Qemu-devel] [PATCH 04/10] pci: Use helper to find device's root bus in pci_find_domain()

2013-06-06 Thread David Gibson
Currently pci_find_domain() performs two functions - it locates the PCI root bus above the given bus, then looks up that root bus's domain number. This patch adds a helper function to perform the first task, finding the root bus for a given PCI device. This is then used in pci_find_domain(). This

[Qemu-devel] [PATCH 08/10] pci: Simpler implementation of primary PCI bus

2013-06-06 Thread David Gibson
Currently pci_find_primary_bus() searches the list of root buses for one with domain 0. But since host buses are always registered with domain 0, this just amounts to finding the only PCI host bus. The only remaining users of pci_find_primary_bus() are in pci-hotplug-old.c, which implements the o

[Qemu-devel] [PATCH 02/10] pci: Move pci_read_devaddr to pci-hotplug-old.c

2013-06-06 Thread David Gibson
pci_read_devaddr() is only used by the legacy functions for the old PCI hotplug interface in pci-hotplug-old.c. So we move the function there, and make it static. Signed-off-by: David Gibson --- hw/pci/pci-hotplug-old.c | 14 ++ hw/pci/pci.c | 16 +--- includ

[Qemu-devel] [0/10] Clean up PCI code to allow for multiple root buses (v2)

2013-06-06 Thread David Gibson
The current PCI subsystem has kind of half-hearted support for multiple independent root buses - aka PCI domains - in the form of the PCIHostBus structure and its domain field. However, it doesn't quite work because pci_host_bus_register() is always called with a domain of 0. Worse, though, the w

[Qemu-devel] [PATCH 10/10] pci: Fold host_buses list into PCIHostState functionality

2013-06-06 Thread David Gibson
The host_buses list is an odd structure - a list of pointers to PCI root buses existing in parallel to the normal qdev tree structure. This patch removes it, instead putting the link pointers into the PCIHostState structure, which have a 1:1 relationship to PCIHostBus structures anyway. Signed-of

Re: [Qemu-devel] [PATCH RFC v2 0/7] coordinate cpu hotplug/unplug bewteen QEMU and kernel by EC

2013-06-06 Thread Igor Mammedov
On Thu, 6 Jun 2013 11:13:29 +0300 "Michael S. Tsirkin" wrote: > On Thu, Jun 06, 2013 at 11:16:53AM +0800, liguang wrote: > > v2: > > 1.remove PIIX4_PROC_BASE operations for cpu hotplug > > 2.fix wrong description fo cpu-del > > > > patch 1 adds ACPI Embedded Controller (EC), > > refer-to: > > A

[Qemu-devel] [PATCH 06/10] pci: Add root bus argument to pci_get_bus_devfn()

2013-06-06 Thread David Gibson
pci_get_bus_devfn() interprets a full PCI address string to give a PCIBus * and device/function number within that bus. Currently it assumes it is working on an address under the primary PCI root bus. This patch extends it to allow the caller to specify a root bus. This might seem a little odd s

[Qemu-devel] [PATCH 01/10] pci: Cleanup configuration for pci-hotplug.c

2013-06-06 Thread David Gibson
pci-hotplug.c and the CONFIG_PCI_HOTPLUG variable which controls its compilation are misnamed. They're not about PCI hotplug in general, but rather about the pci_add/pci_del interface which are now deprecated in favour of the more general device_add/device_del interface. This patch therefore rena

[Qemu-devel] [PATCH 07/10] pci: Add root bus parameter to pci_nic_init()

2013-06-06 Thread David Gibson
At present, pci_nic_init() and pci_nic_init_nofail() assume that they will only create a NIC under the primary PCI root. As we add support for multiple PCI roots, that may no longer be the case. This patch adds a root bus parameter to pci_nic_init() (and updates callers accordingly) to allow the

[Qemu-devel] [PATCH 09/10] pci: Remove domain from PCIHostBus

2013-06-06 Thread David Gibson
There are now no users of the domain field of PCIHostBus, so remove it from the structure, and as a parameter from the pci_host_bus_register() function which sets it. Signed-off-by: David Gibson --- hw/pci/pci.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/hw/pci/pc

[Qemu-devel] [PATCH 03/10] pci: Abolish pci_find_root_bus()

2013-06-06 Thread David Gibson
pci_find_root_bus() takes a domain parameter. Currently PCI root buses with domain other than 0 can't be created, so this is more or less a long winded way of retrieving the main PCI root bus. Numbered domains don't actually properly cover the (non x86) possibilities for multiple PCI root buses,

[Qemu-devel] [PATCH 05/10] pci: Replace pci_find_domain() with more general pci_root_bus_path()

2013-06-06 Thread David Gibson
pci_find_domain() is used in a number of places where we want an id for a whole PCI domain (i.e. the subtree under a PCI root bus). The trouble is that many platforms may support multiple independent host bridges with no hardware supplied notion of domain number. This patch, therefore, replaces c

Re: [Qemu-devel] [PATCH] script: git script to compile every commit in a range of commits

2013-06-06 Thread Laszlo Ersek
comments below On 05/31/13 18:39, Jeff Cody wrote: > +usage() { > +echo "" > +echo "$0 [OPTIONS]" > +echo "$desc" > +echo "" > +echo "OPTIONS:" > +echo " -r git range > +optional; default is '$range' > +" > +echo " -c configure

Re: [Qemu-devel] [PATCH v5 03/11] block: add basic backup support to block driver

2013-06-06 Thread Fam Zheng
On Thu, 06/06 10:05, Stefan Hajnoczi wrote: > On Thu, Jun 06, 2013 at 11:56:18AM +0800, Fam Zheng wrote: > > On Thu, 05/30 14:34, Stefan Hajnoczi wrote: > > > + > > > +static int coroutine_fn backup_before_write_notify( > > > +NotifierWithReturn *notifier, > > > +void *opaque) > > >

Re: [Qemu-devel] [PATCH v2 0/4] ide: Set BSY bit during FLUSH

2013-06-06 Thread Stefan Hajnoczi
On Wed, Jun 05, 2013 at 03:17:54PM +0200, Kevin Wolf wrote: > Still depends on the qemu-io series ("[PATCH v2 00/16] Make qemu-io commands > available in the monitor") > > v2: > - Dropped unnecessary hunk in the actual fix > - Avoid magic number 0x10 and change the preexisting case > > Andreas Fä

Re: [Qemu-devel] [PATCH RFC v2 0/7] coordinate cpu hotplug/unplug bewteen QEMU and kernel by EC

2013-06-06 Thread li guang
在 2013-06-06四的 10:48 +0200,Igor Mammedov写道: > On Thu, 6 Jun 2013 11:13:29 +0300 > "Michael S. Tsirkin" wrote: > > > On Thu, Jun 06, 2013 at 11:16:53AM +0800, liguang wrote: > > > v2: > > > 1.remove PIIX4_PROC_BASE operations for cpu hotplug > > > 2.fix wrong description fo cpu-del > > > > > > p

[Qemu-devel] [PATCH 0/2] fix migration of zero pages

2013-06-06 Thread Peter Lieven
There have been reports that migration is broken on pseries by Alexey Kardashevskiy. It turned out that migration will fail in general as soon as a page is zero on the source, but not on the destination. I thus reverted the skipping of zero pages in bulk transfer phase and added a patch that does

[Qemu-devel] [PATCH 1/2] Revert "migration: do not sent zero pages in bulk stage"

2013-06-06 Thread Peter Lieven
Not sending zero pages breaks migration if a page is zero at the source but not at the destination. This can e.g. happen if different BIOS versions are used at source and destination. It has also been reported that migration on pseries is completely broken with this patch. This reverts commit f1c7

[Qemu-devel] [PATCH 2/2] migration: do not overwrite zero pages

2013-06-06 Thread Peter Lieven
on incoming migration do not memset pages to zero if they already read as zero. this will allocate a new zero page and consume memory unnecessarily. even if we madvise a MADV_DONTNEED later this will only deallocate the memory asynchronously. Signed-off-by: Peter Lieven --- arch_init.c | 14 ++

Re: [Qemu-devel] [PATCH] build: remove compile warning

2013-06-06 Thread Peter Maydell
On 6 June 2013 09:22, Stefan Hajnoczi wrote: > On Thu, Jun 06, 2013 at 11:55:36AM +0800, Wenchao Xia wrote: >> This patch simply remove "variable may be used uninitialized" warning. >> --- a/libcacard/vscclient.c >> +++ b/libcacard/vscclient.c >> @@ -641,7 +641,7 @@ main( >> GIOChannel *chan

Re: [Qemu-devel] [PATCH v2 1/3] nvram: Add TPM NVRAM implementation

2013-06-06 Thread Stefan Hajnoczi
On Wed, Jun 05, 2013 at 04:47:59PM -0400, Corey Bryant wrote: > +/* > + * Coroutine that reads a blob from the drive asynchronously > + */ > +static void coroutine_fn tpm_nvram_co_read(void *opaque) > +{ > +TPMNvramRWRequest *rwr = opaque; > + > +*rwr->blob_r = g_malloc(rwr->size); > + > +

Re: [Qemu-devel] [PATCH 2/2] Add monitor command mem-nodes

2013-06-06 Thread Wanlong Gao
On 06/05/2013 11:54 PM, Eduardo Habkost wrote: > On Wed, Jun 05, 2013 at 07:57:42AM -0500, Anthony Liguori wrote: >> Wanlong Gao writes: >> >>> Add monitor command mem-nodes to show the huge mapped >>> memory nodes locations. >>> >>> (qemu) info mem-nodes >>> /proc/14132/fd/13: 2ac0-00

[Qemu-devel] difference between receive_raw() and receive() NetClientInfo methods ?

2013-06-06 Thread Luigi Rizzo
Can someone clarify what is the difference between the two methods r eceive_raw() and receive() in NetClientInfo ? tap seems to be the only backend actually implementing receive_raw(), but apart from prepending a vnet_hdr i cannot tell what is this for, and whether receive_raw() is a custom addon

Re: [Qemu-devel] [PATCH v2 0/4] ide: Set BSY bit during FLUSH

2013-06-06 Thread Stefan Hajnoczi
On Wed, Jun 05, 2013 at 03:17:54PM +0200, Kevin Wolf wrote: > Still depends on the qemu-io series ("[PATCH v2 00/16] Make qemu-io commands > available in the monitor") > > v2: > - Dropped unnecessary hunk in the actual fix > - Avoid magic number 0x10 and change the preexisting case > > Andreas Fä

Re: [Qemu-devel] [PATCH v2 00/16] Make qemu-io commands available in the monitor

2013-06-06 Thread Stefan Hajnoczi
On Wed, Jun 05, 2013 at 02:19:25PM +0200, Kevin Wolf wrote: > This is a prerequisite for some kind of tests. It involves reorganising the > qemu-io code so that the command part can be separated and doesn't pollute the > global namespace any more, so we can link it with qemu. > > v2: > - Drop the

[Qemu-devel] [PATCH] virtio-net: put virtio net header inline with data

2013-06-06 Thread Michael S. Tsirkin
For small packets we can simplify xmit processing by linearizing buffers with the header: most packets seem to have enough head room we can use for this purpose. Since some older hypervisors (e.g. qemu before version 1.5) required that header is the first s/g element, we need a feature bit for thi

Re: [Qemu-devel] [PATCH 01/10] pci: Cleanup configuration for pci-hotplug.c

2013-06-06 Thread Michael S. Tsirkin
On Thu, Jun 06, 2013 at 06:48:45PM +1000, David Gibson wrote: > pci-hotplug.c and the CONFIG_PCI_HOTPLUG variable which controls its > compilation are misnamed. They're not about PCI hotplug in general, but > rather about the pci_add/pci_del interface which are now deprecated in > favour of the mo

Re: [Qemu-devel] [0/10] Clean up PCI code to allow for multiple root buses (v2)

2013-06-06 Thread Michael S. Tsirkin
On Thu, Jun 06, 2013 at 06:48:44PM +1000, David Gibson wrote: > The current PCI subsystem has kind of half-hearted support for > multiple independent root buses - aka PCI domains - in the form of the > PCIHostBus structure and its domain field. However, it doesn't quite > work because pci_host_bus

[Qemu-devel] [QEMU question] Disk hot plugging without working PCI hotplug - possible?

2013-06-06 Thread Alexey Kardashevskiy
Hi! For the pseries platform (server PPC64) we do not support PCI hotplug yet. However we still want to hot plug disks. As a workaround, we could add multiple SCSI host devices (virtio-scsi-pci, spapr-vscsi) without any disk attached and later (using qemu console) attach drives to them as we do w

Re: [Qemu-devel] [PATCH v7 00/13] curl: fix curl read

2013-06-06 Thread Richard W.M. Jones
On Thu, Jun 06, 2013 at 02:25:46PM +0800, Fam Zheng wrote: > v7: > 13: Added: > curl: change timeout to 30 seconds I tested this against: (1) HTTP to Apache server over slow but local wifi. (2) HTTP to a remote ISO (on another continent). Test (1) is fine. Test (2) gives plenty of I/O

Re: [Qemu-devel] [PATCH v2 1/2] audio/intel-hda: Fix Inheritance hierachy

2013-06-06 Thread Andreas Färber
Am 06.06.2013 07:34, schrieb peter.crosthwa...@xilinx.com: > From: Peter Crosthwaite > > The ich6 and ich9 variants either need to inherit one from the other, > or both from a common base class, otherwise its not possible to create > a QOM cast macro for use by the shared implementation functions

Re: [Qemu-devel] [PATCH v2 2/2] audio/intel-hda: QOM casting sweep

2013-06-06 Thread Andreas Färber
Am 06.06.2013 07:34, schrieb peter.crosthwa...@xilinx.com: > From: Peter Crosthwaite > > Define and use standard QOM cast macro. Remove usages of DO_UPCAST and > direct -> style casting. > > Signed-off-by: Peter Crosthwaite Reviewed-by: Andreas Färber Thanks, Andreas -- SUSE LINUX Products

Re: [Qemu-devel] [PATCH v2] e600 core for MPC86xx processors

2013-06-06 Thread Andreas Färber
Am 26.05.2013 19:41, schrieb Julio Guerra: > MPC86xx processors are based on the e600 core, which is not the case > in qemu where it is based on the 7400 processor. > > This patch creates the e600 core and instantiates the MPC86xx > processors based on it. Therefore, adding the high BATs and the S

[Qemu-devel] [PATCH 1/2] sheepdog: fix snapshot tag initialization

2013-06-06 Thread Liu Yuan
This is an old and obvious bug. We should pass snapshot_id to the tag. Or simple command like 'qemu-img snapshot -a tag sheepdog:image' will fail Cc: qemu-devel@nongnu.org Cc: MORITA Kazutaka Cc: Kevin Wolf Cc: Stefan Hajnoczi Signed-off-by: Liu Yuan --- block/sheepdog.c |2 +- 1 file cha

[Qemu-devel] [PATCH 0/2] fix 'qemu-img snapshot -a' operation for sheepdog

2013-06-06 Thread Liu Yuan
Nothing big, just two simple patches to enable this commind for sheepdog. Cc: qemu-devel@nongnu.org Cc: MORITA Kazutaka Cc: Kevin Wolf Cc: Stefan Hajnoczi Liu Yuan (2): sheepdog: fix snapshot tag initialization sheepdog: support 'qemu-img snapshot -a' block/sheepdog.c | 10 ++

[Qemu-devel] [PATCH 2/2] sheepdog: support 'qemu-img snapshot -a'

2013-06-06 Thread Liu Yuan
Just call sd_create_branch() to rollback the image is good enough Cc: qemu-devel@nongnu.org Cc: MORITA Kazutaka Cc: Kevin Wolf Cc: Stefan Hajnoczi Signed-off-by: Liu Yuan --- block/sheepdog.c |8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/block/sheepdog.c b/blo

Re: [Qemu-devel] [PATCH 1/2] Revert "migration: do not sent zero pages in bulk stage"

2013-06-06 Thread Eric Blake
- Original Message - > Not sending zero pages breaks migration if a page is zero > at the source but not at the destination. This can e.g. happen > if different BIOS versions are used at source and destination. > It has also been reported that migration on pseries is completely > broken wit

Re: [Qemu-devel] [QEMU question] Disk hot plugging without working PCI hotplug - possible?

2013-06-06 Thread Frederic Konrad
On 06/06/2013 12:13, Alexey Kardashevskiy wrote: Hi! For the pseries platform (server PPC64) we do not support PCI hotplug yet. However we still want to hot plug disks. As a workaround, we could add multiple SCSI host devices (virtio-scsi-pci, spapr-vscsi) without any disk attached and later (u

Re: [Qemu-devel] [PATCH 2/2] sheepdog: support 'qemu-img snapshot -a'

2013-06-06 Thread Kevin Wolf
Am 06.06.2013 um 13:57 hat Liu Yuan geschrieben: > Just call sd_create_branch() to rollback the image is good enough > > Cc: qemu-devel@nongnu.org > Cc: MORITA Kazutaka > Cc: Kevin Wolf > Cc: Stefan Hajnoczi > Signed-off-by: Liu Yuan > --- > block/sheepdog.c |8 +--- > 1 file changed,

Re: [Qemu-devel] kFreeBSD and USB support

2013-06-06 Thread Gerd Hoffmann
Hi, > This effectively disables host usb support for > kFreeBSD. And since I guess the kernel headers > are the same on regular FreeBSD, I think the same > issue happens on regular FreeBSD too, that is, > host usb does not work there as well. > > What is the status of this situation now? I ha

Re: [Qemu-devel] [PATCH 1/2] sheepdog: fix snapshot tag initialization

2013-06-06 Thread Kevin Wolf
Am 06.06.2013 um 13:57 hat Liu Yuan geschrieben: > This is an old and obvious bug. We should pass snapshot_id to the > tag. Or simple command like 'qemu-img snapshot -a tag sheepdog:image' will > fail > > Cc: qemu-devel@nongnu.org > Cc: MORITA Kazutaka > Cc: Kevin Wolf > Cc: Stefan Hajnoczi >

Re: [Qemu-devel] [PATCH 1/2] tcg-arm: Implement tcg_register_jit

2013-06-06 Thread Richard Henderson
On 06/05/2013 05:28 PM, li guang wrote: > 在 2013-06-05三的 05:49 -0700,Richard Henderson写道: >> On 06/04/2013 06:56 PM, li guang wrote: > +typedef struct { > +uint32_t len __attribute__((aligned((sizeof(void *); > +uint32_t cie_offset; > +tcg_target_long func_start __at

[Qemu-devel] [PATCH] configure: remove ${config_host_ld} variable

2013-06-06 Thread Ed Maste
It was only used in one place (and already expanded in one other). Signed-off-by: Ed Maste --- configure | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/configure b/configure index 1654413..e197b91 100755 --- a/configure +++ b/configure @@ -3556,7 +3556,6 @@ echo "-> Your S

Re: [Qemu-devel] [PATCH 2/2] sheepdog: support 'qemu-img snapshot -a'

2013-06-06 Thread Liu Yuan
On 06/06/2013 08:46 PM, Kevin Wolf wrote: > Am 06.06.2013 um 13:57 hat Liu Yuan geschrieben: >> Just call sd_create_branch() to rollback the image is good enough >> >> Cc: qemu-devel@nongnu.org >> Cc: MORITA Kazutaka >> Cc: Kevin Wolf >> Cc: Stefan Hajnoczi >> Signed-off-by: Liu Yuan >> --- >>

[Qemu-devel] [PATCH] configure: Disable host-bsd USB on FreeBSD

2013-06-06 Thread Ed Maste
It hasn't built since FreeBSD 8.x, and is disabled by a patch in the FreeBSD ports tree. FreeBSD is migrating to QEMU's libusb support. Signed-off-by: Ed Maste --- configure | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure b/configure index e197b91..a3f0b7a 10075

[Qemu-devel] [PATCH v3 2/3] nvram: Add tpm-tis drive support

2013-06-06 Thread Corey Bryant
Add a drive property to the tpm-tis device and initialize the TPM NVRAM if a drive is specified. Signed-off-by: Corey Bryant --- v2 -No changes v3 -No changes --- hw/tpm/tpm_int.h |2 ++ hw/tpm/tpm_tis.c |8 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/hw

Re: [Qemu-devel] [PATCH v2 1/3] nvram: Add TPM NVRAM implementation

2013-06-06 Thread Corey Bryant
On 06/06/2013 05:22 AM, Stefan Hajnoczi wrote: On Wed, Jun 05, 2013 at 04:47:59PM -0400, Corey Bryant wrote: +/* + * Coroutine that reads a blob from the drive asynchronously + */ +static void coroutine_fn tpm_nvram_co_read(void *opaque) +{ +TPMNvramRWRequest *rwr = opaque; + +*rwr->bl

[Qemu-devel] [PATCH v3 1/3] nvram: Add TPM NVRAM implementation

2013-06-06 Thread Corey Bryant
Provides TPM NVRAM implementation that enables storing of TPM NVRAM data in a persistent image file. The block driver is used to read/write the drive image. This will enable, for example, an encrypted QCOW2 image to be used to store sensitive keys. This patch provides APIs that a TPM backend can

[Qemu-devel] [PATCH v3 0/3] TPM NVRAM persistent storage

2013-06-06 Thread Corey Bryant
This patch series provides persistent storage support that a TPM can use to store NVRAM data. It uses QEMU's block driver to store data on a drive image. The libtpms TPM 1.2 backend will be the initial user of this functionality to store data that must persist through a reboot or migration. A sa

[Qemu-devel] [PATCH v5 1/5] usb/hcd-ehci-sysbus: Convert to QOM realize

2013-06-06 Thread Andreas Färber
The SysBus qdev initfn merely calls SysBusDeviceClass::init, so we can replace it with a realizefn already. This avoids getting into any initfn ambiguity with the upcoming Faraday EHCI implementation. Rename internal usb_ehci_initfn() to usb_ehci_realize() to allow to return Errors from common ini

[Qemu-devel] [PATCH v5 4/5] usb/hcd-ehci: Replace PORTSC macros with variables

2013-06-06 Thread Andreas Färber
From: Kuo-Jung Su Replace PORTSC macros with variables which could then be configured in ehci__class_init(...) Signed-off-by: Kuo-Jung Su Signed-off-by: Andreas Färber --- hw/usb/hcd-ehci-pci.c| 2 ++ hw/usb/hcd-ehci-sysbus.c | 6 ++ hw/usb/hcd-ehci.c| 22 ++-

[Qemu-devel] [PATCH v5 2/5] usb/hcd-ehci: Split off instance_init from realize

2013-06-06 Thread Andreas Färber
This makes the mem MemoryRegion available to derived instance_inits. Keep the bus in realize for now since naming breaks in instance_init. Signed-off-by: Andreas Färber --- hw/usb/hcd-ehci-pci.c| 19 ++- hw/usb/hcd-ehci-sysbus.c | 16 +--- hw/usb/hcd-ehci.c

Re: [Qemu-devel] [PATCH 2/2] sheepdog: support 'qemu-img snapshot -a'

2013-06-06 Thread Liu Yuan
On 06/06/2013 08:46 PM, Kevin Wolf wrote: > I'm not sure how snapshots work internally for Sheepdog, but it seems > odd to me that you need to do this only for disk-only snapshots, but not > when the snapshot has VM state. (Also, note that 'qemu-img snapshot -a' > works on images with a VM state, s

[Qemu-devel] [PATCH v5 3/5] usb/hcd-ehci: Add Tegra2 SysBus EHCI device

2013-06-06 Thread Andreas Färber
From: Andreas Färber This prepares an EHCI device for the Nvidia Tegra2 SoC family. Values based on patch by Vincent Palatin and verified against TRM v01p. Cc: Vincent Palatin Signed-off-by: Andreas Färber --- hw/usb/hcd-ehci-sysbus.c | 15 +++ hw/usb/hcd-ehci.h| 1 + 2 f

[Qemu-devel] [PATCH v5 0/5] usb: QOM realize support for SysBus EHCI and FUSBH200

2013-06-06 Thread Andreas Färber
Hello Gerd, v5 is a clean automatic rebase, as requested earlier. Regards, Andreas v4 -> v5: * Rebased. v3 -> v4: * Reverted moving usb_bus_new() into instance_init. v1 -> v3: * Renamed realizefn -> realize following a discussion with Anthony. * Rename usb_ehci_initfn -> usb_ehci_realize. * Sp

[Qemu-devel] [PATCH] vscclient: do not add a socket watch if there is not data to send

2013-06-06 Thread Marc-André Lureau
Fixes the following error: ** (process:780): CRITICAL **: do_socket_send: assertion `socket_to_send->len != 0' failed Signed-off-by: Marc-André Lureau --- libcacard/vscclient.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/libcacard/vscclient.c b/libcacard/vsccli

[Qemu-devel] [PATCH v5 5/5] usb/hcd-ehci: Add Faraday FUSBH200 support

2013-06-06 Thread Andreas Färber
From: Kuo-Jung Su Add Faraday FUSBH200 support, which is slightly different from EHCI spec. (Or maybe simply a bad/wrong implementation...) Signed-off-by: Kuo-Jung Su Signed-off-by: Andreas Färber --- hw/usb/hcd-ehci-sysbus.c | 75 hw/usb/hcd-e

Re: [Qemu-devel] [PATCH v5 0/5] usb: QOM realize support for SysBus EHCI and FUSBH200

2013-06-06 Thread Gerd Hoffmann
On 06/06/13 15:41, Andreas Färber wrote: > Hello Gerd, > > v5 is a clean automatic rebase, as requested earlier. Patch series added to usb patch queue. thanks, Gerd

Re: [Qemu-devel] [PATCH v2 2/2] audio/intel-hda: QOM casting sweep

2013-06-06 Thread Gerd Hoffmann
On 06/06/13 07:34, peter.crosthwa...@xilinx.com wrote: > From: Peter Crosthwaite > > Define and use standard QOM cast macro. Remove usages of DO_UPCAST and > direct -> style casting. > > Signed-off-by: Peter Crosthwaite Reviewed-by: Gerd Hoffmann cheers, Gerd

Re: [Qemu-devel] [PATCH v2 1/2] audio/intel-hda: Fix Inheritance hierachy

2013-06-06 Thread Gerd Hoffmann
On 06/06/13 07:34, peter.crosthwa...@xilinx.com wrote: > From: Peter Crosthwaite > > The ich6 and ich9 variants either need to inherit one from the other, > or both from a common base class, otherwise its not possible to create > a QOM cast macro for use by the shared implementation functions. >

Re: [Qemu-devel] [QEMU question] Disk hot plugging without working PCI hotplug - possible?

2013-06-06 Thread Alexey Kardashevskiy
On 06.06.2013 22:44, Frederic Konrad wrote: > On 06/06/2013 12:13, Alexey Kardashevskiy wrote: >> Hi! >> >> For the pseries platform (server PPC64) we do not support PCI hotplug >> yet. >> However we still want to hot plug disks. >> >> As a workaround, we could add multiple SCSI host devices >> (vi

Re: [Qemu-devel] [PATCH 1/2] Revert "migration: do not sent zero pages in bulk stage"

2013-06-06 Thread Peter Lieven
On 06.06.2013 14:16, Eric Blake wrote: - Original Message - Not sending zero pages breaks migration if a page is zero at the source but not at the destination. This can e.g. happen if different BIOS versions are used at source and destination. It has also been reported that migration on

Re: [Qemu-devel] [QEMU question] Disk hot plugging without working PCI hotplug - possible?

2013-06-06 Thread Frederic Konrad
On 06/06/2013 15:59, Alexey Kardashevskiy wrote: On 06.06.2013 22:44, Frederic Konrad wrote: On 06/06/2013 12:13, Alexey Kardashevskiy wrote: Hi! For the pseries platform (server PPC64) we do not support PCI hotplug yet. However we still want to hot plug disks. As a workaround, we could add m

[Qemu-devel] SEV and WFE instructions on ARM

2013-06-06 Thread Sebastian Huber
Hello, I want to use Qemu to test some SMP code. For this I set up Qemu to fire up two Cortex-A9 MPCore CPUs. I have the following ticket lock implementation: static inline void _ARM_Data_memory_barrier( void ) { __asm__ volatile ( "dmb" : : : "memory" ); } static inline void _ARM_Data_sy

[Qemu-devel] [PATCH 2/2] usb/host-libusb: Fix building with libusb git master code

2013-06-06 Thread Hans de Goede
The next libusb release will deprecate libusb_get_port_path, and since we compile with -Werror, this breaks the build. Signed-off-by: Hans de Goede --- hw/usb/host-libusb.c | 4 1 file changed, 4 insertions(+) diff --git a/hw/usb/host-libusb.c b/hw/usb/host-libusb.c index 3a582c5..0c12b0f

[Qemu-devel] [PATCH 1/2] device_tree: Fix build with latest libfdt

2013-06-06 Thread Hans de Goede
We override libfdt_env.h with our own copy, and the latest libfdt expects libfdt_env.h to define fdt##_t types. Signed-off-by: Hans de Goede --- include/libfdt_env.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/libfdt_env.h b/include/libfdt_env.h index 3667d4c..1cd8766 10064

[Qemu-devel] [PATCH 0/2] 2 compile / build fixes

2013-06-06 Thread Hans de Goede
Hi All, The joys of working with a cutting edge distro on my workstation ... Regards, Hans

Re: [Qemu-devel] [PATCH 2/2] usb/host-libusb: Fix building with libusb git master code

2013-06-06 Thread Gerd Hoffmann
On 06/06/13 16:39, Hans de Goede wrote: > The next libusb release will deprecate libusb_get_port_path, and since > we compile with -Werror, this breaks the build. Patch added to usb patch queue. thanks, Gerd

Re: [Qemu-devel] [PATCH 1/2] device_tree: Fix build with latest libfdt

2013-06-06 Thread Gerd Hoffmann
On 06/06/13 16:39, Hans de Goede wrote: > We override libfdt_env.h with our own copy, and the latest libfdt expects > libfdt_env.h to define fdt##_t types. Looks sane to me, but I'll leave that to the fdt experts ... cheers, Gerd

[Qemu-devel] [PATCH] spice: Add -spice disable-agent-file-transfer cmdline option (rhbz#961850)

2013-06-06 Thread Hans de Goede
Signed-off-by: Hans de Goede --- ui/spice-core.c | 12 1 file changed, 12 insertions(+) diff --git a/ui/spice-core.c b/ui/spice-core.c index bcc4199..2faac93 100644 --- a/ui/spice-core.c +++ b/ui/spice-core.c @@ -446,6 +446,9 @@ static QemuOptsList qemu_spice_opts = { .

[Qemu-devel] [PATCH v4 00/10] qemu-ga: fsfreeze on Windows using VSS

2013-06-06 Thread Tomoki Sekiyama
Hi, This patch series adds fsfreeze support for Windows qemu-guest-agent. changes from v3: -[01/10] Use c++ instead of g++ in configureing C++ compiler if neither $cross_prefix nor $CXX is specified. -[02/10] Add "alternative representations" as a reserved keywords in qapi.py. -[03/1

[Qemu-devel] [PATCH v4 02/10] Add c++ keywords to QAPI helper script

2013-06-06 Thread Tomoki Sekiyama
Add c++ keywords to avoid errors in compiling with c++ compiler. This also renames class member of PciDeviceInfo to q_class. Signed-off-by: Tomoki Sekiyama --- hmp.c |2 +- hw/pci/pci.c|2 +- scripts/qapi.py | 12 +++- 3 files changed, 13 insertions(+), 3 deletion

[Qemu-devel] [PATCH v4 09/10] qemu-ga: install Windows VSS provider on `qemu-ga -s install'

2013-06-06 Thread Tomoki Sekiyama
Register QGA VSS provider library into Windows when qemu-ga is installed as Windows service ('-s install' option). It is deregistered when the service is uninstalled ('-s uninstall' option). Signed-off-by: Tomoki Sekiyama --- qga/main.c |8 1 file changed, 8 insertions(+) diff --gi

[Qemu-devel] [PATCH v4 03/10] checkpatch.pl: check .cpp files

2013-06-06 Thread Tomoki Sekiyama
Enable checkpatch.pl to apply the same checks as C source files for C++ files with .cpp extensions. It also adds some exceptions for C++ sources to suppress errors for: - <> used in C++ template arguments (e.g. template ) - :: used to represent namespaces (e.g. SomeClass::method()) - : used

[Qemu-devel] [PATCH v4 06/10] qemu-ga: Add Windows VSS provider to quiesce applications on fsfreeze

2013-06-06 Thread Tomoki Sekiyama
Implements a basic stub of software VSS provider. Currently, this module only provides a relay function of events between qemu-guest-agent and Windows VSS when VSS finished filesystem freeze and when qemu snapshot is done. In the future, this module could be extended to support the other VSS funct

Re: [Qemu-devel] kFreeBSD and USB support

2013-06-06 Thread Hans de Goede
Hi, On 06/06/2013 02:47 PM, Gerd Hoffmann wrote: Hi, This effectively disables host usb support for kFreeBSD. And since I guess the kernel headers are the same on regular FreeBSD, I think the same issue happens on regular FreeBSD too, that is, host usb does not work there as well. What is

[Qemu-devel] [PATCH v4 10/10] QMP/qemu-ga-client: make timeout longer for guest-fsfreeze-freeze command

2013-06-06 Thread Tomoki Sekiyama
guest-fsfreeze-freeze command can take longer than 3 seconds when heavy disk I/O is running. To avoid unexpected timeout, this changes the timeout to 60 seconds (timeout of pre-commit phase of VSS). Signed-off-by: Tomoki Sekiyama --- QMP/qemu-ga-client |4 +++- 1 file changed, 3 insertions(+

[Qemu-devel] [PATCH v4 05/10] qemu-ga: Add configure options to specify path to Windows/VSS SDK

2013-06-06 Thread Tomoki Sekiyama
To enable VSS support in qemu-ga for Windows, header files included in VSS SDK are required. The VSS support is enabled by the configure option like below: ./configure --with-vss-sdk="/path/to/VSS SDK" If the path is omitted, it tries to search the headers from default paths and VSS support is e

[Qemu-devel] [PATCH v4 07/10] qemu-ga: Add Windows VSS requester to quiesce applications and filesystems

2013-06-06 Thread Tomoki Sekiyama
Add VSS requester functions for to qemu-ga. This provides facility to request VSS service in Windows guest to quiesce applications and filesystems. This function is only supported in Windows 2003 or later. In older guests, this function does nothing. In several versions of Windows which don't supp

[Qemu-devel] [PATCH 0/1] spice: Add -spice disable-agent-file-transfer cmdline option (v2)

2013-06-06 Thread Hans de Goede
Hi All, Now with documentation for the new option... Regards, Hans

[Qemu-devel] [PATCH v4 01/10] configure: Support configuring c++ compiler

2013-06-06 Thread Tomoki Sekiyama
Add configuration for c++ compiler (${cross_prefix}g++ as default) in configure and Makefiles. Currently, usage of c++ language is only for access to Windows VSS using COM+ services in qemu-guest-agent for Windows. Signed-off-by: Tomoki Sekiyama --- configure | 13 + rules.mak |

[Qemu-devel] [PATCH] fix Coverity scan SIGN_EXTENSION error

2013-06-06 Thread Gerd Hoffmann
Cc: Markus Armbruster Signed-off-by: Gerd Hoffmann --- hw/display/qxl-render.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/display/qxl-render.c b/hw/display/qxl-render.c index f511a62..269b1a7 100644 --- a/hw/display/qxl-render.c +++ b/hw/display/qxl-render.c @@ -19

[Qemu-devel] [PATCH v4 04/10] Add a script to extract VSS SDK headers on POSIX system

2013-06-06 Thread Tomoki Sekiyama
VSS SDK(*) setup.exe is only runnable on Windows. This adds a script to extract VSS SDK headers on POSIX-systems using msitools. * http://www.microsoft.com/en-us/download/details.aspx?id=23490 From: Paolo Bonzini Signed-off-by: Paolo Bonzini Signed-off-by: Tomoki Sekiyama --- scripts/extrac

Re: [Qemu-devel] [0/10] Clean up PCI code to allow for multiple root buses (v2)

2013-06-06 Thread Anthony Liguori
"Michael S. Tsirkin" writes: > On Thu, Jun 06, 2013 at 06:48:44PM +1000, David Gibson wrote: >> The current PCI subsystem has kind of half-hearted support for >> multiple independent root buses - aka PCI domains - in the form of the >> PCIHostBus structure and its domain field. However, it doesn

  1   2   >