[Qemu-devel] [PATCH 6/6] linux-user: Fix trampoline code for CRIS

2014-02-01 Thread edgar . iglesias
From: Stefan Weil __put_user can write bytes, words (2 bytes) or longwords (4 bytes). Here obviously words should have been written, but bytes were written, so values like 0x9c5f were truncated to 0x5f. Fix this by changing retcode from uint8_t to to uint16_t in target_signal_frame and also in t

[Qemu-devel] [PATCH 4/6] axis-dev88: Connect the PIC upstream IRQs directly to the CPU

2014-02-01 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- hw/cris/axis_dev88.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/hw/cris/axis_dev88.c b/hw/cris/axis_dev88.c index 5524088..645e45c 100644 --- a/hw/cris/axis_dev88.c +++ b/hw/cris/axis_dev88.c @@ -254,

[Qemu-devel] [PATCH 5/6] cris: Remove the CRIS PIC glue

2014-02-01 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- hw/cris/Makefile.objs | 1 - hw/cris/pic_cpu.c | 47 --- include/hw/cris/etraxfs.h | 2 -- 3 files changed, 50 deletions(-) delete mode 100644 hw/cris/pic_cpu.c diff --git

[Qemu-devel] [PATCH 3/6] cris: Add interrupt signals to the CPU device

2014-02-01 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- target-cris/cpu.c | 20 target-cris/cpu.h | 4 2 files changed, 24 insertions(+) diff --git a/target-cris/cpu.c b/target-cris/cpu.c index 21f1860..7dea0f0 100644 --- a/target-cris/cpu.c +++ b/target-cris/

[Qemu-devel] [PATCH 2/6] cris: Abort when a v10 takes interrupts while in a delayslot

2014-02-01 Thread edgar . iglesias
From: "Edgar E. Iglesias" This is an internal error as the CRISv10 should mask interrupts while executing delay slots. Bail out sooner rather than later. Signed-off-by: Edgar E. Iglesias --- target-cris/helper.c | 5 + 1 file changed, 5 insertions(+) diff --git a/target-cris/helper.c b/ta

[Qemu-devel] [PATCH 0/6] CRIS queue

2014-02-01 Thread edgar . iglesias
From: "Edgar E. Iglesias" These fixes and cleanups are sitting on my CRIS queue. Restores CRISv32 as default linux-user CPU. Fix CRIS linux-user signal handling. Removes CRIS PIC glue. Cheers, Edgar Edgar E. Iglesias (5): cris: Add a CRISv32 default "any" CPU for user mode emulation cris:

[Qemu-devel] [PATCH 1/6] cris: Add a CRISv32 default "any" CPU for user mode emulation

2014-02-01 Thread edgar . iglesias
From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias --- target-cris/cpu.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/target-cris/cpu.c b/target-cris/cpu.c index 44301a4..21f1860 100644 --- a/target-cris/cpu.c +++ b/target-cris/cpu.c @@ -239,7 +239,14 @@ static const TypeI

[Qemu-devel] who should I report this to?

2014-02-01 Thread Aryeh Friedman
Under kvm (ubuntu 12.04.03 LTS) when logged in via VNC and installing 10-RELEASE the installer just boots you during the disk initialization phase. Who should this be reported to? -- Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org

[Qemu-devel] [PATCH] hw/xtensa: add support for ML605 and KC705 FPGA board

2014-02-01 Thread Max Filippov
Signed-off-by: Max Filippov --- hw/xtensa/xtensa_lx60.c | 51 + 1 file changed, 47 insertions(+), 4 deletions(-) diff --git a/hw/xtensa/xtensa_lx60.c b/hw/xtensa/xtensa_lx60.c index 22e124d..49c58d1 100644 --- a/hw/xtensa/xtensa_lx60.c +++ b/hw/xte

Re: [Qemu-devel] osx bootloader

2014-02-01 Thread BALATON Zoltan
On Sat, 1 Feb 2014, Paolo Bonzini wrote: The firmware has to be ported to each new chipset. OVMF was never ported to anything but PIIX. Looks like this is the case. Now I can see that OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c has hardcoded pci paths in it corresponding to the pc machine t

[Qemu-devel] NetClientInfo::can_receive change notification and its purpose

2014-02-01 Thread Max Filippov
Hello, is there any way to notify networking core that adapter's NetClientInfo::can_receive return value is about to change from 0 to 1? I'm trying to talk to DHCP server from the recent (2014.01) u-boot running in the xtensa system emulation over the tap interface. On the guest I see the followin

Re: [Qemu-devel] [PATCH v13 00/14] Drop in_use from BlockDriverState and enable point-in-time snapshot exporting over NBD

2014-02-01 Thread Ian Main
On Sat, Feb 01, 2014 at 11:21:17PM +0800, Fam Zheng wrote: > On Fri, 01/31 19:00, Ian Main wrote: > > On Wed, Jan 29, 2014 at 01:07:27PM +0800, Fam Zheng wrote: > > > This series adds for point-in-time snapshot NBD exporting based on > > > blockdev-backup (variant of drive-backup with existing devi

Re: [Qemu-devel] [PATCH] linux-user: Fix trampoline code for CRIS

2014-02-01 Thread Peter Maydell
On 2 February 2014 00:42, Edgar E. Iglesias wrote: > On Sat, Feb 01, 2014 at 12:09:06PM +, Peter Maydell wrote: >> Since CRIS looks (from a scan through its translate.c) like >> a variable-width instruction set (in the sense that insns can >> have immediate operands which might be 1/2/4 bytes

Re: [Qemu-devel] [PATCH] linux-user: Fix trampoline code for CRIS

2014-02-01 Thread Edgar E. Iglesias
On Sat, Feb 01, 2014 at 12:09:06PM +, Peter Maydell wrote: > On 1 February 2014 08:41, Stefan Weil wrote: > > __put_user can write bytes, words (2 bytes) or longwords (4 bytes). > > Here obviously words should have been written, but bytes were written, > > so values like 0x9c5f were truncated

Re: [Qemu-devel] [PATCH 1/4] qemu-io: New option "-a" to aio_read and aio_write

2014-02-01 Thread Paolo Bonzini
Il 01/02/2014 15:31, Fam Zheng ha scritto: Why can't it be enabled unconditionally? So the default behavior is unchanged. For the stand-alone executable there is no difference, is there anything that breaks for the monitor if you always do the accounting? Paolo

Re: [Qemu-devel] [PULL 0/5] QMP queue

2014-02-01 Thread Peter Maydell
On 28 January 2014 17:27, Luiz Capitulino wrote: > The changes (since 0169c511554cb0014a00290b0d3d26c31a49818f) are available > in the following repository: > > git://repo.or.cz/qemu/qmp-unstable.git queue/qmp Applied, thanks. -- PMM

Re: [Qemu-devel] [PULL v2 00/34] target-arm queue

2014-02-01 Thread Peter Maydell
On 31 January 2014 15:10, Peter Maydell wrote: > v2 of target-arm queue, with the KVM irqchip creation patchset dropped; > since the other 34 patches are unchanged I'm not retransmitting them. > Please pull. Applied, thanks. -- PMM

[Qemu-devel] [PATCH v2 03/13] target-arm: A64: Implement pairwise integer ops from 3-reg-same SIMD

2014-02-01 Thread Peter Maydell
Implement the pairwise integer operations in the 3-reg-same SIMD group: ADDP, SMAXP, SMINP, UMAXP and UMINP. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/translate-a64.c | 124 - 1 file changed, 123 insertions(+), 1 delet

[Qemu-devel] [PATCH v2 02/13] target-arm: A64: Implement remaining non-pairwise int SIMD 3-reg-same insns

2014-02-01 Thread Peter Maydell
Implement the SIMD 3-reg-same instructions where the size == 3 case is reserved: SHADD, UHADD, SRHADD, URHADD, SHSUB, UHSUB, SMAX, UMAX, SMIN, UMIN, SABD, UABD, SABA, UABA, MLA, MLS, MUL, PMUL, SQRDMULH, SQDMULH. (None of these have scalar-3-same versions.) This completes the non-pairwise integer i

[Qemu-devel] [PATCH v2 10/13] target-arm: A64: Implement 2-reg-misc CNT, NOT and RBIT

2014-02-01 Thread Peter Maydell
Implement the 2-reg-misc CNT, NOT and RBIT instructions. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/helper.h| 1 + target-arm/neon_helper.c | 12 target-arm/translate-a64.c | 34 -- 3 files changed, 41 inser

[Qemu-devel] [PATCH v2 13/13] target-arm: A64: Add FNEG and FABS to the SIMD 2-reg-misc group

2014-02-01 Thread Peter Maydell
Add the SIMD FNEG and FABS instructions in the SIMD 2-reg-misc group. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/translate-a64.c | 23 --- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/target-arm/translate-a64.c b/target-arm/t

[Qemu-devel] [PATCH v2 08/13] target-arm: A64: Add skeleton decode for SIMD 2-reg misc group

2014-02-01 Thread Peter Maydell
Add a skeleton decode for the SIMD 2-reg misc group. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/translate-a64.c | 110 - 1 file changed, 109 insertions(+), 1 deletion(-) diff --git a/target-arm/translate-a64.c b/target

[Qemu-devel] [PATCH v2 11/13] target-arm: A64: Add narrowing 2-reg-misc instructions

2014-02-01 Thread Peter Maydell
Add the narrowing integer instructions in the 2-reg-misc class. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/translate-a64.c | 85 -- 1 file changed, 83 insertions(+), 2 deletions(-) diff --git a/target-arm/translate-a64

[Qemu-devel] [PATCH v2 04/13] tcg: Add TCGV_UNUSED_PTR, TCGV_IS_UNUSED_PTR, TCGV_EQUAL_PTR

2014-02-01 Thread Peter Maydell
We have macros for marking TCGv values as unused, checking if they are unused and comparing them to each other. However these only exist for TCGv_i32 and TCGv_i64; add them for TCGv_ptr as well. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- tcg/tcg.h | 3 +++ 1 file changed, 3

[Qemu-devel] [PATCH v2 01/13] target-arm: A64: Implement SIMD 3-reg-same shift and saturate insns

2014-02-01 Thread Peter Maydell
Implement the SIMD 3-reg-same instructions SQADD, UQADD, SQSUB, UQSUB, SSHL, USHL, SQSHl, UQSHL, SRSHL, URSHL, SQRSHL, UQRSHL; these are all simple calls to existing Neon helpers. We also enable SSHL, USHL, SRSHL and URSHL for the 3-reg-same-scalar category (but not the others because they can have

[Qemu-devel] [PATCH v2 07/13] target-arm: A64: Add SIMD simple 64 bit insns from scalar 2-reg misc

2014-02-01 Thread Peter Maydell
Implement the simple 64 bit integer operations from the SIMD scalar 2-register misc group (C3.6.12): the comparisons against zero, plus ABS and NEG. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/translate-a64.c | 87 +- 1

[Qemu-devel] [PATCH v2 06/13] target-arm: A64: Implement remaining integer scalar-3-same insns

2014-02-01 Thread Peter Maydell
Implement the remaining integer instructions in the scalar-three-reg-same group: SQADD, UQADD, SQSUB, UQSUB, SQSHL, UQSHL, SQRSHL, UQRSHL, SQDMULH, SQRDMULH. Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/translate-a64.c | 106 +---

[Qemu-devel] [PATCH v2 12/13] target-arm: A64: Add 2-reg-misc REV* instructions

2014-02-01 Thread Peter Maydell
From: Alex Bennée Add the byte-reverse operations REV64, REV32 and REV16 from the two-reg-misc group. Signed-off-by: Alex Bennée Signed-off-by: Peter Maydell --- target-arm/translate-a64.c | 71 +- 1 file changed, 70 insertions(+), 1 deletion(-) di

[Qemu-devel] [PATCH v2 09/13] target-arm: A64: Implement 2-register misc compares, ABS, NEG

2014-02-01 Thread Peter Maydell
Implement the simple 2-register-misc operations we can share with the scalar-two-register-misc code. (SUQADD, USQADD, SQABS, SQNEG also fall into this category, but aren't implemented in the scalar-2-register case yet either.) Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- targ

[Qemu-devel] [PATCH v2 00/13] A64: Add Neon instructions, third set

2014-02-01 Thread Peter Maydell
This is the v2 from my 'Neon second and third sets' patch from last week. The first 8 patches from that were all OK so have gone into target-arm.next. Changes v1->v2: * squashed fixes to patch 2 that were lurking in patch 3 back into patch 2 * moved the patch 3 min/max helper functions into p

[Qemu-devel] [PATCH v2 05/13] target-arm: A64: Implement scalar pairwise ops

2014-02-01 Thread Peter Maydell
Implement the instructions in the scalar pairwise group (C3.6.8). Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson --- target-arm/translate-a64.c | 114 - 1 file changed, 113 insertions(+), 1 deletion(-) diff --git a/target-arm/translate-a

Re: [Qemu-devel] [PULL v2 0/8] vfio pull request

2014-02-01 Thread Peter Maydell
Applied, thanks. For the record, it doesn't matter if you cc me or not, because I've set my mail client to look for the magic words "for you to fetch changes up to" :-) thanks -- PMM On 28 January 2014 15:58, Alex Williamson wrote: > > I guess I should be addressing these to both Anthony and Pe

Re: [Qemu-devel] [PATCH v3] implementing victim TLB for QEMU system emulated TLB

2014-02-01 Thread Peter Maydell
On 28 January 2014 17:31, Xin Tong wrote: > This patch adds a victim TLB to the QEMU system mode TLB. > > QEMU system mode page table walks are expensive. Taken by running QEMU > qemu-system-x86_64 system mode on Intel PIN , a TLB miss and walking a > 4-level page tables in guest Linux OS takes ~4

Re: [Qemu-devel] [PATCH v3] implementing victim TLB for QEMU system emulated TLB

2014-02-01 Thread Paolo Bonzini
Il 01/02/2014 17:35, Xin Tong ha scritto: Hi QEMU Community This patch provides significant performance improvement (10.76% on average) for QEMU system emulation. so I urge the someone in the QEMU community to review this patch so that it has the hope of making into the mainline. I understand th

Re: [Qemu-devel] osx bootloader

2014-02-01 Thread Paolo Bonzini
Il 01/02/2014 01:38, BALATON Zoltan ha scritto: I managed to boot OVMF following their wiki; It seems to work with kvm enabled, but not with -M q35. My current command line is: I've tried with the version compiled from the edk2 HEAD and that also fails with -M q35. I've managed to get some de

Re: [Qemu-devel] [PULL 0/1] xen-140130

2014-02-01 Thread Peter Maydell
On 30 January 2014 14:24, Stefano Stabellini wrote: > The following changes since commit 0169c511554cb0014a00290b0d3d26c31a49818f: > > Merge remote-tracking branch 'qemu-kvm/uq/master' into staging (2014-01-24 > 15:52:44 -0800) > > are available in the git repository at: > > > git://xenbits.x

Re: [Qemu-devel] [PULL v4 00/12] target-lm32 updates

2014-02-01 Thread Michael Walle
Am Samstag, 1. Februar 2014, 19:21:28 schrieb Peter Maydell: > On 20 January 2014 19:34, Michael Walle wrote: > > Hi Anthony, > > > > this is a pull request for various updates and fixes for the > > LatticeMico32 target. > > > > Please pull. > > Apologies for doing a review pass on this rather

[Qemu-devel] [Bug 685096] Re: USB Passthrough not working for Windows 7 guest

2014-02-01 Thread Manuel Baesler
followup: my understanding is there are a bunch of usb interfaces: uhci is usb 1.0 ehci is usb 2.0 xhci is usb 3.0 … -device piix3-usb-uhci will create an usb 1.0 interface. I guess usb 1.0 is insufficent for modern usb devices so windows errors with code 10. ehci have enough to bring full suppo

Re: [Qemu-devel] [PULL v4 11/12] target-lm32: stop VM on illegal or unknown instruction

2014-02-01 Thread Michael Walle
Am Samstag, 1. Februar 2014, 19:06:40 schrieb Peter Maydell: > On 20 January 2014 19:34, Michael Walle wrote: > > Instead of translating the instruction to a no-op, pause the VM and > > display a message to the user. > > > > As a side effect, this also works for instructions where the operands ar

Re: [Qemu-devel] [PULL v4 09/12] lm32_sys: print test result on stderr

2014-02-01 Thread Michael Walle
Am Samstag, 1. Februar 2014, 19:00:01 schrieb Peter Maydell: > On 20 January 2014 19:34, Michael Walle wrote: > > Do not use qemu_log(). > > > > Signed-off-by: Michael Walle > > --- > > > > hw/misc/lm32_sys.c |2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/hw

[Qemu-devel] [Bug 685096] Re: USB Passthrough not working for Windows 7 guest

2014-02-01 Thread Manuel Baesler
Hi, I had the same problem. Tested a lot. My solution to passthrough usb devices to a windows 7 x64 guest: parameter part: -device usb-ehci,id=usb,bus=pci.0,addr=0x4 -device usb- host,vendorid=0x{},productid=0x{},id=hostdev0,bus=usb.0 I also tried the device piix4-usb-uhci instead of usb-ehci

Re: [Qemu-devel] [PULL v4 00/12] target-lm32 updates

2014-02-01 Thread Peter Maydell
On 20 January 2014 19:34, Michael Walle wrote: > Hi Anthony, > > this is a pull request for various updates and fixes for the LatticeMico32 > target. > > Please pull. Apologies for doing a review pass on this rather than pulling it. However given that most of the patches didn't have reviewed-by t

Re: [Qemu-devel] [PULL v4 08/12] target-lm32: add breakpoint/watchpoint support

2014-02-01 Thread Peter Maydell
On 20 January 2014 19:34, Michael Walle wrote: > This patch adds in-target breakpoint and watchpoint support. This looks at least superficially OK, but I'm not really familiar with QEMU's breakpoint/watchpoint support code. RTH: do you want to have a look over this one? A style point, since I'm

Re: [Qemu-devel] [PULL v4 12/12] hw/lm32: print error if cpu model is not found

2014-02-01 Thread Peter Maydell
On 20 January 2014 19:34, Michael Walle wrote: > QEMU crashed if a the given cpu_model is not found. > > Signed-off-by: Michael Walle Reviewed-by: Peter Maydell -- PMM

Re: [Qemu-devel] [PULL v4 11/12] target-lm32: stop VM on illegal or unknown instruction

2014-02-01 Thread Peter Maydell
On 20 January 2014 19:34, Michael Walle wrote: > Instead of translating the instruction to a no-op, pause the VM and display > a message to the user. > > As a side effect, this also works for instructions where the operands are > only known at runtime. > > Signed-off-by: Michael Walle > --- > ta

Re: [Qemu-devel] [PULL v4 09/12] lm32_sys: print test result on stderr

2014-02-01 Thread Peter Maydell
On 20 January 2014 19:34, Michael Walle wrote: > Do not use qemu_log(). > > Signed-off-by: Michael Walle > --- > hw/misc/lm32_sys.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/hw/misc/lm32_sys.c b/hw/misc/lm32_sys.c > index 8176cdb..6af0cca 100644 > --- a/hw/misc/

Re: [Qemu-devel] [PULL v4 05/12] milkymist-vgafb: swap pixel data in source buffer

2014-02-01 Thread Peter Maydell
On 20 January 2014 19:34, Michael Walle wrote: > In commit fc97bb5ba3e7239c0b6d24095df6784868dfebbf the lduw_raw() call was > eliminated. But we are reading from the target buffer a 16-bit value, which > is in big-endian format. Therefore, swap the bytes if we are building for a > little-endian ho

Re: [Qemu-devel] [PULL v4 04/12] lm32_uart/lm32_juart: use qemu_chr_fe_write_all()

2014-02-01 Thread Peter Maydell
On 20 January 2014 19:34, Michael Walle wrote: > qemu_chr_fe_write() may return EAGAIN. Therefore, use > qemu_chr_fe_write_all(). > > Signed-off-by: Michael Walle Reviewed-by: Peter Maydell -- PMM

Re: [Qemu-devel] [PULL v4 03/12] milkymist-uart: use qemu_chr_fe_write_all() instead of qemu_chr_fe_write()

2014-02-01 Thread Peter Maydell
On 20 January 2014 19:34, Michael Walle wrote: > From: Antony Pavlov > > qemu_chr_fe_write() is capable of returning 0 > to indicate EAGAIN (and friends) and we don't > handle this. > > Just change it to qemu_chr_fe_write_all() to fix. > > Reported-by: Peter Crosthwaite > Acked-by: Peter Crosthw

Re: [Qemu-devel] [PULL v4 02/12] tests: lm32: new rule for single test cases

2014-02-01 Thread Peter Maydell
On 20 January 2014 19:34, Michael Walle wrote: > Introduce new target "check_%" to run indiviudal test caes, eg. > make check_mmu "individual". Otherwise Reviewed-by: Peter Maydell > > Signed-off-by: Michael Walle > --- > tests/tcg/lm32/Makefile |3 +++ > 1 file changed, 3 insertions(+)

Re: [Qemu-devel] live migration between amd fam15h-fam10h

2014-02-01 Thread Brian Jackson
On 01/27/2014 08:20 AM, Markus Kovero wrote: >> Hi, >> >> I am getting a frozen guest when migrating from an Opteron 6274 host >> (amd >> fam15h) to >> an Opteron 6174 host (amd fam10h). The live migration completes >> succesfully, but >> the guest is frozen: vcn screen is still there, but no input

Re: [Qemu-devel] osx bootloader

2014-02-01 Thread BALATON Zoltan
On Wed, 29 Jan 2014, Alexander Graf wrote: You will need an EFI HFS+ driver (look at the refind pointer) because boot.efi will use EFI callbacks to read the kernel and kext cache. Probably we will need more than that. I've copied boot.efi to the EFI partition and tried to start it from OMVF (w

Re: [Qemu-devel] [PULL v4 01/12] lm32_sys: increase test case name length limit

2014-02-01 Thread Peter Maydell
On 20 January 2014 19:34, Michael Walle wrote: > The new MMU tests use longer names. > > Signed-off-by: Michael Walle > --- > hw/misc/lm32_sys.c |4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/hw/misc/lm32_sys.c b/hw/misc/lm32_sys.c > index 9bdb781..8176cdb 100644

Re: [Qemu-devel] OVMF with q35 (was: osx bootloader)

2014-02-01 Thread BALATON Zoltan
On Sat, 1 Feb 2014, Alexander Graf wrote: Easiest is probably to attach gdb and get a backtrace to see who accesses that port. Only if I knew how to do that... I can start qemu with -s and attach gdb to it but how to get symbols for the OVMF.fd file and how to set the breakpoint? I've tried

Re: [Qemu-devel] Native MinGW build crashes when partitioning hard disk in guest

2014-02-01 Thread Legorol
On 1 February 2014 12:51, Stefan Weil wrote: > Am 01.02.2014 11:47, schrieb Legorol: >> (I am reposting this as my first post seems to have fallen through the >> cracks.) >> >> I am building the official Qemu 1.7.0 release from source natively under >> MinGW for myself. I execute the i386 target.

Re: [Qemu-devel] [PATCH v3] implementing victim TLB for QEMU system emulated TLB

2014-02-01 Thread Xin Tong
Hi QEMU Community This patch provides significant performance improvement (10.76% on average) for QEMU system emulation. so I urge the someone in the QEMU community to review this patch so that it has the hope of making into the mainline. I understand that I have made mistakes in patch submission

Re: [Qemu-devel] [PATCH 3/4] qemu-iotests: Allow caller to disable underscore convertion for qmp

2014-02-01 Thread Fam Zheng
On Wed, 01/29 07:09, Eric Blake wrote: > On 01/29/2014 01:40 AM, Fam Zheng wrote: > > s/convertion/conversion/ in the subject > > > QMP command "block_set_io_throttle" expects underscores in parameters > > instead of dashes: {iops,bps}_{rd,wr,max}. > > > > Add optional argument conv_keys (defaul

Re: [Qemu-devel] [PATCH 2/4] qemu-iotests: Add VM method qtest_cmd() to iotests.py

2014-02-01 Thread Fam Zheng
On Wed, 01/29 15:22, Stefan Hajnoczi wrote: > On Wed, Jan 29, 2014 at 04:40:41PM +0800, Fam Zheng wrote: > > This will allow test case to run command in qtest protocol. It's > > write-only for now. > > > > Signed-off-by: Fam Zheng > > --- > > tests/qemu-iotests/iotests.py | 7 +-- > > 1 file

Re: [Qemu-devel] [PATCH v13 00/14] Drop in_use from BlockDriverState and enable point-in-time snapshot exporting over NBD

2014-02-01 Thread Fam Zheng
On Fri, 01/31 19:00, Ian Main wrote: > On Wed, Jan 29, 2014 at 01:07:27PM +0800, Fam Zheng wrote: > > This series adds for point-in-time snapshot NBD exporting based on > > blockdev-backup (variant of drive-backup with existing device as target). > > > > We get a thin point-in-time snapshot by COW

Re: [Qemu-devel] AmigaOS 4.x on QEMU

2014-02-01 Thread Mark Cave-Ayland
On 25/01/14 00:20, BALATON Zoltan wrote: On Sun, 12 Jan 2014, Alpha Mule wrote: Hi. AmigaOS 4.x runs natively on some niche PowerPC boards. I was wondering about the viability of running AmigaOS 4.x on QEMU. Specifically, I was wondering if there has been any development on that and/or what ne

Re: [Qemu-devel] OVMF with q35 (was: osx bootloader)

2014-02-01 Thread Alexander Graf
> Am 01.02.2014 um 15:35 schrieb BALATON Zoltan : > >> On Sat, 1 Feb 2014, Alexander Graf wrote: >> The assert happens inside the guest, so I'm afraid you'll have to add >> debugging output to edk2. Just print out the port number if port & 3 in the >> code path above. > > I've come this same

[Qemu-devel] [PATCH v7 2/2] target-ppc: spapr: e500: fix to use cpu_dt_id

2014-02-01 Thread Alexey Kardashevskiy
This makes use of @cpu_dt_id and related API in: 1. emulated XICS hypercall handlers as they receive fixed CPU indexes; 2. XICS-KVM to enable in-kernel XICS on right CPU; 3. device-tree renderer. This removes @cpu_index fixup as @cpu_dt_id is used instead so QEMU monitor can accept command-line CP

[Qemu-devel] [PATCH v7 1/2] target-ppc: add PowerPCCPU::cpu_dt_id

2014-02-01 Thread Alexey Kardashevskiy
Normally CPUState::cpu_index is used to pick the right CPU for various operations. However default consecutive numbering does not always work for POWERPC. These indexes are reflected in /proc/device-tree/cpus/PowerPC,POWER7@XX and used to call KVM VCPU's ioctls. In order to achieve this, kvmppc_fi

[Qemu-devel] [PATCH v7 0/2] target-ppc: CPU device tree id

2014-02-01 Thread Alexey Kardashevskiy
This is some cleanup. Please, comment. Thanks! Changes: v7: * cleaned up a bit of QOM use v6: * removed kvmppc_fixup_cpu() v5: * cleanup * removed cpustate::kvm_cpu_id * split into 2 patches - new PPC API and the usage of the API Alexey Kardashevskiy (2): target-ppc: add PowerPCCPU::cpu_dt_i

Re: [Qemu-devel] OVMF with q35 (was: osx bootloader)

2014-02-01 Thread BALATON Zoltan
On Sat, 1 Feb 2014, Alexander Graf wrote: The assert happens inside the guest, so I'm afraid you'll have to add debugging output to edk2. Just print out the port number if port & 3 in the code path above. I've come this same conclusion too after I managed to enable qemu iport debugging but it

Re: [Qemu-devel] [PATCH 1/4] qemu-io: New option "-a" to aio_read and aio_write

2014-02-01 Thread Fam Zheng
On Wed, 01/29 16:58, Paolo Bonzini wrote: > Il 29/01/2014 09:40, Fam Zheng ha scritto: > >This option will enable accounting of aio requests. > > > >Signed-off-by: Fam Zheng > >--- > > qemu-io-cmds.c | 35 +++ > > 1 file changed, 31 insertions(+), 4 deletions(-) > >

[Qemu-devel] [Bug 601946] Re: [Feature request] qemu-img multi-threaded compressed image conversion

2014-02-01 Thread oernii
I'd like to note, that I use qemu-img to backup snapshots of images. This works fine, it's just so slow. Of my 24 cores only 1 is used to compress the image. It could be so much faster. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.

Re: [Qemu-devel] [PATCH v3 01/19] bsd-user: refresh freebsd system call numbers

2014-02-01 Thread Ed Maste
On 27 January 2014 14:30, Peter Maydell wrote: > > though this patch would look much nicer if you hadn't > changed every single line in the file including the > ones for syscalls we already had the #defines for. The new version of this file was generated from the canonical FreeBSD syscall numberi

Re: [Qemu-devel] [PATCH] linux-user: Fix trampoline code for CRIS

2014-02-01 Thread Peter Maydell
On 1 February 2014 08:41, Stefan Weil wrote: > __put_user can write bytes, words (2 bytes) or longwords (4 bytes). > Here obviously words should have been written, but bytes were written, > so values like 0x9c5f were truncated to 0x5f. > > Fix this by changing retcode from uint8_t to to uint16_t i

[Qemu-devel] [PATCH v3] qmp: expose list of supported character device backends

2014-02-01 Thread Martin Kletzander
Introduce 'query-chardev-backends' QMP command which lists all supported character device backends. Signed-off-by: Martin Kletzander --- v3: - Omit commas at the end of list in JSON v2: - Version changed from "1.8.0" to "2.0" qapi-schema.json | 22 ++ qemu-char.c | 19

Re: [Qemu-devel] Native MinGW build crashes when partitioning hard disk in guest

2014-02-01 Thread Stefan Weil
Am 01.02.2014 11:47, schrieb Legorol: > (I am reposting this as my first post seems to have fallen through the > cracks.) > > I am building the official Qemu 1.7.0 release from source natively under > MinGW for myself. I execute the i386 target. Qemu starts fine, but it > crashes when I try to par

Re: [Qemu-devel] [PATCH v2] qmp: expose list of supported character device backends

2014-02-01 Thread Martin Kletzander
On Fri, Jan 31, 2014 at 10:20:42AM -0700, Eric Blake wrote: > On 01/31/2014 09:49 AM, Martin Kletzander wrote: > > Introduce 'query-chardev-backends' QMP command which lists all > > supported character device backends. > > > > Signed-off-by: Martin Kletzander > > --- > > v2: > > - Version changed

[Qemu-devel] Native MinGW build crashes when partitioning hard disk in guest

2014-02-01 Thread Legorol
(I am reposting this as my first post seems to have fallen through the cracks.) I am building the official Qemu 1.7.0 release from source natively under MinGW for myself. I execute the i386 target. Qemu starts fine, but it crashes when I try to partition a 2G hard disk under an MS-DOS 6.22 gue

Re: [Qemu-devel] osx bootloader

2014-02-01 Thread Alexander Graf
> Am 01.02.2014 um 01:38 schrieb BALATON Zoltan : > >> On Wed, 29 Jan 2014, Gabriel L. Somlo wrote: >> I managed to boot OVMF following their wiki; It seems to work with kvm >> enabled, but not with -M q35. My current command line is: > > I've tried with the version compiled from the edk2 HEAD

Re: [Qemu-devel] [Qemu-trivial] [PATCH] tests/.gitignore: Ignoretests/check-qom-interfacee

2014-02-01 Thread Michael Tokarev
27.01.2014 15:20, Alex Bennée wrote: > f...@redhat.com writes: > >> Signed-off-by: Fam Zheng >> --- >> tests/.gitignore | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git a/tests/.gitignore b/tests/.gitignore >> index 1aed224..9ba9d96 100644 >> --- a/tests/.gitignore >> +++ b/tests/.gitig

Re: [Qemu-devel] [Qemu-trivial] [PATCH v2 0/6] configure: make output and errors more friendly

2014-02-01 Thread Michael Tokarev
24.01.2014 05:39, Stewart Smith wrote: > This expands on my previous patch which was just the "configure: helpfully > output package names for some missing dependencies" patch. > > Based on feedback I've added a hint to the could not find DTC error message. > > There's also other changes that wer

Re: [Qemu-devel] [Qemu-trivial] [PATCH] ide: cmd_exec_dev_diagnostic() always set error register to 0x01

2014-02-01 Thread Michael Tokarev
15.01.2014 20:15, Michael Tokarev wrote: > 25.12.2013 18:17, David du Colombier wrote: >> This notably fix IDE CD probing on the Plan 9 operating system, >> which rely on the error register set by the Execute Device >> Diagnostic command to detect drive configurations. > > While this is a one-line

Re: [Qemu-devel] [Qemu-trivial] [PATCH] qapi: cleanup redundant variable

2014-02-01 Thread Michael Tokarev
23.01.2014 12:54, Amos Kong wrote: > No need to re-append an expr list, it's ok to return schema.exprs > > Signed-off-by: Amos Kong > --- > scripts/qapi.py | 5 + > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/scripts/qapi.py b/scripts/qapi.py > index 7b92689..718f1ad 100

Re: [Qemu-devel] [Qemu-trivial] [PATCH] hw/ppc: Remove unused defines

2014-02-01 Thread Michael Tokarev
Unused in the code indeed. Thanks, applied to the trivial-patches queue. /mjt

Re: [Qemu-devel] [Qemu-trivial] [PATCH] readline: Add missing GCC_FMT_ATTR

2014-02-01 Thread Michael Tokarev
25.01.2014 21:18, Stefan Weil wrote: > This fixes a compiler warning with -Werror=missing-format-attribute > and allows improved compiler checks for variable argument lists. Thanks, applied to the trivial-patches queue. /mjt

Re: [Qemu-devel] [Qemu-trivial] [PATCH] tcg/s390: Remove sigill_handler

2014-02-01 Thread Michael Tokarev
30.01.2014 01:08, Richard Henderson wrote: > Commit c9baa30f42a87f61627391698f63fa4d1566d9d8 failed to > delete all of the relevant code, leading to Werrors about > unused symbols. Applied to the trivial-patches queue, thank you! /mjt

Re: [Qemu-devel] [Qemu-trivial] [PATCH] i386: Add missing include file for QEMU_PACKED

2014-02-01 Thread Michael Tokarev
01.02.2014 02:05, Stefan Weil wrote: > Instead of packing BiosLinkerLoaderEntry, an unused global variable called > QEMU_PACKED was created (detected by smatch static code analysis). > > Including qemu-common.h gets the right definition and also includes some > standard include files which now can

[Qemu-devel] [PATCH] linux-user: Fix trampoline code for CRIS

2014-02-01 Thread Stefan Weil
__put_user can write bytes, words (2 bytes) or longwords (4 bytes). Here obviously words should have been written, but bytes were written, so values like 0x9c5f were truncated to 0x5f. Fix this by changing retcode from uint8_t to to uint16_t in target_signal_frame and also in the unused rt_signal_

Re: [Qemu-devel] [PATCH v6 2/2] target-ppc: spapr: e500: fix to use cpu_dt_id

2014-02-01 Thread Andreas Färber
Am 01.02.2014 01:24, schrieb Alexey Kardashevskiy: > diff --git a/hw/ppc/spapr_rtas.c b/hw/ppc/spapr_rtas.c > index 1cb276d..4e0a70e 100644 > --- a/hw/ppc/spapr_rtas.c > +++ b/hw/ppc/spapr_rtas.c > @@ -131,7 +131,7 @@ static void rtas_query_cpu_stopped_state(PowerPCCPU *cpu_, >