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

[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: warnin

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 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_a

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 hos

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 o

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 consi

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

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 > re

[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 --- include/elf.h | 129 ++ 1 file changed, 129 insertions(+) diff --git a/include/elf.h b/include/elf.h index a21ea53..cf0d3e2 100644 --- a/i

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

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 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 int

[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 --- 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__ ; then fi elif check_defi

[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 --- tcg/aarch64/tcg-target.c | 36 +++- 1 file changed, 27 insertions(+), 9 deletions(-) dif

[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 --- include/exec/exec-all.h |5 +- tcg/aarch64/tcg-target.c | 1185 ++ tcg/aarch64/tcg-target.h | 99 translate-all.c |2 + 4 files changed, 1290 i

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

2013-05-23 Thread Aneesh Kumar K.V
Stefan Hajnoczi 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 @@ stati

[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 --- 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 @@ -1381,9 +1381,7 @@ static void n

[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 --- configure| 18 ++ include/qemu/osdep.h | 26 ++ util/osdep.c | 15

[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, av

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

[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 --- include/qemu/error-report.h | 13 + util/qem

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

[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 --- block/qapi.c | 65 +++--- include/block/qapi.h |5 ++- qemu

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

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

2013-05-23 Thread Wenchao Xia
From: Stefan Hajnoczi 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 auditing the block

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 > --- > 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 uncontrollab

[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 --- QMP/qmp-events.txt| 14 ++ include/monitor/monitor.h | 1 + monitor.c | 1 + 3 files changed, 16 insertions(+) diff --git a/QMP/qmp-e

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

[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 Acked-by: Alex Williamson --- hw/i386/kvm/pci-assign.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hw/i386/kvm/pci-assign.c b/hw/i386/kvm/pci-assign.c index ff85590..9896c28 100644

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

[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 Reviewed-by: Eric Blake --- block.c | 105

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 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 w

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

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 > --- > Makefile.target | 2 -- > stubs/Makefile

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 : > >> 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. Th

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

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 > wrote: >> >> On 05/21/2013 10:50 AM, peter.crosthwa...@xilinx.com wrote: >> >> From: Peter Crosthwaite >> >> the SD command ACMD41 can be used in a read only mode to query device >>

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 implemen

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 > http://msdn.microsoft.com/en-us/library

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 > hardwar

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 mo

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 pci_host_bus

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 implemen

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 pr

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

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 s

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 cor

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 /home/cauchy/vcs/git/qemu/corouti

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

2013-05-23 Thread Anthony Liguori
Kevin Wolf writes: > Am 22.05.2013 um 18:14 hat Anthony Liguori geschrieben: >> Kevin Wolf 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 drivers are compiled in (po

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

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 > --- > hmp.c |2 +- > hw/pci/pci.c|2 +- > s

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 mo

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 POSIX-

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

[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 --- 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 --- a/target-arm/translate.c +++ b/target-ar

[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 (a

[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 --- 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 +++ b/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 th

[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 --- 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 --- a/target-arm/translate.c +++ b/target-

[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 --- 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 --- a/target-arm/translate.c +++ b/target-

[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 --- 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 +++ b/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. > > Signe

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

[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 --- target-arm/translate.c | 19 --- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/target-arm/translate.c b/target-arm/translate.c index 75972cf..8e46527

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

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-

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 iterati

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 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 > answers the questio

[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 --- target-arm/translate.c | 46 -- 1 file changed, 46 deletions(-) diff --git a/target-arm/translate.c b/target-arm/translate.

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 i

[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 --- 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 +++ b/target-arm/translate.c @@ -1473,13 +14

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 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 keeping QMP API

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 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. #error if anybody

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

2013-05-23 Thread Anthony Liguori
Luiz Capitulino writes: > On Thu, 23 May 2013 07:08:59 -0500 > Anthony Liguori 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 ena

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_qemu>qemu-system-arm -M vexpress-a9 -cpu cortex-a9 -m 512 -uuid e04ec652

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 writes: > > > Am 22.05.2013 um 18:14 hat Anthony Liguori geschrieben: > >> Kevin Wolf writes: > >> > For example, libvirt wants to query which block drivers it can use. It > >> > doesn't really matter for which drivers we had t

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_qemu>qemu-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 -ke

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

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 > qai-schema

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 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 Lin

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 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 Endian ARM h

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 > > +++ b/hw/pci/pci-

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 ma

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 - "address_sp

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 > gd

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 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 ad

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

2013-05-23 Thread Paolo Bonzini
Il 23/05/2013 15:06, liu ping fan ha scritto: >> The idea is that address_space_translate gets a ref to the MemoryRegion, >> and the ref is then released by the caller of address_space_translate. >> > This will require subpage hold a reference to real mr. Hmm, that's right. Jan, that could be a c

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

2013-05-23 Thread Peter Maydell
On 23 May 2013 09:14, Claudio Fontana wrote: > > we will use the 26bit relative relocs in the aarch64 tcg target. > > Signed-off-by: Claudio Fontana Reviewed-by: Peter Maydell -- PMM

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 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 Microsoft VSS SDK from: >>http://www.microsoft.com/en-us/download/details.aspx?id=23490 >> >> - Setup the SDK >

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

2013-05-23 Thread Peter Maydell
On 23 May 2013 09:19, Claudio Fontana wrote: > > support compiling on aarch64. > > Signed-off-by: Claudio Fontana Reviewed-by: Peter Maydell -- PMM

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

2013-05-23 Thread Stefan Hajnoczi
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 Microsoft VSS SDK from: >>>http://www.microsoft.com

  1   2   3   >