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

2013-06-06 Thread Julio Guerra
ping 2013/5/26 Julio Guerra gu...@julio.in: 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 SPRG

[Qemu-devel] [PATCH v7 04/13] curl: fix curl_open

2013-06-06 Thread Fam Zheng
Change curl_size_cb to curl_header_cb, as what the function is really doing. Fix the registering, CURLOPT_WRITEFUNCTION is apparently wrong, should be CURLOPT_HEADERFUNCTION. Parsing size from header is not necessary as we're using curl_easy_getinfo(state-curl,

[Qemu-devel] [PATCH v7 01/13] curl: introduce CURLSockInfo to BDRVCURLState.

2013-06-06 Thread Fam Zheng
We use socket provided by curl in the driver. Libcurl multi interface has option CURLMOPT_SOCKETFUNCTION for socket. Per man 3 curl_multi_setopt: ... CURLMOPT_SOCKETFUNCTION Pass a pointer to a function matching the curl_socket_callback prototype. The

[Qemu-devel] [PATCH v7 02/13] curl: change magic number to sizeof

2013-06-06 Thread Fam Zheng
String field length is duplicated in two places. Make it a sizeof. Signed-off-by: Fam Zheng f...@redhat.com --- block/curl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/curl.c b/block/curl.c index a829fe7..a11002b 100644 --- a/block/curl.c +++ b/block/curl.c @@

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

2013-06-06 Thread Fam Zheng
CURL library API has changed, the current curl driver is not working with current libcurl. It may or may not have worked with old libcurl, but currently, when testing with apache http URL, it just hangs before fetching any data. The problem is because the mismatch of our code and how libcurl

[Qemu-devel] [PATCH v7 03/13] curl: change curl_multi_do to curl_fd_handler

2013-06-06 Thread Fam Zheng
The driver calls curl_multi_do to take action at several points, while it's also registered as socket fd handler. This patch removes internal call of curl_multi_do because they are not necessary when handler can be called by socket data update. Since curl_multi_do becomes a pure fd handler, the

[Qemu-devel] [PATCH v7 05/13] curl: add timer to BDRVCURLState

2013-06-06 Thread Fam Zheng
libcurl uses timer to manage ongoing sockets, it needs us to supply timer. This patch introduce QEMUTimer to BDRVCURLState and handles timeouts as libcurl expects (curl_multi_timer_cb sets given timeout value on the timer and curl_timer_cb calls curl_multi_socket_action on triggered).

[Qemu-devel] [PATCH v7 09/13] curl: add cache quota.

2013-06-06 Thread Fam Zheng
Introduce a cache quota: BDRVCURLState.cache_quota. When adding new CURLDataCache to BDRVCURLState, if number of existing CURLDataCache is larger than CURL_CACHE_QUOTA, try to release some first to limit the in memory cache size. A least used entry is selected for releasing. Signed-off-by: Fam

[Qemu-devel] [PATCH v7 08/13] curl: use list to store CURLState

2013-06-06 Thread Fam Zheng
Make it consistent to other structures to use QLIST to store CURLState. It also simplifies initialization and releasing of data. Signed-off-by: Fam Zheng f...@redhat.com --- block/curl.c | 82 +++- 1 file changed, 37 insertions(+), 45

[Qemu-devel] [PATCH v7 13/13] curl: change timeout to 30 seconds

2013-06-06 Thread Fam Zheng
On curl request timeout, guest gets -EIO. This happens too frequently accessing a slow network resource, with 5 seconds timeout. Change it to 30 seconds to give more time before aborting the request. Reported-by: Richard W.M. Jones rjo...@redhat.com Signed-off-by: Fam Zheng f...@redhat.com ---

[Qemu-devel] [PATCH v7 06/13] curl: introduce CURLDataCache

2013-06-06 Thread Fam Zheng
Data buffer was contained by CURLState, they are allocated and freed together. This patch try to isolate them, by introducing a dedicated cache list to BDRVCURLState. The benifit is we can now release the CURLState (and associated sockets) while keep the fetched data for later use, and simplies

[Qemu-devel] [PATCH v7 12/13] curl: set s-url to NULL after free.

2013-06-06 Thread Fam Zheng
Signed-off-by: Fam Zheng f...@redhat.com --- block/curl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/block/curl.c b/block/curl.c index bce2e8a..50c7188 100644 --- a/block/curl.c +++ b/block/curl.c @@ -741,6 +741,7 @@ static void curl_close(BlockDriverState *bs) }

[Qemu-devel] [PATCH v7 10/13] curl: introduce ssl_no_cert runtime option.

2013-06-06 Thread Fam Zheng
Added an option to let curl disable ssl certificate check. Signed-off-by: Fam Zheng f...@redhat.com --- block/curl.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/block/curl.c b/block/curl.c index 6e893d0..e067417 100644 --- a/block/curl.c +++ b/block/curl.c @@

[Qemu-devel] [PATCH v7 07/13] curl: make use of CURLDataCache.

2013-06-06 Thread Fam Zheng
Make subsequecial changes to make use of introduced CURLDataCache. Moved acb struct from CURLState to BDRVCURLState, and changed to list. Signed-off-by: Fam Zheng f...@redhat.com --- block/curl.c | 170 --- 1 file changed, 92 insertions(+),

[Qemu-devel] [PATCH v7 11/13] block/curl.c: Refuse to open the handle for writes.

2013-06-06 Thread Fam Zheng
From: Richard W.M. Jones rjo...@redhat.com Signed-off-by: Richard W.M. Jones rjo...@redhat.com Signed-off-by: Fam Zheng f...@redhat.com --- block/curl.c | 4 1 file changed, 4 insertions(+) diff --git a/block/curl.c b/block/curl.c index e067417..bce2e8a 100644 --- a/block/curl.c +++

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

2013-06-06 Thread 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/ /backing chain on all block device at runtime, which helps management stack and human user, by retrieving exactly the same info of what qemu

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 Libvirt

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 wdon...@linux.vnet.ibm.com Signed-off-by: Dong Xu Wang wdon...@linux.vnet.ibm.com Signed-off-by: Dongxu Wang wdon...@linux.vnet.ibm.com One of these

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; + +return

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 EC is a

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 da...@gibson.dropbear.id.au 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,

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, 2013 at

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, 2013 at

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 da...@gibson.dropbear.id.au Recent (host) kernels support emulating the PAPR defined XICS interrupt controller system within KVM. This patch allows qemu to

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 xiaw...@linux.vnet.ibm.com --- libcacard/vscclient.c |2 +- util/iov.c|2 +- 2 files changed, 2 insertions(+), 2

[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 claudio.font...@huawei.com wrote: This series implements preliminary support for the ARM aarch64 TCG target. Reviewed-by: Peter Maydell peter.mayd...@linaro.org Cc'd some people who might like to

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 chapter 12 ACPI

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

[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 cornelia.h...@de.ibm.com --- 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

[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

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

[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

[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 da...@gibson.dropbear.id.au --- hw/pci/pci-hotplug-old.c | 14 ++ hw/pci/pci.c |

[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

[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.

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 m...@redhat.com 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:

[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

[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

[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 da...@gibson.dropbear.id.au --- hw/pci/pci.c | 7 +++ 1 file changed, 3 insertions(+), 4

[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

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 options +

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ärber (1):

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 m...@redhat.com 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

[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

[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

[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 p...@kamp.de ---

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

2013-06-06 Thread Peter Maydell
On 6 June 2013 09:22, Stefan Hajnoczi stefa...@gmail.com 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

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); + +rwr-rc =

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 gaowanl...@cn.fujitsu.com writes: Add monitor command mem-nodes to show the huge mapped memory nodes locations. (qemu) info mem-nodes /proc/14132/fd/13:

[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ärber (1):

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 QMP

[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

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 more

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

[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

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 peter.crosthwa...@xilinx.com 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

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 peter.crosthwa...@xilinx.com Define and use standard QOM cast macro. Remove usages of DO_UPCAST and direct - style casting. Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com Reviewed-by: Andreas

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 SPRG

[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 morita.kazut...@lab.ntt.co.jp Cc: Kevin Wolf kw...@redhat.com Cc: Stefan Hajnoczi stefa...@redhat.com

[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 morita.kazut...@lab.ntt.co.jp Cc: Kevin Wolf kw...@redhat.com Cc: Stefan Hajnoczi stefa...@redhat.com Liu Yuan (2): sheepdog: fix snapshot tag initialization sheepdog:

[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 morita.kazut...@lab.ntt.co.jp Cc: Kevin Wolf kw...@redhat.com Cc: Stefan Hajnoczi stefa...@redhat.com Signed-off-by: Liu Yuan namei.u...@gmail.com --- block/sheepdog.c |8 +---

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 with

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

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 morita.kazut...@lab.ntt.co.jp Cc: Kevin Wolf kw...@redhat.com Cc: Stefan Hajnoczi stefa...@redhat.com Signed-off-by: Liu Yuan

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 have no

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 morita.kazut...@lab.ntt.co.jp Cc: Kevin Wolf

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 __attribute__((packed));

[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 ema...@freebsd.org --- 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

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 morita.kazut...@lab.ntt.co.jp Cc: Kevin Wolf kw...@redhat.com Cc: Stefan Hajnoczi

[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 ema...@freebsd.org --- configure | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure b/configure index

[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 cor...@linux.vnet.ibm.com --- v2 -No changes v3 -No changes --- hw/tpm/tpm_int.h |2 ++ hw/tpm/tpm_tis.c |8 2 files changed, 10 insertions(+), 0

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; + +

[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

[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

[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

[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 dant...@faraday-tech.com Replace PORTSC macros with variables which could then be configured in ehci__class_init(...) Signed-off-by: Kuo-Jung Su dant...@faraday-tech.com Signed-off-by: Andreas Färber afaer...@suse.de --- hw/usb/hcd-ehci-pci.c| 2 ++

[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 afaer...@suse.de --- hw/usb/hcd-ehci-pci.c| 19 ++- hw/usb/hcd-ehci-sysbus.c | 16 +---

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, so

[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 andreas.faer...@web.de 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 vpala...@chromium.org Signed-off-by: Andreas Färber andreas.faer...@web.de ---

[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. * Split

[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 marcandre.lur...@redhat.com --- libcacard/vscclient.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git

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

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

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 peter.crosthwa...@xilinx.com Define and use standard QOM cast macro. Remove usages of DO_UPCAST and direct - style casting. Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com Reviewed-by: 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 peter.crosthwa...@xilinx.com 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

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 (virtio-scsi-pci,

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

[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

[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 hdego...@redhat.com --- 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

[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 hdego...@redhat.com --- include/libfdt_env.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include/libfdt_env.h b/include/libfdt_env.h index

[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

  1   2   >