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

2013-05-23 Thread Amos Kong
On Tue, May 21, 2013 at 11:51:17AM +0300, Michael S. Tsirkin wrote: On Tue, May 21, 2013 at 01:04:55PM +0800, Amos Kong wrote: snip +event_data = qobject_from_jsonf({ 'name': %s }, n-netclient_name); +monitor_protocol_event(QEVENT_MAC_TABLE_CHANGED, event_data); +

Re: [Qemu-devel] [PATCH v3 1/3] debugcon: fix always print addr=0x0, val=0x0 bug

2013-05-23 Thread Markus Armbruster
Cc'ing qemu-trivial. liguang lig.f...@cn.fujitsu.com writes: when use DEBUG_DEBUGCON, screen spits: debugcon: write addr=0x val=0x00 Rdebugcon: write addr=0x val=0x00 udebugcon: write addr=0x val=0x00 ndebugcon: write addr=0x val=0x00 ndebugcon: write addr=0x val=0x00

Re: [Qemu-devel] [PATCH v3 1/3] debugcon: fix always print addr=0x0, val=0x0 bug

2013-05-23 Thread li guang
在 2013-05-23四的 08:25 +0200,Markus Armbruster写道: Cc'ing qemu-trivial. liguang lig.f...@cn.fujitsu.com writes: when use DEBUG_DEBUGCON, screen spits: debugcon: write addr=0x val=0x00 Rdebugcon: write addr=0x val=0x00 udebugcon: write addr=0x val=0x00 ndebugcon: write

[Qemu-devel] [PATCH][v4 1/3] debugcon: fix always print addr=0x0, val=0x0 bug

2013-05-23 Thread liguang
when use DEBUG_DEBUGCON, screen spits: debugcon: write addr=0x val=0x00 Rdebugcon: write addr=0x val=0x00 udebugcon: write addr=0x val=0x00 ndebugcon: write addr=0x val=0x00 ndebugcon: write addr=0x val=0x00 idebugcon: write addr=0x val=0x00 ndebugcon: write addr=0x

[Qemu-devel] [PATCH][v4 1/3] debugcon: fix always print addr=0x0, val=0x0 bug when use DEBUG_DEBUGCON

2013-05-23 Thread liguang
when use DEBUG_DEBUGCON, screen spits: debugcon: write addr=0x val=0x00 Rdebugcon: write addr=0x val=0x00 udebugcon: write addr=0x val=0x00 ndebugcon: write addr=0x val=0x00 ndebugcon: write addr=0x val=0x00 idebugcon: write addr=0x val=0x00 ndebugcon: write addr=0x

[Qemu-devel] [PATCH][v4 2/3] debugcon: make debug message more readable

2013-05-23 Thread liguang
before change: Bdebugcon: write addr=0x val=0x6f odebugcon: write addr=0x val=0x6f odebugcon: write addr=0x val=0x74 tdebugcon: write addr=0x val=0x69 idebugcon: write addr=0x val=0x6e ndebugcon: write addr=0x val=0x67 gdebugcon: write addr=0x val=0x20 debugcon: write

[Qemu-devel] [PATCH][v4 3/3] debugcon: fix compiler warning when open DEBUG_DEBUGCON

2013-05-23 Thread liguang
compiler warnings: CChw/char/debugcon.o hw/char/debugcon.c: In function ‘debugcon_ioport_write’: hw/char/debugcon.c:58: warning: format ‘%02x’ expects type ‘unsigned int’, but argument 3 has type ‘uint64_t’ hw/char/debugcon.c: In function ‘debugcon_ioport_read’: hw/char/debugcon.c:70:

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

2013-05-23 Thread liu ping fan
On Tue, May 21, 2013 at 6:57 PM, Paolo Bonzini pbonz...@redhat.com 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

Re: [Qemu-devel] [PATCH] kvm: add detail error message when fail to add ioeventfd

2013-05-23 Thread Stefan Hajnoczi
On Wed, May 22, 2013 at 09:48:21PM +0800, Amos Kong wrote: On Wed, May 22, 2013 at 11:32:27AM +0200, Stefan Hajnoczi wrote: On Wed, May 22, 2013 at 12:57:35PM +0800, Amos Kong wrote: I try to hotplug 28 * 8 multiple-function devices to guest with old host kernel, ioeventfds in host kernel

Re: [Qemu-devel] [RFC] block-trace Low Level Command Supporting Disk Introspection

2013-05-23 Thread Stefan Hajnoczi
On Wed, May 22, 2013 at 11:46:15PM +0200, Paolo Bonzini wrote: Il 22/05/2013 22:47, Richard W.M. Jones ha scritto: I meant if there was interest in reading from a disk that isn't fully synchronized (yet) to the original disk (it might have old blocks). Or would you only want to

Re: [Qemu-devel] [PATCH v3 0/8] block: drive-backup live backup command

2013-05-23 Thread Stefan Hajnoczi
On Wed, May 22, 2013 at 03:34:18PM +, Dietmar Maurer wrote: That sounds like more work than a persistent dirty bitmap. The advantage is that while dirty bitmaps are consumed by a single user, the Merkle tree can be used to sync up any number of replicas. I also consider it

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

2013-05-23 Thread Claudio Fontana
This series implements preliminary support for the ARM aarch64 TCG target. Limitations of this initial implementation (TODOs) include: * missing TLB lookup in qemu_ld/st [C helpers always called]. An incremental patch, which requires this series, is coming up from teammate Jani Kokkonen

Re: [Qemu-devel] [PATCH v3 0/8] block: drive-backup live backup command

2013-05-23 Thread Dietmar Maurer
I also consider it safer, because you make sure the data exists (using hash keys like SHA1). I am unsure how you can check if a dirty bitmap contains errors, or is out of date? Also, you can compare arbitrary Merkle trees, whereas a dirty bitmap is always related to a single

[Qemu-devel] [PATCH 1/4] include/elf.h: add aarch64 ELF machine and relocs

2013-05-23 Thread Claudio Fontana
we will use the 26bit relative relocs in the aarch64 tcg target. Signed-off-by: Claudio Fontana claudio.font...@huawei.com --- include/elf.h | 129 ++ 1 file changed, 129 insertions(+) diff --git a/include/elf.h b/include/elf.h index

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

2013-05-23 Thread Richard W.M. Jones
v5 tested and works for me. Attached is the test script I'm using. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into KVM guests.

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

2013-05-23 Thread Kevin Wolf
Am 22.05.2013 um 18:14 hat Anthony Liguori geschrieben: Kevin Wolf kw...@redhat.com writes: Am 22.05.2013 um 15:40 hat Amos Kong geschrieben: Hi all, We already have query-command-line-options to query details of command-line options. As we discussed in the list, we also need full

[Qemu-devel] [PATCH 3/4] configure: permit compilation on arm aarch64

2013-05-23 Thread Claudio Fontana
support compiling on aarch64. Signed-off-by: Claudio Fontana claudio.font...@huawei.com --- configure | 8 1 file changed, 8 insertions(+) diff --git a/configure b/configure index 9439f1c..9cc398c 100755 --- a/configure +++ b/configure @@ -384,6 +384,8 @@ elif check_define __s390__ ;

[Qemu-devel] [PATCH 4/4] tcg/aarch64: more ops in preparation of tlb lookup

2013-05-23 Thread Claudio Fontana
add SUBS to the arithmetic instructions and add a shift parameter to all arithmetic instructions, so we can make use of shifted registers. Signed-off-by: Claudio Fontana claudio.font...@huawei.com --- tcg/aarch64/tcg-target.c | 36 +++- 1 file changed, 27

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

2013-05-23 Thread Claudio Fontana
add preliminary support for TCG target aarch64. Signed-off-by: Claudio Fontana claudio.font...@huawei.com --- include/exec/exec-all.h |5 +- tcg/aarch64/tcg-target.c | 1185 ++ tcg/aarch64/tcg-target.h | 99 translate-all.c |2

Re: [Qemu-devel] [PATCH] hw/9pfs: Use O_NOFOLLOW when opening files on server

2013-05-23 Thread Aneesh Kumar K.V
Stefan Hajnoczi stefa...@gmail.com writes: On Wed, May 22, 2013 at 04:52:54PM +0530, Aneesh Kumar K.V wrote: diff --git a/hw/9pfs/virtio-9p-handle.c b/hw/9pfs/virtio-9p-handle.c index fe8e0ed..e2a89e3 100644 --- a/hw/9pfs/virtio-9p-handle.c +++ b/hw/9pfs/virtio-9p-handle.c @@ -608,7 +608,7

[Qemu-devel] [PATCH 3/5] memory: do not assign node_mem[] to 0 twice

2013-05-23 Thread Wanlong Gao
We already assigned node_mem[] to 0 before add numa, so it's unnecessary to assign twice. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- vl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/vl.c b/vl.c index ce24bcd..b1d 100644 --- a/vl.c +++ b/vl.c @@

[Qemu-devel] [PATCH 4/5] Add qemu_mbind interface for pinning memory to host node

2013-05-23 Thread Wanlong Gao
Add qemu_mbind() interface for pinning memory to host node manually. Use the mbind() syscall wrapper which defined in libnuma. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- configure| 18 ++ include/qemu/osdep.h | 26 ++ util/osdep.c

[Qemu-devel] [PATCH 2/5] memory: check if the total numa memory size is equal to ram_size

2013-05-23 Thread Wanlong Gao
If the total number of the assigned numa nodes memory is not equal to the assigned total ram size, the guest will recognize all memory to one node. eg: -m 1024 -smp sockets=2,cores=1,threads=1 -numa node,cpus=0,nodeid=0,mem=512 \ -numa node,nodeid=1,cpus=1,mem=256 (qemu) info numa 2 nodes node 0

[Qemu-devel] [PATCH V2 0/5] qapi and snapshot code clean up in block layer

2013-05-23 Thread Wenchao Xia
These patches are the common part of my hmp/qmp block query series and Pavel's qmp snapshot command converion series. It mainly does following things: 1 move snapshot related code to block/snapshot.c, qmp and info dumping code to block/qapi.c. 2 better info dumping function to get rid of buffer,

[Qemu-devel] [PATCH V2 3/5] block: move qmp and info dump related code to block/qapi.c

2013-05-23 Thread Wenchao Xia
This patch is a pure code move patch, except following modification: 1 get_human_readable_size() is changed to static function. 2 dump_human_image_info() is renamed to bdrv_image_info_dump(). 3 in qmp_query_block() and qmp_query_blockstats, use bdrv_next(bs) instead of direct traverse of global

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

2013-05-23 Thread Wenchao Xia
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 xiaw...@linux.vnet.ibm.com --- include/qemu/error-report.h |

[Qemu-devel] [PATCH 5/5] memory: able to pin guest node memory to host node manually

2013-05-23 Thread Wanlong Gao
Use mbind to pin guest numa node memory to host nodes manually. If we are not able to pin memory to host node, we may meet the cross node memory access performance regression. With this patch, we can add manual pinning host node like this: -m 1024 -numa node,cpus=0,nodeid=0,mem=512,pin=0 -numa

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

2013-05-23 Thread Wenchao Xia
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 xiaw...@linux.vnet.ibm.com --- block/qapi.c | 65 +++---

[Qemu-devel] updated: kvm networking todo wiki

2013-05-23 Thread Michael S. Tsirkin
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, but also in the hope to draw attention to what I

[Qemu-devel] [PATCH V2 1/5] block: drop bs_snapshots global variable

2013-05-23 Thread Wenchao Xia
From: Stefan Hajnoczi stefa...@redhat.com The bs_snapshots global variable points to the BlockDriverState which will be used to save vmstate. This is really a savevm.c concept but was moved into block.c:bdrv_snapshots() when it became clear that hotplug could result in a dangling pointer. While

Re: [Qemu-devel] [PATCH 1/2] target-i386/seg_helper: refactor 4 helper functions

2013-05-23 Thread li guang
ping ... again. 在 2013-04-22一的 11:44 +0800,liguang写道: for helper_{lsl, lar, verr, verw}, there are common parts, so move them outside, and then call this new helper-helper function. Signed-off-by: liguang lig.f...@cn.fujitsu.com --- target-i386/seg_helper.c | 179

[Qemu-devel] [PATCH v3 0/2] mac programming over macvtap

2013-05-23 Thread Amos Kong
This patchset introduces a QMP event and a monitor command. The event is used to notify management when rx-filter configuration is changed by guest. Management can use the new monitor command to query rx-filter information, and sync the changes to macvtap devices. There maybe exist an

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

2013-05-23 Thread Amos Kong
Introduce this new QMP event to notify management after guest changes rx-filter configuration. Signed-off-by: Amos Kong ak...@redhat.com --- QMP/qmp-events.txt| 14 ++ include/monitor/monitor.h | 1 + monitor.c | 1 + 3 files changed, 16 insertions(+) diff

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

2013-05-23 Thread Amos Kong
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 patch adds a monitor command to query rx-filter information. A

[Qemu-devel] [PATCH 1/5] pci-assign: remove the duplicate function name in debug message

2013-05-23 Thread Wanlong Gao
While DEBUG() already includes the function name. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com Acked-by: Alex Williamson alex.william...@redhat.com --- hw/i386/kvm/pci-assign.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hw/i386/kvm/pci-assign.c

[Qemu-devel] use O_DIRECT to open disk images for IDE failed under xen-4.1.2 and qemu upstream

2013-05-23 Thread Gonglei (Arei)
Hi, all I use O_DIRECT to open disk images for IDE, but I'm failed. After debug, I get the below logs: [2013-05-22 23:25:46] ide: CMD=c8 [2013-05-22 23:25:46] bmdma: readb 0x00 : 0x08 [2013-05-22 23:25:46] bmdma: writeb 0x00 : 0x09 [2013-05-22 23:25:46] bmdma_cmd_writeb: 0x0009 [2013-05-22

[Qemu-devel] [PATCH V2 2/5] block: move snapshot code in block.c to block/snapshot.c

2013-05-23 Thread Wenchao Xia
All snapshot related code, except bdrv_snapshot_dump(), is moved to block/snapshot.c. bdrv_snapshot_dump() will be moved to another file later. It also fixes small code style errors reported by check script. Signed-off-by: Wenchao Xia xiaw...@linux.vnet.ibm.com Reviewed-by: Eric Blake

Re: [Qemu-devel] [PATCH 1/2] target-i386/seg_helper: refactor 4 helper functions

2013-05-23 Thread Peter Maydell
On 23 May 2013 09:35, li guang lig.f...@cn.fujitsu.com wrote: ping ... again. misc_check_helper is still a terrible function name. -- PMM

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

2013-05-23 Thread Gleb Natapov
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 disable scsi support in seabios to get it working. I was hoping

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

2013-05-23 Thread Paolo Bonzini
Il 23/05/2013 09:09, liu ping fan ha scritto: void address_space_rw(AddressSpace *as, hwaddr addr, uint8_t *buf, int len, bool is_write) { -AddressSpaceDispatch *d = as-dispatch; -int l; +hwaddr l; uint8_t *ptr; uint32_t val; -

Re: [Qemu-devel] [PATCH qom-cpu 4/4] memory_mapping: Move stubs to libqemustub.a

2013-05-23 Thread Paolo Bonzini
Il 22/05/2013 15:09, Andreas Färber ha scritto: Allows us to drop CONFIG_NO_GET_MEMORY_MAPPING with its indirect dependency on CONFIG_HAVE_GET_MEMORY_MAPPING in Makefile.target. Signed-off-by: Andreas Färber afaer...@suse.de --- Makefile.target | 2 --

Re: [Qemu-devel] segfault in aio_bh_poll async.c:80 WAS: Re: kvm process disappears

2013-05-23 Thread Paolo Bonzini
Il 22/05/2013 14:24, Stefan Priebe - Profihost AG ha scritto: Am 22.05.2013 um 10:41 schrieb Paolo Bonzini pbonz...@redhat.com: Il 22/05/2013 08:26, Stefan Priebe - Profihost AG ha scritto: Hi, as i can't reproduce no ;-( i just saw the kernel segfault message and used addr2line and a qemu

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

2013-05-23 Thread Michael S. Tsirkin
On Thu, May 23, 2013 at 05:08:00PM +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

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 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 ak...@redhat.com --- QMP/qmp-events.txt| 14 ++ include/monitor/monitor.h | 1 +

Re: [Qemu-devel] [PATCH arm-devs v1 1/5] sd/sd.c: Fix inquiry ACMD41

2013-05-23 Thread Igor Mitsyanko
On 05/23/2013 03:42 AM, Peter Crosthwaite wrote: Hi Igor, On Wed, May 22, 2013 at 11:37 PM, Igor Mitsyanko i.mitsya...@gmail.com wrote: On 05/21/2013 10:50 AM, peter.crosthwa...@xilinx.com wrote: From: Peter Crosthwaite peter.crosthwa...@xilinx.com the SD command ACMD41 can be used in a

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

2013-05-23 Thread Michael S. Tsirkin
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. But since host buses are always registered with domain 0, this just amounts to finding the only PCI host bus. This simplifies the

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

2013-05-23 Thread Laszlo Ersek
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. This feature is called `auto-recovery' (See

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 09, 2013 at 10:31:09AM +1000, David Gibson wrote: 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

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

2013-05-23 Thread Michael S. Tsirkin
On Thu, May 09, 2013 at 10:31:05AM +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/8] Clean up PCI code to allow for multiple root buses

2013-05-23 Thread Michael S. Tsirkin
On Thu, May 09, 2013 at 10:31:04AM +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

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

2013-05-23 Thread Michael S. Tsirkin
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. But since host buses are always registered with domain 0, this just amounts to finding the only PCI host bus. This simplifies the

Re: [Qemu-devel] [PATCH v2] wdt_i6300esb: fix vmstate versioning

2013-05-23 Thread Amit Shah
On (Wed) 22 May 2013 [11:32:51], Michael Roth wrote: When this VMSD was introduced it's version fields were set to sizeof(I6300State), making them essentially random from build to build, version to version. To fix this, we lock in a high version id and low minimum version id to support

Re: [Qemu-devel] [PATCH 3/8] pci: Abolish pci_find_root_bus()

2013-05-23 Thread Michael S. Tsirkin
On Thu, May 09, 2013 at 10:31:07AM +1000, David Gibson wrote: 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

Re: [Qemu-devel] [PATCH] wdt_i6300esb: fix vmstate versioning

2013-05-23 Thread Amit Shah
On (Tue) 21 May 2013 [17:32:57], Michael Roth wrote: When this VMSD was introduced it's version fields were set to sizeof(I6300State), making them essentially random from build to build, version to version. To fix this, we lock in a high version id and low minimum version id to support

[Qemu-devel] [PATCH] s390/ipl: Fix spurious errors in virtio

2013-05-23 Thread Christian Borntraeger
With the ccw ipl code sometimes an error message like virtio: trying to map MMIO memory or Guest moved used index from %u to %u appeared. Turns out that the ccw bios did not zero out the vring, which might cause stale values in avail-idx and friends, especially on reboot. Lets zero out the

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

2013-05-23 Thread Stefan Hajnoczi
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 to parse certain data structures just into QDicts instead of C

Re: [Qemu-devel] [PATCH 0/2] coroutine: dataplane support

2013-05-23 Thread Stefan Hajnoczi
On Fri, May 17, 2013 at 03:51:24PM +0200, Stefan Hajnoczi wrote: There is ongoing work to enable multiple event loop threads. This will allow QEMU itself to take advantage of SMP and reduce Big QEMU Lock (BQL) contention. This series is one step in that effort. These patches make

Re: [Qemu-devel] [Bug 1182490] [NEW] [qemu-1.5] coroutine-win32.c broken on NULL pointer

2013-05-23 Thread Stefan Hajnoczi
On Tue, May 21, 2013 at 02:11:05PM -, Cauchy Song wrote: Public bug reported: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 4340.0x163c] qemu_coroutine_switch (action=COROUTINE_TERMINATE, to_=0x0, from_=0x3ba1c80) at

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

2013-05-23 Thread Anthony Liguori
Kevin Wolf kw...@redhat.com writes: Am 22.05.2013 um 18:14 hat Anthony Liguori geschrieben: Kevin Wolf kw...@redhat.com writes: For example, libvirt wants to query which block drivers it can use. It doesn't really matter for which drivers we had the source initially, but only which

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

2013-05-23 Thread Eric Blake
On 05/23/2013 03:07 AM, Amos Kong wrote: Introduce this new QMP event to notify management after guest changes rx-filter configuration. Signed-off-by: Amos Kong ak...@redhat.com --- QMP/qmp-events.txt| 14 ++ include/monitor/monitor.h | 1 + monitor.c

Re: [Qemu-devel] [RFC PATCH v3 02/11] Fix errors and warnings while compiling with c++ compilier

2013-05-23 Thread Stefan Hajnoczi
On Tue, May 21, 2013 at 11:33:41AM -0400, Tomoki Sekiyama wrote: 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 tomoki.sekiy...@hds.com --- hmp.c |2 +- hw/pci/pci.c

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

2013-05-23 Thread Eric Blake
On 05/23/2013 03:08 AM, 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 patch adds a monitor

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

2013-05-23 Thread Stefan Hajnoczi
On Tue, May 21, 2013 at 11:33:33AM -0400, Tomoki Sekiyama wrote: * How to build run qemu-ga with VSS support - Download Microsoft VSS SDK from: http://www.microsoft.com/en-us/download/details.aspx?id=23490 - Setup the SDK scripts/extract-vsssdk-headers setup.exe (on

[Qemu-devel] ANNOUNCE: libguestfs 1.22 has been released

2013-05-23 Thread Richard W.M. Jones
I'm pleased to announce the next stable release of libguestfs (1.22). libguestfs is a set of tools for accessing and modifying virtual machine disk images. http://libguestfs.org/ This release represents 5 months of development and has many significant new features including: - access remote

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

2013-05-23 Thread Peter Maydell
Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- target-arm/translate.c | 46 -- 1 file changed, 28 insertions(+), 18 deletions(-) diff --git a/target-arm/translate.c b/target-arm/translate.c index 7ce9a1c..057b180 100644 ---

[Qemu-devel] [PATCH 00/10] target-arm: fix TCGv usage (AArch64 prep)

2013-05-23 Thread Peter Maydell
This patch series is preparatory cleanup for the impending AArch64 support. Patch 1 replaces all the uses of TCGv, tcg_temp_new(), etc in the current 32 bit ARM decoder with the specifically-TCGv_i32 versions. This is necessary for supporting a 64-bit core, which will have TARGET_LONG_BITS==64

[Qemu-devel] [PATCH 05/10] target-arm: Remove use of gen_{ld, st}* from ldrex/strex

2013-05-23 Thread Peter Maydell
Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- target-arm/translate.c | 31 ++- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/target-arm/translate.c b/target-arm/translate.c index 057b180..3899d0a 100644 --- a/target-arm/translate.c +++

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

2013-05-23 Thread Peter Maydell
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 width of a virtual address values, but mostly in the

[Qemu-devel] [PATCH 06/10] target-arm: Remove gen_{ld, st}* from basic ARM insns

2013-05-23 Thread Peter Maydell
Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- target-arm/translate.c | 101 +--- 1 file changed, 69 insertions(+), 32 deletions(-) diff --git a/target-arm/translate.c b/target-arm/translate.c index 3899d0a..e5a2e4c 100644 ---

[Qemu-devel] [PATCH 07/10] target-arm: Remove gen_{ld, st}* from Thumb insns

2013-05-23 Thread Peter Maydell
Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- target-arm/translate.c | 71 +++- 1 file changed, 46 insertions(+), 25 deletions(-) diff --git a/target-arm/translate.c b/target-arm/translate.c index e5a2e4c..953c5fb 100644 ---

[Qemu-devel] [PATCH 08/10] target-arm: Remove gen_{ld, st}* from thumb2 decoder

2013-05-23 Thread Peter Maydell
Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- target-arm/translate.c | 30 -- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/target-arm/translate.c b/target-arm/translate.c index 953c5fb..0ca68fe 100644 --- a/target-arm/translate.c +++

Re: [Qemu-devel] [RFC PATCH v3 11/11] QMP/qmp.py: set locale for exceptions to display non-ascii messages correctly

2013-05-23 Thread Stefan Hajnoczi
On Tue, May 21, 2013 at 11:34:16AM -0400, Tomoki Sekiyama wrote: qemu-ga in Windows may return error message with multibyte characters when the guest OS language is set to other than English. To display such messages correctly, this encodes the message based on the locale settings.

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

2013-05-23 Thread Peter Maydell
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 have a place to put the zero extension of the vaddr

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

2013-05-23 Thread Peter Maydell
gen_ld64() and gen_st64() are used only in one place, so just expand them out. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- target-arm/translate.c | 19 --- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/target-arm/translate.c

[Qemu-devel] Designing QMP APIs at KVM Forum

2013-05-23 Thread Stefan Hajnoczi
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 QMP APIs. There are design rules for keeping QMP APIs extensible and for allowing clients to detect the presence of

Re: [Qemu-devel] use O_DIRECT to open disk images for IDE failed under xen-4.1.2 and qemu upstream

2013-05-23 Thread Stefano Stabellini
On Thu, 23 May 2013, Gonglei (Arei) wrote: Hi, all I use O_DIRECT to open disk images for IDE, but I'm failed. After debug, I get the below logs: [2013-05-22 23:25:46] ide: CMD=c8 [2013-05-22 23:25:46] bmdma: readb 0x00 : 0x08 [2013-05-22 23:25:46] bmdma: writeb 0x00 : 0x09 [2013-05-22

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

2013-05-23 Thread Andreas Färber
Hi, Am 23.05.2013 10:09, schrieb Claudio Fontana: This series implements preliminary support for the ARM aarch64 TCG target. [snip] Generally, please post patch series without --in-reply-to= and use --subject-prefix=PATCH v2 etc. plus a change log in the cover letter to distinguish

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

2013-05-23 Thread Luiz Capitulino
On Thu, 23 May 2013 07:08:59 -0500 Anthony Liguori aligu...@us.ibm.com wrote: then we don't need introspection at all. There's no user for it then. Introspection is not the right approach to feature discovery. The schema does answer the question of what features are enabled, it just

[Qemu-devel] KVM call agenda for 2013-05-28

2013-05-23 Thread Michael S. Tsirkin
Juan is not available now, and Anthony asked for agenda to be sent early. So here comes: Agenda for the meeting Tue, May 28: - Generating acpi tables - Switching the call to a bi-weekly schedule Please, send any topic that you are interested in covering. Thanks, MST -- MST

[Qemu-devel] [PATCH 09/10] target-arm: Remove gen_{ld, st}* definitions

2013-05-23 Thread Peter Maydell
All the uses of the gen_{ld,st}* functions are gone now, so remove the functions themselves. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- target-arm/translate.c | 46 -- 1 file changed, 46 deletions(-) diff --git

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

2013-05-23 Thread Stefan Hajnoczi
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 disable scsi support in seabios to get it working. I was hoping this issue got resolved when vhost-scsi support got merged into

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

2013-05-23 Thread Peter Maydell
Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- target-arm/translate.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/target-arm/translate.c b/target-arm/translate.c index 8e46527..7ce9a1c 100644 --- a/target-arm/translate.c +++

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

2013-05-23 Thread Luiz Capitulino
On Thu, 23 May 2013 13:51:22 +0200 Stefan Hajnoczi stefa...@gmail.com 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 QMP APIs. There are design rules for

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

2013-05-23 Thread Peter Maydell
On 23 May 2013 13:37, Andreas Färber afaer...@suse.de wrote: If Big Endian targets are not yet supported, should this rather be an RFC? Or is that just about some unimplemented opcodes? I'm happy for us to wait until an actual big-endian system running Linux appears before we worry about it.

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

2013-05-23 Thread Anthony Liguori
Luiz Capitulino lcapitul...@redhat.com writes: On Thu, 23 May 2013 07:08:59 -0500 Anthony Liguori aligu...@us.ibm.com wrote: then we don't need introspection at all. There's no user for it then. Introspection is not the right approach to feature discovery. The schema does answer the

Re: [Qemu-devel] [Bug 1182490] [NEW] [qemu-1.5] coroutine-win32.c broken on NULL pointer

2013-05-23 Thread Dongsheng Song
Use rootfs download from https://i18n-zh.googlecode.com/files/armhf_wheezy_qemu_20130518.7z SET PATH=E:\opt\qemu-1.5.0-win64 SET QEMU_LD_PREFIX=E:\opt\qemu-1.5.0-win64 cd E:\var\tmp\armhf_wheezy_qemu E:\var\tmp\armhf_wheezy_qemuqemu-system-arm -M vexpress-a9 -cpu cortex-a9 -m 512 -uuid

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

2013-05-23 Thread Kevin Wolf
Am 23.05.2013 um 14:08 hat Anthony Liguori geschrieben: Kevin Wolf kw...@redhat.com writes: Am 22.05.2013 um 18:14 hat Anthony Liguori geschrieben: Kevin Wolf kw...@redhat.com writes: For example, libvirt wants to query which block drivers it can use. It doesn't really matter for

Re: [Qemu-devel] [Bug 1182490] [NEW] [qemu-1.5] coroutine-win32.c broken on NULL pointer

2013-05-23 Thread Dongsheng Song
When I use qemu 1.4, it running smoothly: SET PATH=E:\opt\qemu-1.4.1-win64 SET QEMU_LD_PREFIX=E:\opt\qemu-1.4.1-win64 E:\var\tmp\armhf_wheezy_qemuqemu-system-arm -M vexpress-a9 -cpu cortex-a9 -m 512 -uuid e04ec652-8bed-11e2-86b9-000c290c10de -drive file=armhf_wheezy.img,if=sd,cache=writeback

Re: [Qemu-devel] [RFC PATCH v3 05/11] qemu-ga: Add Windows VSS provider to quiesce applications on fsfreeze

2013-05-23 Thread Stefan Hajnoczi
On Tue, May 21, 2013 at 11:33:52AM -0400, Tomoki Sekiyama wrote: Implements a basic stub of software VSS provider. Currently, this modules 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

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

2013-05-23 Thread Eric Blake
On 05/22/2013 07:40 AM, Amos Kong wrote: Hi all, We already have query-command-line-options to query details of command-line options. As we discussed in the list, we also need full introspection of QMP (command). The qmp-events also need to be dumped, we can define events in

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

2013-05-23 Thread Andreas Färber
Am 23.05.2013 14:50, schrieb Peter Maydell: On 23 May 2013 13:37, Andreas Färber afaer...@suse.de wrote: If Big Endian targets are not yet supported, should this rather be an RFC? Or is that just about some unimplemented opcodes? I'm happy for us to wait until an actual big-endian system

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

2013-05-23 Thread Peter Maydell
On 23 May 2013 13:53, Andreas Färber afaer...@suse.de 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 targets (ppc, sparc, etc.), not about Big

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

2013-05-23 Thread David Gibson
On Thu, May 23, 2013 at 02:11:35PM +0300, Michael S. Tsirkin wrote: On Thu, May 09, 2013 at 10:31:05AM +1000, David Gibson wrote: [snip] diff --git a/hw/pci/pci-hotplug-old.c b/hw/pci/pci-hotplug-old.c new file mode 100644 index 000..724a80b --- /dev/null +++

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

2013-05-23 Thread David Gibson
On Thu, May 23, 2013 at 02:04:08PM +0300, Michael S. Tsirkin wrote: On Thu, May 09, 2013 at 10:31:09AM +1000, David Gibson wrote: 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

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

2013-05-23 Thread David Gibson
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 dispatch tree. I don't love the name -

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

2013-05-23 Thread David Gibson
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. But since host buses are always registered with domain 0, this just

Re: [Qemu-devel] [PATCH][v4 2/3] debugcon: make debug message more readable

2013-05-23 Thread Andreas Färber
Am 23.05.2013 08:58, schrieb liguang: before change: Bdebugcon: write addr=0x val=0x6f odebugcon: write addr=0x val=0x6f odebugcon: write addr=0x val=0x74 tdebugcon: write addr=0x val=0x69 idebugcon: write addr=0x val=0x6e ndebugcon: write addr=0x val=0x67

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

2013-05-23 Thread liu ping fan
On Thu, May 23, 2013 at 5:59 PM, Paolo Bonzini pbonz...@redhat.com wrote: Il 23/05/2013 09:09, liu ping fan ha scritto: void address_space_rw(AddressSpace *as, hwaddr addr, uint8_t *buf, int len, bool is_write) { -AddressSpaceDispatch *d = as-dispatch; -

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

2013-05-23 Thread David Gibson
On Thu, May 23, 2013 at 02:22:30PM +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. But since host buses are always registered with domain 0, this just

Re: [Qemu-devel] [PATCH][v4 1/3] debugcon: fix always print addr=0x0, val=0x0 bug when use DEBUG_DEBUGCON

2013-05-23 Thread Andreas Färber
Am 23.05.2013 08:58, schrieb liguang: when use DEBUG_DEBUGCON, screen spits: debugcon: write addr=0x val=0x00 Rdebugcon: write addr=0x val=0x00 udebugcon: write addr=0x val=0x00 ndebugcon: write addr=0x val=0x00 ndebugcon: write addr=0x val=0x00 idebugcon: write

  1   2   3   >