Re: [Qemu-devel] [PATCH 0/4] ARM aarch64 TCG target VERSION 2

2013-05-23 Thread Claudio Fontana
On 23.05.2013 15:03, Peter Maydell wrote: > On 23 May 2013 13:53, Andreas Färber wrote: >> Am 23.05.2013 14:50, schrieb Peter Maydell: >>> I'm happy for us to wait until an actual big-endian system >>> running Linux appears before we worry about it. > >> I was worried about Big Endian QEMU target

Re: [Qemu-devel] qemu seabios issue with vhost-scsi

2013-05-23 Thread Stefan Hajnoczi
On Thu, May 23, 2013 at 11:48 AM, Gleb Natapov wrote: > On Thu, May 23, 2013 at 08:53:55AM +0800, Asias He wrote: >> On Wed, May 22, 2013 at 05:36:08PM -0700, Badari wrote: >> > Hi, >> > >> > While testing vhost-scsi in the current qemu git, ran into an earlier issue >> > with seabios. I had to di

Re: [Qemu-devel] [PATCH v5 01/11] curl: introduce CURLSockInfo to BDRVCURLState.

2013-05-23 Thread Stefan Hajnoczi
On Thu, May 23, 2013 at 11:37:59AM +0800, Fam Zheng wrote: > @@ -90,7 +98,16 @@ static int curl_aio_flush(void *opaque); > static int curl_sock_cb(CURL *curl, curl_socket_t fd, int action, > void *s, void *sp) > { > +BDRVCURLState *bs = s; bs is used for BlockDriverS

Re: [Qemu-devel] [RFC PATCH v3 00/11] qemu-ga: fsfreeze on Windows using VSS

2013-05-23 Thread Paolo Bonzini
Il 23/05/2013 15:28, Stefan Hajnoczi ha scritto: > On Thu, May 23, 2013 at 3:20 PM, Paolo Bonzini wrote: >> Il 23/05/2013 14:15, Stefan Hajnoczi ha scritto: >>> On Tue, May 21, 2013 at 11:33:33AM -0400, Tomoki Sekiyama wrote: * How to build & run qemu-ga with VSS support - Download

Re: [Qemu-devel] RFC: Full introspection support for QMP

2013-05-23 Thread Anthony Liguori
Kevin Wolf writes: > Am 23.05.2013 um 14:08 hat Anthony Liguori geschrieben: >> Kevin Wolf writes: >> >> >> There are two things here: the schema and the generated code. The >> generated code can and should live in the module. >> >> But the schema always stays the same. >> >> Think of the s

Re: [Qemu-devel] [PATCH v5 05/11] curl: add timer to BDRVCURLState

2013-05-23 Thread Stefan Hajnoczi
On Thu, May 23, 2013 at 11:38:03AM +0800, Fam Zheng wrote: > diff --git a/block/curl.c b/block/curl.c > index fc464ad..4fd5bb9 100644 > --- a/block/curl.c > +++ b/block/curl.c > @@ -89,6 +89,7 @@ typedef struct BDRVCURLState { > QLIST_HEAD(, CURLSockInfo) socks; > char *url; > size_t

Re: [Qemu-devel] [PATCH] ui/input.c: replace magic numbers with macros

2013-05-23 Thread Luiz Capitulino
On Thu, 16 May 2013 13:19:47 +0800 Amos Kong wrote: > It's clearer to use defined macros than magic numbers. > > Signed-off-by: Amos Kong Applied to the qmp branch, thanks. > --- > ui/input.c | 13 +++-- > 1 file changed, 7 insertions(+), 6 deletions(-) > > diff --git a/ui/input.c b

Re: [Qemu-devel] "Designing QMP APIs" at KVM Forum

2013-05-23 Thread Eric Blake
On 05/23/2013 06:46 AM, Luiz Capitulino wrote: > On Thu, 23 May 2013 13:51:22 +0200 > Stefan Hajnoczi wrote: > >> With better QMP introspection on the horizon and work in various >> subsystems pushing QMP boundaries it would be useful to bring together >> the latest best practices for designing Q

Re: [Qemu-devel] updated: kvm networking todo wiki

2013-05-23 Thread Lucas Meneghel Rodrigues
On 23/05/13 05:50 AM, Michael S. Tsirkin wrote: Hey guys, I've updated the kvm networking todo wiki with current projects. Will try to keep it up to date more often. Original announcement below. I've put up a wiki page with a kvm networking todo list, mainly to avoid effort duplication, bu

Re: [Qemu-devel] [PATCH v5 06/11] curl: introduce CURLDataCache

2013-05-23 Thread Stefan Hajnoczi
On Thu, May 23, 2013 at 11:38:04AM +0800, Fam Zheng wrote: > +typedef struct CURLDataCache { > +char *data; > +size_t base_pos; Must be int64_t. QEMU compiled on 32-bit hosts would only allow 4 GB images with size_t! > +size_t data_len; > +size_t write_pos; > +/* Ref count fo

Re: [Qemu-devel] RFC: Full introspection support for QMP

2013-05-23 Thread Eric Blake
On 05/23/2013 07:52 AM, Anthony Liguori wrote: >> libvirt already knows how to use features. It must know it, just parsing >> the schema doesn't automagically give you libvirt code, so someone must >> have coded the libvirt side of things. The interesting part is whether a >> given interface is ava

Re: [Qemu-devel] [PATCH v5 07/11] curl: make use of CURLDataCache.

2013-05-23 Thread Stefan Hajnoczi
On Thu, May 23, 2013 at 11:38:05AM +0800, Fam Zheng wrote: > @@ -221,31 +215,35 @@ static void curl_complete_io(BDRVCURLState *bs, > CURLAIOCB *acb, > > static size_t curl_read_cb(void *ptr, size_t size, size_t nmemb, void > *opaque) > { > -CURLState *s = ((CURLState*)opaque); > +CURL

Re: [Qemu-devel] [PATCH v3 1/2] net: introduce RX_FILTER_CHANGED event

2013-05-23 Thread Luiz Capitulino
On Thu, 23 May 2013 13:24:59 +0300 "Michael S. Tsirkin" wrote: > On Thu, May 23, 2013 at 05:07:59PM +0800, Amos Kong wrote: > > Introduce this new QMP event to notify management after guest changes > > rx-filter configuration. > > > > Signed-off-by: Amos Kong > > --- > > QMP/qmp-events.txt

Re: [Qemu-devel] RFC: Full introspection support for QMP

2013-05-23 Thread Kevin Wolf
Am 23.05.2013 um 15:52 hat Anthony Liguori geschrieben: > Kevin Wolf writes: > > > Am 23.05.2013 um 14:08 hat Anthony Liguori geschrieben: > >> Kevin Wolf writes: > >> > >> > >> There are two things here: the schema and the generated code. The > >> generated code can and should live in the mo

Re: [Qemu-devel] [PATCH v5 08/11] curl: use list to store CURLState

2013-05-23 Thread Stefan Hajnoczi
On Thu, May 23, 2013 at 11:38:06AM +0800, Fam Zheng wrote: > @@ -660,9 +651,13 @@ static BlockDriverAIOCB *curl_aio_readv(BlockDriverState > *bs, > static void curl_close(BlockDriverState *bs) > { > BDRVCURLState *s = bs->opaque; > -int i; > > DPRINTF("CURL: Close\n"); > +if

[Qemu-devel] [PATCH 00/10] virtio: import headers from linux

2013-05-23 Thread Michael S. Tsirkin
I'm working on adding new virtio layout to qemu. The job is complicated by the fact that qemu has its own copy of the virtio headers, sometimes with slightly different names and structure. Import headers from linux instead. Michael S. Tsirkin (10): scripts/update-linux-headers.sh: add virtio v

[Qemu-devel] [PATCH 06/10] virtio-rng: switch to linux-headers

2013-05-23 Thread Michael S. Tsirkin
It's easier to keep everything in sync if we just use linux headers for virtio constants. Add virtio_rng.h header from linux 3.10-rc1, and remove duplicate symbols from virtio-rng.h Signed-off-by: Michael S. Tsirkin --- include/hw/virtio/virtio-rng.h | 5 ++--- linux-headers/linux/virtio_rng.h

[Qemu-devel] [PATCH 01/10] scripts/update-linux-headers.sh: add virtio

2013-05-23 Thread Michael S. Tsirkin
Add virtio headers to make it easy to keep things in sync. Signed-off-by: Michael S. Tsirkin --- scripts/update-linux-headers.sh | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/scripts/update-linux-headers.sh b/scripts/update-linux-headers.sh index 120a694..

[Qemu-devel] [PATCH 07/10] virtio-console: switch to linux-headers

2013-05-23 Thread Michael S. Tsirkin
It's easier to keep everything in sync if we just use linux headers for virtio constants. Add virtio_console.h header from linux 3.10-rc1, and remove duplicate symbols from virtio-serial.h Signed-off-by: Michael S. Tsirkin --- include/hw/virtio/virtio-serial.h| 38 +- linux-h

[Qemu-devel] [PATCH 08/10] virtio: add virtio_ids from linux-headers

2013-05-23 Thread Michael S. Tsirkin
All imported headers will use it. Signed-off-by: Michael S. Tsirkin --- linux-headers/linux/virtio_ids.h | 43 1 file changed, 43 insertions(+) create mode 100644 linux-headers/linux/virtio_ids.h diff --git a/linux-headers/linux/virtio_ids.h b/linux-hea

[Qemu-devel] [PATCH 02/10] virtio-9p: switch to linux-headers

2013-05-23 Thread Michael S. Tsirkin
It's easier to keep everything in sync if we just use linux headers for virtio constants. Add virtio-9p header from linux 3.10-rc1, and remove duplicate symbols from virtio-9p.h Signed-off-by: Michael S. Tsirkin --- hw/9pfs/virtio-9p.h | 13 +--- linux-headers/linux/virtio_9p

[Qemu-devel] [PATCH 05/10] virtio-balloon: switch to linux-headers

2013-05-23 Thread Michael S. Tsirkin
It's easier to keep everything in sync if we just use linux headers for virtio constants. Add virtio_balloon.h header from linux 3.10-rc1, and remove duplicate symbols from virtio-balloon.h Signed-off-by: Michael S. Tsirkin --- hw/virtio/virtio-balloon.c | 2 +- include/hw/virtio/virt

[Qemu-devel] [PATCH 09/10] virtio-pci: switch to linux-headers

2013-05-23 Thread Michael S. Tsirkin
It's easier to keep everything in sync if we just use linux headers for virtio constants. Add virtio_pci.h header from linux 3.10-rc1, and remove duplicate symbols from virtio-pci.h Signed-off-by: Michael S. Tsirkin --- hw/virtio/virtio-pci.c | 49 +++- linux-headers/li

Re: [Qemu-devel] [PATCH v5 00/11] curl: fix curl read

2013-05-23 Thread Stefan Hajnoczi
On Thu, May 23, 2013 at 11:37:58AM +0800, Fam Zheng wrote: > CURL library API has changed, the current curl driver is not working. > This patch rewrites the use of API as well as the structure of internal > states. > > BDRVCURLState holds the pointer to curl multi interface (man 3 > libcurl-multi)

Re: [Qemu-devel] [PATCH 00/10] virtio: import headers from linux

2013-05-23 Thread Peter Maydell
On 23 May 2013 15:34, Michael S. Tsirkin wrote: > I'm working on adding new virtio layout to qemu. > The job is complicated by the fact that > qemu has its own copy of the virtio headers, > sometimes with slightly different names > and structure. > Import headers from linux instead. Do the kernel

Re: [Qemu-devel] [PATCH v3 1/2] net: introduce RX_FILTER_CHANGED event

2013-05-23 Thread Michael S. Tsirkin
On Thu, May 23, 2013 at 10:28:42AM -0400, Luiz Capitulino wrote: > On Thu, 23 May 2013 13:24:59 +0300 > "Michael S. Tsirkin" wrote: > > > On Thu, May 23, 2013 at 05:07:59PM +0800, Amos Kong wrote: > > > Introduce this new QMP event to notify management after guest changes > > > rx-filter configur

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

2013-05-23 Thread Michael S. Tsirkin
On Thu, May 23, 2013 at 10:16:13PM +1000, David Gibson wrote: > On Thu, May 23, 2013 at 02:01:57PM +0300, Michael S. Tsirkin wrote: > > On Thu, May 09, 2013 at 10:31:10AM +1000, David Gibson wrote: > > > Currently pci_get_primary_bus() searches the list of root buses for one > > > with domain 0. B

[Qemu-devel] [PATCH 10/10] virtio: use ring structure from linux-headers

2013-05-23 Thread Michael S. Tsirkin
We already have ring structure in virtio-ring.h for use by dataplane. Use it in virtio.h as well, renaming some conflicting functions. Signed-off-by: Michael S. Tsirkin --- hw/virtio/virtio.c | 23 +-- include/hw/virtio/virtio.h | 45 +++---

Re: [Qemu-devel] [PATCH v5 09/11] curl: add cache quota.

2013-05-23 Thread Stefan Hajnoczi
On Thu, May 23, 2013 at 11:38:07AM +0800, Fam Zheng wrote: > 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. >

Re: [Qemu-devel] qemu seabios issue with vhost-scsi

2013-05-23 Thread Badari Pulavarty
On 05/23/2013 06:32 AM, Stefan Hajnoczi wrote: On Thu, May 23, 2013 at 11:48 AM, Gleb Natapov wrote: On Thu, May 23, 2013 at 08:53:55AM +0800, Asias He wrote: On Wed, May 22, 2013 at 05:36:08PM -0700, Badari wrote: Hi, While testing vhost-scsi in the current qemu git, ran into an earlier iss

Re: [Qemu-devel] QMP interface for drive-add (or even blockdev-add)

2013-05-23 Thread Kevin Wolf
Am 23.05.2013 um 13:57 hat Stefan Hajnoczi geschrieben: > On Wed, May 22, 2013 at 03:53:05PM +0200, Kevin Wolf wrote: > > Am 16.05.2013 um 21:05 hat Eric Blake geschrieben: > > > On 05/16/2013 02:24 AM, Kevin Wolf wrote: > > The other thing that I'm not sure about is whether we should teach QAPI >

[Qemu-devel] [PATCH 04/10] virtio-blk: switch to linux-headers

2013-05-23 Thread Michael S. Tsirkin
It's easier to keep everything in sync if we just use linux headers for virtio constants. Add virtio_blk.h header from linux 3.10-rc1, and remove duplicate symbols from virtio-blk.h In particular, it turns out that linux does not have struct virtio_blk_inhdr for the status field, so make this stru

Re: [Qemu-devel] [PATCH v3 1/2] net: introduce RX_FILTER_CHANGED event

2013-05-23 Thread Eric Blake
On 05/23/2013 08:43 AM, Michael S. Tsirkin wrote: >>> Please stress this is only for the NIC. It does not apply >>> to non-NIC netclients. >> >> Stress it in the event name too, please. I find RX_FILTER_CHANGED a bit >> generic. > > What do you suggest? > NIC_RX_FILTER_CHANGED ? Yes, that might w

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

2013-05-23 Thread Paolo Bonzini
Il 09/05/2013 02:31, David Gibson ha scritto: > diff --git a/hw/pci/Makefile.objs b/hw/pci/Makefile.objs > index a7fb9d0..2ad32b6 100644 > --- a/hw/pci/Makefile.objs > +++ b/hw/pci/Makefile.objs > @@ -8,4 +8,4 @@ common-obj-$(CONFIG_PCI) += pcie.o pcie_aer.o pcie_port.o > common-obj-$(CONFIG_NO_PC

Re: [Qemu-devel] [PATCH 00/10] virtio: import headers from linux

2013-05-23 Thread Michael S. Tsirkin
On Thu, May 23, 2013 at 03:41:07PM +0100, Peter Maydell wrote: > On 23 May 2013 15:34, Michael S. Tsirkin wrote: > > I'm working on adding new virtio layout to qemu. > > The job is complicated by the fact that > > qemu has its own copy of the virtio headers, > > sometimes with slightly different n

Re: [Qemu-devel] [PATCH 5/8] pci: Replace pci_find_domain() with more general pci_root_bus_path()

2013-05-23 Thread Michael S. Tsirkin
On Thu, May 23, 2013 at 04:51:17PM +0200, Paolo Bonzini wrote: > Il 23/05/2013 13:04, Michael S. Tsirkin ha scritto: > >> > Most current uses of pci_find_domain() are for error or informational > >> > messages, so the change in identifiers should be harmless. The exception > >> > is pci_get_dev_pa

Re: [Qemu-devel] [PATCH v3 1/2] net: introduce RX_FILTER_CHANGED event

2013-05-23 Thread Michael S. Tsirkin
On Thu, May 23, 2013 at 08:52:16AM -0600, Eric Blake wrote: > On 05/23/2013 08:43 AM, Michael S. Tsirkin wrote: > >>> Please stress this is only for the NIC. It does not apply > >>> to non-NIC netclients. > >> > >> Stress it in the event name too, please. I find RX_FILTER_CHANGED a bit > >> generic

Re: [Qemu-devel] qemu seabios issue with vhost-scsi

2013-05-23 Thread Paolo Bonzini
Il 23/05/2013 16:48, Badari Pulavarty ha scritto: >> The common virtio-scsi code in QEMU should guard against this. In >> virtio-blk data plane I hit a similar case and ended up starting the >> data plane thread (equivalent to vhost here) *before* the status >> register is set to DRIVER_OK. > > T

Re: [Qemu-devel] [PATCH 5/8] pci: Replace pci_find_domain() with more general pci_root_bus_path()

2013-05-23 Thread Paolo Bonzini
Il 23/05/2013 16:57, Michael S. Tsirkin ha scritto: > On Thu, May 23, 2013 at 04:51:17PM +0200, Paolo Bonzini wrote: >> Il 23/05/2013 13:04, Michael S. Tsirkin ha scritto: > Most current uses of pci_find_domain() are for error or informational > messages, so the change in identifiers should

Re: [Qemu-devel] [PATCH 5/8] pci: Replace pci_find_domain() with more general pci_root_bus_path()

2013-05-23 Thread Paolo Bonzini
Il 23/05/2013 13:04, Michael S. Tsirkin ha scritto: >> > Most current uses of pci_find_domain() are for error or informational >> > messages, so the change in identifiers should be harmless. The exception >> > is pci_get_dev_path(), whose results form part of migration streams. To >> > maintain c

Re: [Qemu-devel] [PATCH 15/30] memory: add address_space_valid

2013-05-23 Thread Jan Kiszka
On 2013-05-23 14:05, David Gibson wrote: > On Tue, May 21, 2013 at 12:57:16PM +0200, Paolo Bonzini wrote: >> The old-style IOMMU lets you check whether an access is valid in a >> given DMAContext. There is no equivalent for AddressSpace in the >> memory API, implement it with a lookup of the dispa

Re: [Qemu-devel] [PATCH 5/8] pci: Replace pci_find_domain() with more general pci_root_bus_path()

2013-05-23 Thread Michael S. Tsirkin
On Thu, May 23, 2013 at 05:00:39PM +0200, Paolo Bonzini wrote: > Il 23/05/2013 16:57, Michael S. Tsirkin ha scritto: > > On Thu, May 23, 2013 at 04:51:17PM +0200, Paolo Bonzini wrote: > >> Il 23/05/2013 13:04, Michael S. Tsirkin ha scritto: > > Most current uses of pci_find_domain() are for err

[Qemu-devel] [PATCH 03/10] virtio-net, eth: use linux-headers

2013-05-23 Thread Michael S. Tsirkin
It's easier to keep everything virtio in sync if we just use headers exported from linux kernel. Import linux/virtio_net.h and linux/if_ether.h that it depends on. Switch to symbols from that header for stuff that was duplicated in tap.h and eth.h Signed-off-by: Michael S. Tsirkin --- include/hw

Re: [Qemu-devel] [PATCH V2 4/5] util: add new function message_printf()

2013-05-23 Thread Eric Blake
On 05/23/2013 02:47 AM, Wenchao Xia wrote: > This function takes an input parameter *output, which can be specified by > caller as stderr, stdout or a monitor. error_vprintf() now calls > message_vprintf(), > which is a static function added in this patch. > > Signed-off-by: Wenchao Xia > --- >

Re: [Qemu-devel] [PATCH 15/30] memory: add address_space_valid

2013-05-23 Thread Paolo Bonzini
Il 23/05/2013 16:22, Jan Kiszka ha scritto: >>> >> The old-style IOMMU lets you check whether an access is valid in a >>> >> given DMAContext. There is no equivalent for AddressSpace in the >>> >> memory API, implement it with a lookup of the dispatch tree. >> > >> > I don't love the name - "addr

Re: [Qemu-devel] qemu seabios issue with vhost-scsi

2013-05-23 Thread Asias He
On Thu, May 23, 2013 at 04:58:05PM +0200, Paolo Bonzini wrote: > Il 23/05/2013 16:48, Badari Pulavarty ha scritto: > >> The common virtio-scsi code in QEMU should guard against this. In > >> virtio-blk data plane I hit a similar case and ended up starting the > >> data plane thread (equivalent to

Re: [Qemu-devel] qemu seabios issue with vhost-scsi

2013-05-23 Thread Paolo Bonzini
Il 23/05/2013 17:27, Asias He ha scritto: > On Thu, May 23, 2013 at 04:58:05PM +0200, Paolo Bonzini wrote: >> Il 23/05/2013 16:48, Badari Pulavarty ha scritto: The common virtio-scsi code in QEMU should guard against this. In virtio-blk data plane I hit a similar case and ended up starti

Re: [Qemu-devel] [PATCH V2 5/5] block: dump to specified output for bdrv_snapshot_dump() and bdrv_image_info_dump()

2013-05-23 Thread Eric Blake
On 05/23/2013 02:47 AM, Wenchao Xia wrote: > Buffer is not used now so the string would not be truncated any more. They > can be used > by both qemu and qemu-img with correct parameter specified. > > Signed-off-by: Wenchao Xia > --- > block/qapi.c | 65 > +++--

Re: [Qemu-devel] [PATCH 00/10] virtio: import headers from linux

2013-05-23 Thread Michael S. Tsirkin
On Thu, May 23, 2013 at 05:56:43PM +0300, Michael S. Tsirkin wrote: > On Thu, May 23, 2013 at 03:41:07PM +0100, Peter Maydell wrote: > > On 23 May 2013 15:34, Michael S. Tsirkin wrote: > > > I'm working on adding new virtio layout to qemu. > > > The job is complicated by the fact that > > > qemu h

Re: [Qemu-devel] [PATCH v3 1/2] net: introduce RX_FILTER_CHANGED event

2013-05-23 Thread Luiz Capitulino
On Thu, 23 May 2013 17:57:56 +0300 "Michael S. Tsirkin" wrote: > On Thu, May 23, 2013 at 08:52:16AM -0600, Eric Blake wrote: > > On 05/23/2013 08:43 AM, Michael S. Tsirkin wrote: > > >>> Please stress this is only for the NIC. It does not apply > > >>> to non-NIC netclients. > > >> > > >> Stress

Re: [Qemu-devel] [PATCH v2 1/2] net: introduce MAC_TABLE_CHANGED event

2013-05-23 Thread Luiz Capitulino
On Thu, 16 May 2013 18:17:23 +0300 "Michael S. Tsirkin" wrote: > > The > > existing throttling approach ensures that if the event includes latest > > guest information, then the host doesn't even have to do do a query, and > > is guaranteed that reacting to the final event will always see the mos

Re: [Qemu-devel] QMP interface for drive-add (or even blockdev-add)

2013-05-23 Thread Stefan Hajnoczi
On Thu, May 23, 2013 at 4:41 PM, Kevin Wolf wrote: > Am 23.05.2013 um 13:57 hat Stefan Hajnoczi geschrieben: >> On Wed, May 22, 2013 at 03:53:05PM +0200, Kevin Wolf wrote: >> > Am 16.05.2013 um 21:05 hat Eric Blake geschrieben: >> > > On 05/16/2013 02:24 AM, Kevin Wolf wrote: >> > The other thing

Re: [Qemu-devel] [PATCH 00/10] virtio: import headers from linux

2013-05-23 Thread Paolo Bonzini
Il 23/05/2013 17:32, Michael S. Tsirkin ha scritto: > On Thu, May 23, 2013 at 05:56:43PM +0300, Michael S. Tsirkin wrote: >> On Thu, May 23, 2013 at 03:41:07PM +0100, Peter Maydell wrote: >>> On 23 May 2013 15:34, Michael S. Tsirkin wrote: I'm working on adding new virtio layout to qemu.

Re: [Qemu-devel] [PATCH v3 2/2] net: introduce command to query rx-filter information

2013-05-23 Thread Luiz Capitulino
On Thu, 23 May 2013 17:08:00 +0800 Amos Kong wrote: > We want to implement mac programming over macvtap through Libvirt, > related rx-filter configuration contains main mac, some of rx-mode > and mac-table. > > The previous patch adds QMP event to notify management of rx-filter > change. This pa

Re: [Qemu-devel] qemu seabios issue with vhost-scsi

2013-05-23 Thread Badari Pulavarty
On 05/23/2013 07:58 AM, Paolo Bonzini wrote: Il 23/05/2013 16:48, Badari Pulavarty ha scritto: The common virtio-scsi code in QEMU should guard against this. In virtio-blk data plane I hit a similar case and ended up starting the data plane thread (equivalent to vhost here) *before* the status

Re: [Qemu-devel] qemu seabios issue with vhost-scsi

2013-05-23 Thread Badari Pulavarty
On 05/23/2013 08:30 AM, Paolo Bonzini wrote: Il 23/05/2013 17:27, Asias He ha scritto: On Thu, May 23, 2013 at 04:58:05PM +0200, Paolo Bonzini wrote: Il 23/05/2013 16:48, Badari Pulavarty ha scritto: The common virtio-scsi code in QEMU should guard against this. In virtio-blk data plane I hit

Re: [Qemu-devel] qemu seabios issue with vhost-scsi

2013-05-23 Thread Paolo Bonzini
Il 23/05/2013 18:11, Badari Pulavarty ha scritto: > On 05/23/2013 08:30 AM, Paolo Bonzini wrote: >> Il 23/05/2013 17:27, Asias He ha scritto: >>> On Thu, May 23, 2013 at 04:58:05PM +0200, Paolo Bonzini wrote: Il 23/05/2013 16:48, Badari Pulavarty ha scritto: >> The common virtio-scsi code

Re: [Qemu-devel] [PATCH 2/4] tcg/aarch64: implement new TCG target for aarch64

2013-05-23 Thread Richard Henderson
On 05/23/2013 01:18 AM, Claudio Fontana wrote: > +static inline void patch_reloc(uint8_t *code_ptr, int type, > + tcg_target_long value, tcg_target_long addend) > +{ > +switch (type) { > +case R_AARCH64_JUMP26: > +case R_AARCH64_CALL26: > +reloc_pc2

Re: [Qemu-devel] qemu seabios issue with vhost-scsi

2013-05-23 Thread Badari Pulavarty
On 05/23/2013 09:19 AM, Paolo Bonzini wrote: Il 23/05/2013 18:11, Badari Pulavarty ha scritto: On 05/23/2013 08:30 AM, Paolo Bonzini wrote: Il 23/05/2013 17:27, Asias He ha scritto: On Thu, May 23, 2013 at 04:58:05PM +0200, Paolo Bonzini wrote: Il 23/05/2013 16:48, Badari Pulavarty ha scritto

Re: [Qemu-devel] [PATCH 2/4] tcg/aarch64: implement new TCG target for aarch64

2013-05-23 Thread Peter Maydell
On 23 May 2013 09:18, Claudio Fontana wrote: > > add preliminary support for TCG target aarch64. Richard's handling the technical bits of the review, so just some minor style nits here. I tested this on the foundation model and was able to boot a 32-bit-ARM kernel. > +static inline void reloc_p

Re: [Qemu-devel] [PATCH 01/10] target-arm: Don't use TCGv when we mean TCGv_i32

2013-05-23 Thread Richard Henderson
On 05/23/2013 04:59 AM, Peter Maydell wrote: > TCGv changes size depending on the compile time value of > TARGET_LONG_BITS. This is useful for generating code for MIPS style > "instructions are the same but the register width changes" CPUs, and > also for the generic bits of QEMU which operate on

Re: [Qemu-devel] [PATCH 02/10] target-arm: Remove gen_ld64() and gen_st64()

2013-05-23 Thread Richard Henderson
On 05/23/2013 04:59 AM, Peter Maydell wrote: > gen_ld64() and gen_st64() are used only in one place, so just > expand them out. > > Signed-off-by: Peter Maydell > --- > target-arm/translate.c | 19 --- > 1 file changed, 4 insertions(+), 15 deletions(-) Reviewed-by: Richard Hen

Re: [Qemu-devel] [PATCH 03/10] target-arm: Remove uses of gen_{ld, st}* from iWMMXt code

2013-05-23 Thread Richard Henderson
On 05/23/2013 04:59 AM, Peter Maydell wrote: > Signed-off-by: Peter Maydell > --- > target-arm/translate.c | 18 ++ > 1 file changed, 10 insertions(+), 8 deletions(-) Reviewed-by: Richard Henderson r~

Re: [Qemu-devel] qemu seabios issue with vhost-scsi

2013-05-23 Thread Paolo Bonzini
Il 23/05/2013 18:38, Badari Pulavarty ha scritto: >> If that is with the old SeaBIOS, then SIGABRT is intended. :) The guest >> is buggy, the problem in QEMU only lies in _how_ it fails. >> >> Paolo >> >> > > I am confused now. Without above changes, seabios fix makes the > guest boot. But with t

Re: [Qemu-devel] [PATCH 10/10] target-arm: Abstract out load/store from a vaddr in AArch32

2013-05-23 Thread Richard Henderson
On 05/23/2013 05:00 AM, Peter Maydell wrote: > AArch32 code (ie traditional 32 bit world) expects to be > able to pass a vaddr in a TCGv_i32. However when QEMU is > compiled with TARGET_LONG_BITS=32 the TCG load/store > functions take a TCGv_i64. Abstract out load/store with > a 32 bit vaddr so we

Re: [Qemu-devel] [RFC PATCH v3 00/11] qemu-ga: fsfreeze on Windows using VSS

2013-05-23 Thread Tomoki Sekiyama
Hi Laszlo, Thank you for reviewing. On 5/23/13 7:05 , "Laszlo Ersek" wrote: >Sekiyama-san, > >On 05/21/13 17:33, Tomoki Sekiyama wrote: > >> * About errors in Windows 7 with patch v2 >> VSS requires to write to snapshot volumes just before making them >>read-only >> at final commit phase. T

Re: [Qemu-devel] [PATCH] qemu-kvm: fix unmatched RAM alloction/free

2013-05-23 Thread Paolo Bonzini
> mmap is used in qemu_vmalloc function instead of qemu_memalign(commit > 7dda5dc8), so it should change qemu_vfree to munmap to fix a unmatched > issue. > > This issue appears when a PCI device is being assigned to KVM guest, > failure to read PCI rom file will bring RAM free, then the incorrect

Re: [Qemu-devel] [PATCH V2 4/5] util: add new function message_printf()

2013-05-23 Thread Luiz Capitulino
On Thu, 23 May 2013 16:47:15 +0800 Wenchao Xia wrote: > This function takes an input parameter *output, which can be specified by > caller as stderr, stdout or a monitor. error_vprintf() now calls > message_vprintf(), > which is a static function added in this patch. > > Signed-off-by: Wenchao

Re: [Qemu-devel] [PATCH 00/30] Introduction of IOMMUs into the memory API

2013-05-23 Thread Paolo Bonzini
Il 22/05/2013 11:24, Paolo Bonzini ha scritto: > Il 22/05/2013 04:30, Alexey Kardashevskiy ha scritto: >> On 05/21/2013 08:57 PM, Paolo Bonzini wrote: >>> This is part 1 of the memory API updates for 1.6. (Part 2 is the >>> introduction of get/set_owner, part 3 is the introduction of the >>> RCU-s

Re: [Qemu-devel] [PATCH v2 1/2] net: introduce MAC_TABLE_CHANGED event

2013-05-23 Thread Michael S. Tsirkin
On Thu, May 23, 2013 at 11:54:03AM -0400, Luiz Capitulino wrote: > On Thu, 16 May 2013 18:17:23 +0300 > "Michael S. Tsirkin" wrote: > > > > The > > > existing throttling approach ensures that if the event includes latest > > > guest information, then the host doesn't even have to do do a query, a

Re: [Qemu-devel] qemu seabios issue with vhost-scsi

2013-05-23 Thread Stefan Hajnoczi
On Thu, May 23, 2013 at 6:47 PM, Paolo Bonzini wrote: > Il 23/05/2013 18:38, Badari Pulavarty ha scritto: >>> If that is with the old SeaBIOS, then SIGABRT is intended. :) The guest >>> is buggy, the problem in QEMU only lies in _how_ it fails. >>> >>> Paolo >>> >>> >> >> I am confused now. Witho

Re: [Qemu-devel] [PATCH 00/30] Introduction of IOMMUs into the memory API

2013-05-23 Thread Peter Maydell
On 23 May 2013 18:08, Paolo Bonzini wrote: > BTW, if you give me your Tested-by it would be good, since most comments > have been cosmetic. I'd like to collect all of Peter's Reviewed-by from > the RFC and send a pull request next week. There's been at least one requested fix in code review, so

Re: [Qemu-devel] [PATCH 00/30] Introduction of IOMMUs into the memory API

2013-05-23 Thread Paolo Bonzini
Il 23/05/2013 19:25, Peter Maydell ha scritto: >> > BTW, if you give me your Tested-by it would be good, since most comments >> > have been cosmetic. I'd like to collect all of Peter's Reviewed-by from >> > the RFC and send a pull request next week. > There's been at least one requested fix in cod

Re: [Qemu-devel] qemu seabios issue with vhost-scsi

2013-05-23 Thread Paolo Bonzini
- Messaggio originale - > Da: "Stefan Hajnoczi" > A: "Paolo Bonzini" > Cc: "Badari Pulavarty" , "Asias He" , > "Nicholas A. Bellinger" > , "qemu-devel" , "Gleb Natapov" > > Inviato: Giovedì, 23 maggio 2013 19:18:26 > Oggetto: Re: qemu seabios issue with vhost-scsi > > On Thu, May 23

Re: [Qemu-devel] [PATCH 04/30] exec: eliminate stq_phys_notdirty

2013-05-23 Thread Peter Maydell
On 21 May 2013 11:57, Paolo Bonzini wrote: > It is not used anywhere. So does this get deleted just because it's not used, or because it gets in the way of patches later in the series. As far as I can tell the st*_phys_notdirty() are for TCG to update page table entries with accessed/modified bit

Re: [Qemu-devel] [PATCH 05/30] memory: assert that PhysPageEntry's ptr does not overflow

2013-05-23 Thread Peter Maydell
On 21 May 2013 11:57, Paolo Bonzini wrote: > While sized to 15 bits in PhysPageEntry, the ptr field is ORed into the > iotlb entries together with a page-aligned pointer. The ptr field must > not overflow into this page-aligned value, assert that it is smaller than > the page size. > > Signed-off

[Qemu-devel] [PATCH] target-mips: fix multiplication in mipsdsp_rndq15_mul_q15_q15

2013-05-23 Thread Petar Jovanovic
From: Petar Jovanovic Multiplication of Q15 fractional halfword vectors was incorrect in the previous implementation of mipsdsp_rndq15_mul_q15_q15. It failed to take element signs into account. This change fixes it, and it adds a test case for it. The change also removes unnecessary cast in the

[Qemu-devel] [PATCH 2/7] vnvram: VNVRAM in-memory support

2013-05-23 Thread Corey Bryant
Provides support for in-memory VNVRAM entries. The in-memory entries are used for fast access to entry data such as the current or max size of an entry and the disk offset where an entry's binary blob data is stored. Signed-off-by: Corey Bryant --- vnvram.c | 196 ++

[Qemu-devel] [PATCH 4/7] vnvram: VNVRAM internal APIs

2013-05-23 Thread Corey Bryant
Provides VNVRAM APIs that can be used by other areas of QEMU to provide persistent storage. Signed-off-by: Corey Bryant --- vnvram.c | 266 ++ vnvram.h | 14 +++ 2 files changed, 280 insertions(+), 0 deletions(-) diff --git a/vnvram

[Qemu-devel] [PATCH 0/7] VNVRAM persistent storage

2013-05-23 Thread Corey Bryant
This patch series provides VNVRAM persistent storage support that QEMU can use internally. The initial target user will be a software vTPM 1.2 backend that needs to store keys in VNVRAM and be able to reboot/migrate and retain the keys. This support uses QEMU's block driver to provide persistent

[Qemu-devel] [PATCH 3/7] vnvram: VNVRAM bottom-half r/w scheduling support

2013-05-23 Thread Corey Bryant
Provides support that schedules and executes VNVRAM read/write requests. A bottom-half is used to perform reads/writes from the QEMU main thread. Signed-off-by: Corey Bryant --- vnvram.c | 142 ++ 1 files changed, 142 insertions(+), 0

[Qemu-devel] [PATCH 5/7] vnvram: VNVRAM additional debug support

2013-05-23 Thread Corey Bryant
Provides debug support that dumps the disk and in-memory VNVRAM contents to stderr. Signed-off-by: Corey Bryant --- vnvram.c | 94 ++ 1 files changed, 94 insertions(+), 0 deletions(-) diff --git a/vnvram.c b/vnvram.c index 357923d..9

[Qemu-devel] [PATCH 6/7] main: Initialize VNVRAM

2013-05-23 Thread Corey Bryant
Signed-off-by: Corey Bryant --- vl.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/vl.c b/vl.c index 59dc0b4..5da88e6 100644 --- a/vl.c +++ b/vl.c @@ -171,6 +171,8 @@ int main(int argc, char **argv) #include "ui/qemu-spice.h" #include "qapi/string-input-visitor.h

[Qemu-devel] [PATCH 7/7] monitor: QMP/HMP support for retrieving VNVRAM details

2013-05-23 Thread Corey Bryant
Signed-off-by: Corey Bryant --- hmp.c| 32 hmp.h|1 + monitor.c|7 + qapi-schema.json | 47 +++ qmp-commands.hx | 41 +++ vnvram.c | 71 +++

[Qemu-devel] [PATCH 1/7] vnvram: VNVRAM bdrv support

2013-05-23 Thread Corey Bryant
Provides low-level VNVRAM functionality that reads and writes data, such as an entry's binary blob, to a drive image using the block driver. Signed-off-by: Corey Bryant --- Makefile.objs |2 + vnvram.c | 487 + vnvram.h | 2

Re: [Qemu-devel] [PATCH 06/30] memory: allow memory_region_find() to run on non-root memory regions

2013-05-23 Thread Peter Maydell
On 21 May 2013 11:57, Paolo Bonzini wrote: > memory_region_find() is similar to registering a MemoryListener and > checking for the MemoryRegionSections that come from a particular > region. There is no reason for this to be limited to a root memory > region. > > Signed-off-by: Paolo Bonzini > -

Re: [Qemu-devel] [PATCH 7/7] monitor: QMP/HMP support for retrieving VNVRAM details

2013-05-23 Thread Eric Blake
On 05/23/2013 11:44 AM, Corey Bryant wrote: > Signed-off-by: Corey Bryant > --- Might help to list a sample HMP or QMP usage in the commit message. > +++ b/qapi-schema.json > @@ -3619,3 +3619,50 @@ > '*cpuid-input-ecx': 'int', > 'cpuid-register': 'X86CPURegister32', >

Re: [Qemu-devel] [PATCH 0/7] VNVRAM persistent storage

2013-05-23 Thread Anthony Liguori
Corey Bryant writes: > This patch series provides VNVRAM persistent storage support that > QEMU can use internally. The initial target user will be a software > vTPM 1.2 backend that needs to store keys in VNVRAM and be able to > reboot/migrate and retain the keys. > > This support uses QEMU's b

Re: [Qemu-devel] [PATCH 15/30] memory: add address_space_valid

2013-05-23 Thread Peter Maydell
On 21 May 2013 11:57, Paolo Bonzini wrote: > +bool address_space_valid(AddressSpace *as, hwaddr addr, int len, bool > is_write) > +{ > +AddressSpaceDispatch *d = as->dispatch; > +MemoryRegionSection *section; > +int l; > +hwaddr page; > + > +while (len > 0) { > +page =

Re: [Qemu-devel] [PATCH 16/30] memory: clean up phys_page_find

2013-05-23 Thread Peter Maydell
On 21 May 2013 11:57, Paolo Bonzini wrote: > Remove the goto. > > Signed-off-by: Paolo Bonzini Reviewed-by: Peter Maydell -- PMM

Re: [Qemu-devel] [PATCH 17/30] memory: add address_space_translate

2013-05-23 Thread Peter Maydell
On 21 May 2013 11:57, Paolo Bonzini wrote: > Using phys_page_find to translate an AddressSpace to a MemoryRegionSection > is unwieldy. It requires to pass the page index rather than the address, > and later memory_region_section_addr has to be called. Replace > memory_region_section_addr with a

Re: [Qemu-devel] [PATCH 18/30] memory: add return value to address_space_rw/read/write

2013-05-23 Thread Peter Maydell
On 21 May 2013 11:57, Paolo Bonzini wrote: > Signed-off-by: Paolo Bonzini Reviewed-by: Peter Maydell -- PMM

Re: [Qemu-devel] [PATCH 19/30] memory: Introduce address_space_lookup_region

2013-05-23 Thread Peter Maydell
On 21 May 2013 11:57, Paolo Bonzini wrote: > From: Jan Kiszka > > This introduces a wrapper for phys_page_find (before we complicate > address_space_translate with IOMMU translation). This function will > also encapsulate locking and reference counting when we introduce > BQL-free dispatching. >

[Qemu-devel] [PULL 00/12] QMP queue

2013-05-23 Thread Luiz Capitulino
The changes (since 95de21a430f7bc4166a153b1f69b1425c8a99c7b) are available in the following repository: git://repo.or.cz/qemu/qmp-unstable.git queue/qmp Amos Kong (1): ui/input.c: replace magic numbers with macros Luiz Capitulino (1): monitor: allow to disable the default monitor Michae

[Qemu-devel] [PULL 02/12] qapi: qapi-visit.py, fix list handling for union types

2013-05-23 Thread Luiz Capitulino
From: Michael Roth Currently we assume non-list types when generating visitor routines for union types. This is broken, since values like ['Type'] need to mapped to 'TypeList'. We already have a type_name() function to handle this that we use for generating struct visitors, so use that here as w

[Qemu-devel] [PULL 01/12] qapi: qapi-types.py, native list support

2013-05-23 Thread Luiz Capitulino
From: Michael Roth Teach type generators about native types so they can generate the appropriate linked list types. Signed-off-by: Michael Roth Reviewed-by: Laszlo Ersek Reviewed-by: Amos Kong Signed-off-by: Luiz Capitulino --- scripts/qapi-types.py | 45

[Qemu-devel] [PULL 08/12] qapi: add native list coverage for visitor serialization tests

2013-05-23 Thread Luiz Capitulino
From: Michael Roth Signed-off-by: Michael Roth Reviewed-by: Laszlo Ersek Reviewed-by: Amos Kong Signed-off-by: Luiz Capitulino --- tests/test-visitor-serialization.c | 451 +++-- 1 file changed, 433 insertions(+), 18 deletions(-) diff --git a/tests/test-visit

[Qemu-devel] [PULL 03/12] qapi: qapi-visit.py, native list support

2013-05-23 Thread Luiz Capitulino
From: Michael Roth Teach visitor generators about native types so they can generate the appropriate visitor routines. Signed-off-by: Michael Roth Reviewed-by: Laszlo Ersek Reviewed-by: Amos Kong Signed-off-by: Luiz Capitulino --- scripts/qapi-visit.py | 34 +-

[Qemu-devel] [PULL 06/12] qapi: add QMP input test for large integers

2013-05-23 Thread Luiz Capitulino
From: Michael Roth Large integers previously got capped to LLONG_MAX/LLONG_MIN so we could store them as int64_t. This could lead to silent errors occuring. Now, we use a double to handle these cases. Add a test to confirm that QMPInputVisitor handles this as expected if we're expected an integ

[Qemu-devel] [PULL 10/12] qapi: add native list coverage for QMP input visitor tests

2013-05-23 Thread Luiz Capitulino
From: Michael Roth This exercises schema-generated visitors for native list types and does some sanity checking on validity of deserialized data. Signed-off-by: Michael Roth Reviewed-by: Laszlo Ersek Reviewed-by: Amos Kong Signed-off-by: Luiz Capitulino --- tests/test-qmp-input-visitor.c |

<    1   2   3   >