Re: [Qemu-devel] [PATCH v2] libcacard: Fix compilation for older versions of glib (bug #1258168)

2013-12-08 Thread Alon Levy
On 12/05/2013 08:41 PM, Stefan Weil wrote: See https://bugs.launchpad.net/bugs/1258168 libcacard/vscclient.c: In function 'do_socket_read': libcacard/vscclient.c:410: warning: implicit declaration of function 'g_warn_if_reached' libcacard/vscclient.c:410: warning: nested extern declaration

[Qemu-devel] [PATCH v9 0/2] bugs fix for hpet

2013-12-08 Thread Liu Ping Fan
I see the open of 2.0 development window, and rebase V8 with a small fix v9: use PC_Q35_1_8_MACHINE_OPTIONS in pc_q35_machine_v1_8 v8: make piix/q35 compat diverge simplify the code, use hpet_irqs to pass intcap value Liu Ping Fan (2): hpet: inverse polarity when pin above ISA_NUM_IRQS

[Qemu-devel] [PATCH 1/2] hpet: inverse polarity when pin above ISA_NUM_IRQS

2013-12-08 Thread Liu Ping Fan
According to hpet spec, hpet irq is high active. But according to ICH spec, there is inversion before the input of ioapic. So the OS will expect low active on this IRQ line. (On bare metal, if OS driver claims high active on this line, spurious irq is generated) We fold the emulation of this

Re: [Qemu-devel] [PATCH v2] libcacard: Fix compilation for older versions of glib (bug #1258168)

2013-12-08 Thread Stefan Weil
Am 08.12.2013 10:13, schrieb Alon Levy: On 12/05/2013 08:41 PM, Stefan Weil wrote: See https://bugs.launchpad.net/bugs/1258168 libcacard/vscclient.c: In function 'do_socket_read': libcacard/vscclient.c:410: warning: implicit declaration of function 'g_warn_if_reached'

Re: [Qemu-devel] outlined TLB lookup on x86

2013-12-08 Thread Xin Tong
On Thu, Nov 28, 2013 at 8:12 AM, Lluís Vilanova vilan...@ac.upc.edu wrote: Xin Tong writes: Hi LIuis we can probably generate vector intrinsics using the tcg, e.g. add support to tcg to emit vector instructions directly in code cache There was some discussion long ago about adding

Re: [Qemu-devel] [PATCH v2] pc: add 1.8 machine type

2013-12-08 Thread Michael S. Tsirkin
On Thu, Dec 05, 2013 at 06:53:50PM +0100, Paolo Bonzini wrote: Il 14/11/2013 11:37, Michael S. Tsirkin ha scritto: Several changes that affect compatibility between 1.8 and 1.7 are already planned, so we need pc compat structures in place. Signed-off-by: Michael S. Tsirkin

Re: [Qemu-devel] outlined TLB lookup on x86

2013-12-08 Thread Avi Kivity
On 11/28/2013 04:12 AM, Richard Henderson wrote: 2. why not use a TLB or bigger size? currently the TLB has 18 entries. the TLB lookup is 10 x86 instructions , but every miss needs ~450 instructions, i measured this using Intel PIN. so even the miss rate is low (say 3%) the overall time spent

Re: [Qemu-devel] [PATCH] pci: fix pci bridge fw path

2013-12-08 Thread Michael S. Tsirkin
On Fri, Dec 06, 2013 at 12:24:40PM +0100, Gerd Hoffmann wrote: qemu uses pci as name for pci bridges in the firmware device path. seabios expects pci-bridge. Result is that bootorder is broken for devices behind pci bridges. Some googling suggests that pci-bridge is the correct one. At

Re: [Qemu-devel] [PATCH] net: QEMU_NET_PACKET_FLAG_MORE introduced

2013-12-08 Thread Michael S. Tsirkin
On Fri, Dec 06, 2013 at 03:44:33PM +0100, Vincenzo Maffione wrote: This patch extends the frontend-backend interface so that it is possible to pass a new flag (QEMU_NET_PACKET_FLAG_MORE) when sending a packet to the other peer. The new flag acts as a hint for the receiving peer, which can

Re: [Qemu-devel] [PATCH] tcg: Use bitmaps for free temporaries

2013-12-08 Thread Aurelien Jarno
On Thu, Sep 19, 2013 at 12:58:37PM -0700, Richard Henderson wrote: We previously allocated 32-bits per temp for the next_free_temp entry. We now allocate 4 bits per temp across the 4 bitmaps. Using a linked list meant that if a translator is tweeked, resulting in temps being freed in a

Re: [Qemu-devel] [PATCH] target-cris: Use new qemu_ld/st opcodes

2013-12-08 Thread Edgar E. Iglesias
On Sat, Dec 07, 2013 at 02:52:34PM +1300, Richard Henderson wrote: Using the new opcodes we can reduce if/else trees to a single statement. I committed this, thanks. Edgar Cc: Edgar E. Iglesias edgar.igles...@gmail.com Signed-off-by: Richard Henderson r...@twiddle.net ---

[Qemu-devel] [Bug 1245703] Re: LD_PREFIX option reads directories recursively in an endless loop

2013-12-08 Thread Antonis Kanouras
One ugly workaround is, in case anyone needs it: cp -a /usr/bin/qemu-arm-static /mnt/mychroot/ chroot /mnt/mychroot /qemu-arm-static /bin/sh -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1245703

[Qemu-devel] [Bug 1245703] Re: LD_PREFIX option reads directories recursively in an endless loop

2013-12-08 Thread Bug Watch Updater
** Changed in: qemu (Debian) Status: Unknown = Confirmed -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1245703 Title: LD_PREFIX option reads directories recursively in an endless loop

[Qemu-devel] [Bug 1245703] Re: LD_PREFIX option reads directories recursively in an endless loop

2013-12-08 Thread Antonis Kanouras
qemu-arm *and* qemu-arm-static 1.5.0+dfsg-3ubuntu5.1 (AMD64 13.10 host) are affected by this. Steps to reproduce: 0. mkdir /mnt/mychroot 1. qemu-debootstrap --arch=armhf wheezy /mnt/mychroot http://ftp.debian.org/debian 2. qemu-arm-static -L /mnt/mychroot /mnt/mychroot/usr/sbin/chroot

[Qemu-devel] [PATCH] sheepdog: check if '-o redundancy' is passed from user

2013-12-08 Thread Liu Yuan
This fix a segfault (that is caused by b3af018f3) of following command: $ qemu-img convert some_img sheepdog:some_img Cc: qemu-devel@nongnu.org Cc: Kevin Wolf kw...@redhat.com Cc: Stefan Hajnoczi stefa...@redhat.com Signed-off-by: Liu Yuan namei.u...@gmail.com --- block/sheepdog.c |8

[Qemu-devel] [PATCH] ui/cocoa: Pass command key through to guest when VM has mousegrab

2013-12-08 Thread Peter Maydell
The guest might want to be able to use the command key for its won purposes (as command if it is MacOS X, or for the Windows key if it is a PC guest, for instance). In line with other UI frontends, pass it through if the guest has mousegrab, and only use it for host UI menu accelerators if not

[Qemu-devel] [PATCH 3/5] ui/cocoa: Send warning message to stderr, not stdout

2013-12-08 Thread Peter Maydell
Bring a warning message into line with the others in this file by sending it to stderr, not stdout, and fix a typo in it. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- ui/cocoa.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/cocoa.m b/ui/cocoa.m index

[Qemu-devel] [PATCH 5/5] ui/cocoa: Fix code for starting QEMU via image file load dialog

2013-12-08 Thread Peter Maydell
Fix a number of bugs in the code for starting QEMU via the image file load dialog: * use the actual argv[0] rather than qemu: this avoids failures to find BIOS image files caused by not looking in the correct directory relative to the executable path * allocate a large enough argv array to

[Qemu-devel] [PATCH 1/5] ui/cocoa: Pass command key through to guest when VM has mousegrab

2013-12-08 Thread Peter Maydell
The guest might want to be able to use the command key for its won purposes (as command if it is MacOS X, or for the Windows key if it is a PC guest, for instance). In line with other UI frontends, pass it through if the guest has mousegrab, and only use it for UI menu accelerators if not grabbed.

[Qemu-devel] [PATCH 0/5] miscellaneous minor cocoa UI patches

2013-12-08 Thread Peter Maydell
This patchset is a collection of minor Cocoa UI patches: * the 'pass command key through when mousegrabbed' patch I sent earlier (included here for convenience since the others in the series would otherwise trivially conflict) * typo fixes * support for loading *.qcow2 via the pick a disk

[Qemu-devel] [PATCH 4/5] ui/cocoa: Add .qcow2 to extension list for image load dialog

2013-12-08 Thread Peter Maydell
Add .qcow2 to the list of file extensions which are accepted by the initial disk image load dialog which is displayed if the user runs QEMU without any command line arguments. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- ui/cocoa.m | 2 +- 1 file changed, 1 insertion(+), 1

[Qemu-devel] [PATCH 2/5] ui/cocoa: Correct typos in comments and variable names

2013-12-08 Thread Peter Maydell
Fix various non-user-visible typos in comments and variable names. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- ui/cocoa.m | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/ui/cocoa.m b/ui/cocoa.m index d38cf22..f55747f 100644 ---

[Qemu-devel] [PATCH v10 3/5] hw/intc: add allwinner A10 interrupt controller

2013-12-08 Thread liguang
Signed-off-by: liguang lig.f...@cn.fujitsu.com --- default-configs/arm-softmmu.mak |1 + hw/intc/Makefile.objs |1 + hw/intc/allwinner-a10-pic.c | 217 +++ include/hw/intc/allwinner-a10-pic.h | 40 +++ 4 files changed, 259

[Qemu-devel] [PATCH v10 0/5] add allwinner A10 SoC support

2013-12-08 Thread liguang
lay a foundation for allwinner A10 SoC with a cortex-a8 processor, and will add more devices later. v2: split timer and interrupt controller emulation into their corresponding files. v3: 1. change loader_start address 2. add 64-bit counter 3. fixup fail to clear interrup status

[Qemu-devel] [PATCH v10 1/5] vmstate: add VMSTATE_PTIMER_ARRAY

2013-12-08 Thread liguang
Signed-off-by: liguang lig.f...@cn.fujitsu.com --- include/migration/vmstate.h |4 savevm.c| 31 +++ 2 files changed, 35 insertions(+), 0 deletions(-) diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h index

[Qemu-devel] [PATCH v10 4/5] hw/arm: add allwinner a10 SoC support

2013-12-08 Thread liguang
Signed-off-by: liguang lig.f...@cn.fujitsu.com --- default-configs/arm-softmmu.mak |1 + hw/arm/Makefile.objs|1 + hw/arm/allwinner-a10.c | 103 +++ include/hw/arm/allwinner-a10.h | 35 + 4 files changed, 140

[Qemu-devel] [PATCH v10 2/5] hw/timer: add allwinner a10 timer

2013-12-08 Thread liguang
Signed-off-by: liguang lig.f...@cn.fujitsu.com --- default-configs/arm-softmmu.mak |2 + hw/timer/Makefile.objs |2 + hw/timer/allwinner-a10-pit.c | 254 ++ include/hw/timer/allwinner-a10-pit.h | 59 4 files changed,

[Qemu-devel] [PATCH v10 5/5] hw/arm: add cubieboard support

2013-12-08 Thread liguang
Signed-off-by: liguang lig.f...@cn.fujitsu.com --- hw/arm/Makefile.objs |2 +- hw/arm/cubieboard.c | 69 ++ 2 files changed, 70 insertions(+), 1 deletions(-) create mode 100644 hw/arm/cubieboard.c diff --git a/hw/arm/Makefile.objs

[Qemu-devel] gtk3 mouse warping

2013-12-08 Thread Dave Airlie
does the gtk3 mouse warping work for anyone else? I've just been testing with gtk3 + virtio-vga and the mouse seems to bounce around a lot off the edges of the window, but never make it into it. Dave.

Re: [Qemu-devel] [PATCH] Fix QEMU build on OpenBSD on x86 archs

2013-12-08 Thread Brad Smith
On 27/11/13 6:15 PM, Brad Smith wrote: This resolves the build issue with building the ROMs on OpenBSD on x86 archs. As of OpenBSD 5.3 the compiler builds PIE binaries by default and thus the whole OS/packages and so forth. The ROMs need to have PIE disabled. This is my initial attempt at trying

Re: [Qemu-devel] [PATCH V7 0/6] qcow2: rollback the modification on fail in snapshot creation

2013-12-08 Thread Wenchao Xia
hello, OK to merge?

Re: [Qemu-devel] [PATCH V7 4/6] qemu-img: add -l for snapshot in convert

2013-12-08 Thread Wenchao Xia
convert -s snapshot.name=name1 Previous I planned to use -l for internal snapshot in all possible program, since -s is taken as external snapshot in qemu, qemu-nbd. let -s stands for internal in qemu-img convert only, may bring confuse to user, so I deprecated it instead of enhance it(I

Re: [Qemu-devel] [PATCH] Fix QEMU build on OpenBSD on x86 archs

2013-12-08 Thread Anthony Liguori
Please repost a proper v2. Regards, Anthony Liguori On Sun, Dec 8, 2013 at 7:28 PM, Brad Smith b...@comstyle.com wrote: On 27/11/13 6:15 PM, Brad Smith wrote: This resolves the build issue with building the ROMs on OpenBSD on x86 archs. As of OpenBSD 5.3 the compiler builds PIE binaries by

Re: [Qemu-devel] gtk3 mouse warping

2013-12-08 Thread Dave Airlie
On Mon, Dec 9, 2013 at 10:49 AM, Dave Airlie airl...@gmail.com wrote: does the gtk3 mouse warping work for anyone else? I've just been testing with gtk3 + virtio-vga and the mouse seems to bounce around a lot off the edges of the window, but never make it into it. It appears to be an issue

Re: [Qemu-devel] gtk3 mouse warping

2013-12-08 Thread Dave Airlie
On Mon, Dec 9, 2013 at 1:54 PM, Dave Airlie airl...@gmail.com wrote: On Mon, Dec 9, 2013 at 10:49 AM, Dave Airlie airl...@gmail.com wrote: does the gtk3 mouse warping work for anyone else? I've just been testing with gtk3 + virtio-vga and the mouse seems to bounce around a lot off the edges

[Qemu-devel] [PATCH] vmdk: Check VMFS extent line field number

2013-12-08 Thread Fam Zheng
VMFS extent line in description file should be with 4 fields: RW size VMFS file-name.vmdk Check the number explicitly and report error if offset is appended as FLAT, which should be invalid format. Reported-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Fam Zheng f...@redhat.com ---

Re: [Qemu-devel] [PATCH 1/7] define hotplug interface

2013-12-08 Thread Li Guang
Hi, Igor Igor Mammedov wrote: Provide generic hotplug interface for devices. Intended for replacing hotplug mechanism used by PCI/PCIE/SHPC code. Signed-off-by: Igor Mammedovimamm...@redhat.com --- it's scsi-bus like interface, but abstracted from bus altogether since all current users care

Re: [Qemu-devel] [PATCH] HMP: snapshot_blkdev can not consider //root/sn1 and /root/sn1 as the same file

2013-12-08 Thread jun muzi
If mount a local file(disk) in two different dirctories, it is similar to the network storage. Detecting identical files is still a problem. Such as: dd if=/dev/zero of=aa bs=1M count=10 mkfs.ext4 aa Then mount aa to two directories. mount aa /mnt/dir1 mount aa /mnt/dir2 # tune2fs -l aa tune2fs

[Qemu-devel] save compiled qemu traces.

2013-12-08 Thread Xin Tong
Does anyone have profiles on how much time QEMU spends in translating instructions. QEMU does not have a baseline interpreter nor does it translate on trace-granularity. so i imagine QEMU must spend quite a bit of time translating instructions. Is it possible for QEMU to obviate some of the

Re: [Qemu-devel] [PATCH] pci: fix pci bridge fw path

2013-12-08 Thread Gerd Hoffmann
On So, 2013-12-08 at 13:31 +0200, Michael S. Tsirkin wrote: On Fri, Dec 06, 2013 at 12:24:40PM +0100, Gerd Hoffmann wrote: qemu uses pci as name for pci bridges in the firmware device path. seabios expects pci-bridge. Result is that bootorder is broken for devices behind pci bridges.

[Qemu-devel] Keyboard interrupt routing from QEMU to guest OS

2013-12-08 Thread Maryyam Muhammad Din
Hi everyone, I am unable to figure-out when someone presses control-c on the keyboard, how host OS routes it to QEMU and how QEMU then routes it to the guest? Please suggest me how can I extract complete control flow. Thank You -- Maryyam Muhammad Din Al-Khawarizmi Institute of Computer Science

Re: [Qemu-devel] Keyboard interrupt routing from QEMU to guest OS

2013-12-08 Thread Samuel Thibault
Maryyam Muhammad Din, le Mon 09 Dec 2013 12:25:23 +0500, a écrit : I am unable to figure-out when someone presses control-c on the keyboard, how host OS routes it to QEMU and how QEMU then routes it to the guest?  It depends which QEMU UI you are using. Please suggest me how can I extract

Re: [Qemu-devel] Keyboard interrupt routing from QEMU to guest OS

2013-12-08 Thread Maryyam Muhammad Din
I have gone through the source code of QEMU but could not figure out how external interrupts are handled by QEMU for guest. I have tried gdb and print statements for debugging but there are no conclusive results. If anyone have experience in debugging QEMU with gdb or any other tool please guide

[Qemu-devel] [PATCH 0/2] fix strict boot regression

2013-12-08 Thread Amos Kong
parsing of strict is wrongly removed, we need it. The first patch fixes a typo. Amos Kong (2): fix a typo of strict option add parsing of strict boot parameter pc-bios/bios.bin | Bin 131072 - 131072 bytes vl.c |3 ++- 2 files changed, 2 insertions(+), 1 deletions(-)

[Qemu-devel] [PATCH 1/2] fix a typo of strict option

2013-12-08 Thread Amos Kong
The type of strict should be bool. Signed-off-by: Amos Kong ak...@redhat.com --- vl.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/vl.c b/vl.c index b0399de..12fe1f7 100644 --- a/vl.c +++ b/vl.c @@ -461,7 +461,7 @@ static QemuOptsList qemu_boot_opts = {