Re: [Qemu-devel] [PATCH v2 10/23] target-arm: implement CPACR register logic

2014-05-14 Thread Sergey Fedorov
On 13.05.2014 20:15, Fabian Aggeler wrote: From: Sergey Fedorov s.fedo...@samsung.com CPACR register allows to control access rights to coprocessor 0-13 interfaces. Bits corresponding to unimplemented coprocessors should be RAZ/WI. QEMU implements only VFP coprocessor on ARMv6+ targets. So

Re: [Qemu-devel] [PATCH v2 13/23] target-arm: Split TLB for secure state and EL3 in Aarch64

2014-05-14 Thread Sergey Fedorov
On 13.05.2014 20:15, Fabian Aggeler wrote: This patch is based on ideas found in a patch at git://github.com/jowinter/qemu-trustzone.git a9ad01767c4b25e14700b5682a412f4fd8146ee8 by Johannes Winter johannes.win...@iaik.tugraz.at. Each world (secure and non-secure) has its own MMU state.

Re: [Qemu-devel] [PATCH] Remove g_sequence_lookup from qemu-img help function

2014-05-14 Thread Cornelia Huck
On Tue, 13 May 2014 17:11:06 -0400 Mike Day ncm...@ncultra.org wrote: g_sequence_lookup is not supported by glib 2.28. The usage of g_sequence_lookup is not essential in this context (it's a safeguard against duplicate values in the help message). Removing the call enables the build on all

Re: [Qemu-devel] [PATCH] kvmclock: Ensure time in migration never goes backward

2014-05-14 Thread Marcelo Tosatti
On Fri, May 09, 2014 at 01:53:32PM +0200, Paolo Bonzini wrote: Il 09/05/2014 04:28, Marcelo Tosatti ha scritto: Alex, Unability to upgrade systems is not an excuse to fix the bug in the wrong place. It may be an excuse to fix the bug in both places though. Paolo Actually, its messy to

Re: [Qemu-devel] Migration from older Qemu to Qemu 2.0.0 does not work

2014-05-14 Thread Stefan Priebe - Profihost AG
Hi, i now was able to catch the error. It is: Length mismatch: :00:12.0/virtio-net-pci.rom: 4 in != 1 qemu: warning: error while loading state for instance 0x0 of device 'ram' load of migration failed Stefan Am 09.05.2014 19:05, schrieb Paolo Bonzini: Il 09/05/2014 15:13, Stefan

[Qemu-devel] [PATCH 03/24] tcg-mips: Use J and JAL opcodes

2014-05-14 Thread Richard Henderson
For userland builds calls will normally be in range, and for the exit_tb opcode the branch to the epilogue. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/mips/tcg-target.c | 46 -- 1 file changed, 40 insertions(+), 6 deletions(-) diff

[Qemu-devel] [PATCH 07/24] tcg-mips: Convert to new qemu_l/st helpers

2014-05-14 Thread Richard Henderson
In addition, fill delay slots calling the helpers and tail call to the store helpers. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/mips/tcg-target.c | 107 ++ 1 file changed, 56 insertions(+), 51 deletions(-) diff --git

[Qemu-devel] [PATCH 01/24] tcg-mips: Layout executable and code_gen_buffer

2014-05-14 Thread Richard Henderson
Choosing good addresses for them means we can use JAL for helper calls. Signed-off-by: Richard Henderson r...@twiddle.net --- configure | 7 +-- translate-all.c | 13 + 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/configure b/configure index

[Qemu-devel] [PATCH 02/24] tcg-mips: Constrain the code_gen_buffer to be within one 256mb segment

2014-05-14 Thread Richard Henderson
This assures us use of J for exit_tb and goto_tb, and JAL for calling into the generated bswap helpers. Signed-off-by: Richard Henderson r...@twiddle.net --- translate-all.c | 90 + 1 file changed, 85 insertions(+), 5 deletions(-) diff

[Qemu-devel] [PATCH 00/24] tcg mips updates

2014-05-14 Thread Richard Henderson
Obviously the most important part here is the ldst updates, but there are all sorts of opportunities for improvement in this backend. r~ Richard Henderson (24): tcg-mips: Layout executable and code_gen_buffer tcg-mips: Constrain the code_gen_buffer to be within one 256mb segment

[Qemu-devel] [PATCH 04/24] tcg-mips: Fill the exit_tb delay slot

2014-05-14 Thread Richard Henderson
Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/mips/tcg-target.c | 25 ++--- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/tcg/mips/tcg-target.c b/tcg/mips/tcg-target.c index d4236c0..2d2073f 100644 --- a/tcg/mips/tcg-target.c +++

[Qemu-devel] [PATCH 11/24] tcg-mips: Use T9 for TCG_TMP1

2014-05-14 Thread Richard Henderson
T0 is an argument register for the n32 and n64 abis. T9 is the call address register for the abis, and is more directly under the control of the backend. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/mips/tcg-target.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[Qemu-devel] [PATCH 12/24] tcg-mips: Use EXT for AND on mips32r2

2014-05-14 Thread Richard Henderson
At the same time, tidy deposit by introducing tcg_out_opc_bf. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/mips/tcg-target.c | 60 ++- tcg/mips/tcg-target.h | 4 2 files changed, 50 insertions(+), 14 deletions(-) diff --git

[Qemu-devel] [PATCH 08/24] tcg-mips: Convert to new_ldst

2014-05-14 Thread Richard Henderson
Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/mips/tcg-target.c | 76 --- tcg/mips/tcg-target.h | 2 +- 2 files changed, 25 insertions(+), 53 deletions(-) diff --git a/tcg/mips/tcg-target.c b/tcg/mips/tcg-target.c index

[Qemu-devel] [PATCH 14/24] tcg-mips: Fix subtract immediate range

2014-05-14 Thread Richard Henderson
Since we must use ADDUI, we would generate incorrect code for -32768. Leaving off subtract of +32768 makes things easier for a follow-on patch. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/mips/tcg-target.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-)

[Qemu-devel] [PATCH 06/24] tcg-mips: Move softmmu slow path out of line

2014-05-14 Thread Richard Henderson
At the same time, tidy up the call helpers, avoiding a memory reference. Split out several subroutines. Use TCGMemOp constants. Make endianness selectable at runtime. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/mips/tcg-target.c | 772

[Qemu-devel] [PATCH 17/24] tcg-mips: Commonize opcode implementations

2014-05-14 Thread Richard Henderson
Most opcodes fall in to one of a couple of patterns. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/mips/tcg-target.c | 212 +++--- 1 file changed, 98 insertions(+), 114 deletions(-) diff --git a/tcg/mips/tcg-target.c

[Qemu-devel] [PATCH 19/24] tcg-mips: Simplify brcond

2014-05-14 Thread Richard Henderson
Use the same table to fold comparisons as with setcond. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/mips/tcg-target.c | 87 --- 1 file changed, 41 insertions(+), 46 deletions(-) diff --git a/tcg/mips/tcg-target.c

[Qemu-devel] [PATCH 13/24] tcg-mips: Name the opcode enumeration

2014-05-14 Thread Richard Henderson
And use it in the opcode emission functions. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/mips/tcg-target.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tcg/mips/tcg-target.c b/tcg/mips/tcg-target.c index 54571fb..920208a 100644 ---

[Qemu-devel] [PATCH 05/24] tcg-mips: Split large ldst offsets

2014-05-14 Thread Richard Henderson
Use this to reduce goto_tb by one insn. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/mips/tcg-target.c | 23 --- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/tcg/mips/tcg-target.c b/tcg/mips/tcg-target.c index 2d2073f..5ccfb1d 100644 ---

[Qemu-devel] [PATCH 23/24] tcg-mips: Simplify movcond

2014-05-14 Thread Richard Henderson
Use the same table to fold comparisons as with setcond. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/mips/tcg-target.c | 66 +-- 1 file changed, 17 insertions(+), 49 deletions(-) diff --git a/tcg/mips/tcg-target.c

[Qemu-devel] [PATCH 09/24] tcg-mips: Rearrange register allocation

2014-05-14 Thread Richard Henderson
Use FP (also known as S8) as a normal call-saved register. Include T0 in the allocation order and call-clobbered list even though it's currently used as a TCG temporary. Put the argument registers at the end of the allocation order. Signed-off-by: Richard Henderson r...@twiddle.net ---

[Qemu-devel] [PATCH 16/24] tcg-mips: Improve add2/sub2

2014-05-14 Thread Richard Henderson
Reduce insn count from 5 to either 3 or 4. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/mips/tcg-target.c | 87 +-- 1 file changed, 56 insertions(+), 31 deletions(-) diff --git a/tcg/mips/tcg-target.c b/tcg/mips/tcg-target.c index

[Qemu-devel] How to use qtest

2014-05-14 Thread Gonglei (Arei)
Hi, I know qemu has a test framework, and I get some information from http://wiki.qemu.org/Features/QTest Recently I want to use qtest for some modules, but I have no idea how to run those tests. Such as tests/ e1000-test Any guidance? Or how to? Thanks in advance! Best regards, -Gonglei

[Qemu-devel] [PATCH 20/24] tcg-mips: Simplify setcond2

2014-05-14 Thread Richard Henderson
Using tcg_unsigned_cond and tcg_high_cond. Also, move the function up in the file for future cleanups. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/mips/tcg-target.c | 95 +-- 1 file changed, 31 insertions(+), 64 deletions(-) diff

[Qemu-devel] [PATCH 10/24] tcg-mips: Introduce TCG_TMP0, TCG_TMP1

2014-05-14 Thread Richard Henderson
Use these instead of hard-coding the registers to use for temporaries. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/mips/tcg-target.c | 231 +- 1 file changed, 117 insertions(+), 114 deletions(-) diff --git a/tcg/mips/tcg-target.c

[Qemu-devel] [PATCH 21/24] tcg-mips: Improve setcond eq/ne vs zeros

2014-05-14 Thread Richard Henderson
The original code results in one too many insns per zero present in the input. And since comparing 64-bit numbers vs zero is common... Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/mips/tcg-target.c | 40 1 file changed, 36 insertions(+), 4

[Qemu-devel] [PATCH 18/24] tcg-mips: Simplify setcond

2014-05-14 Thread Richard Henderson
Use a table to fold comparisons to less-than. Also, move the function up in the file for futher simplifications. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/mips/tcg-target.c | 125 +++--- 1 file changed, 67 insertions(+), 58 deletions(-)

[Qemu-devel] [PATCH 22/24] tcg-mips: Simplify brcond2

2014-05-14 Thread Richard Henderson
Emitting a single branch instead of (up to) 3, using setcond2 to generate the composite compare. Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/mips/tcg-target.c | 77 +-- 1 file changed, 20 insertions(+), 57 deletions(-) diff --git

[Qemu-devel] [PATCH 24/24] tcg-mips: Enable direct chaining of TBs

2014-05-14 Thread Richard Henderson
Now that the code_gen_buffer is constrained to not cross 256mb regions, we are assured that we can use J to reach another TB. Signed-off-by: Richard Henderson r...@twiddle.net --- include/exec/exec-all.h | 9 - tcg/mips/tcg-target.c | 11 ++- 2 files changed, 14 insertions(+),

Re: [Qemu-devel] How to use qtest

2014-05-14 Thread Markus Armbruster
Gonglei (Arei) arei.gong...@huawei.com writes: Hi, I know qemu has a test framework, and I get some information from http://wiki.qemu.org/Features/QTest Recently I want to use qtest for some modules, but I have no idea how to run those tests. Such as tests/ e1000-test Any guidance? Or

[Qemu-devel] [PATCH 15/24] tcg-mips: Hoist args loads

2014-05-14 Thread Richard Henderson
Signed-off-by: Richard Henderson r...@twiddle.net --- tcg/mips/tcg-target.c | 201 ++ 1 file changed, 103 insertions(+), 98 deletions(-) diff --git a/tcg/mips/tcg-target.c b/tcg/mips/tcg-target.c index 5021dea..516c2b7 100644 ---

Re: [Qemu-devel] [PATCH] kvmclock: Ensure time in migration never goes backward

2014-05-14 Thread Marcelo Tosatti
On Mon, May 12, 2014 at 10:26:37PM +0200, Alexander Graf wrote: On 09.05.14 13:53, Paolo Bonzini wrote: Il 09/05/2014 04:28, Marcelo Tosatti ha scritto: Alex, Unability to upgrade systems is not an excuse to fix the bug in the wrong place. It may be an excuse to fix the bug in both

Re: [Qemu-devel] [PATCH] Remove g_sequence_lookup from qemu-img help function

2014-05-14 Thread Kevin Wolf
Am 13.05.2014 um 23:48 hat Eric Blake geschrieben: On 05/13/2014 03:11 PM, Mike Day wrote: Subject line could have used a [PATCHv2] designation to make it obvious this is a fixed version. But that doesn't affect what goes into git. g_sequence_lookup is not supported by glib 2.28. The

Re: [Qemu-devel] Curl updates

2014-05-14 Thread Kevin Wolf
Am 13.05.2014 um 21:47 hat Eric Blake geschrieben: On 05/08/2014 02:42 AM, Matthew Booth wrote: [PATCH 1/4] curl: Fix parsing of readahead option from filename [PATCH 2/4] curl: Add sslverify option [PATCH 3/4] curl: Add usage documentation The first 3 patches are reposted with updates

Re: [Qemu-devel] [PATCH] qemu-img: sort block formats in help message

2014-05-14 Thread Kevin Wolf
Am 13.05.2014 um 18:07 hat Mike Day geschrieben: The help message for qemu-img lists the supported block formats, of which there are 27 as of version 2.0.50. The formats are printed in the order of their driver's position in a linked list, which appears random. This patch prints the formats in

Re: [Qemu-devel] How to use qtest

2014-05-14 Thread Gonglei (Arei)
-Original Message- From: Markus Armbruster [mailto:arm...@redhat.com] Sent: Wednesday, May 14, 2014 3:34 PM To: Gonglei (Arei) Cc: qemu-devel@nongnu.org; Andreas Färber Subject: Re: [Qemu-devel] How to use qtest Gonglei (Arei) arei.gong...@huawei.com writes: Hi, I know

[Qemu-devel] [PATCH 1/1] x86: enforce DPL checking on task gate switches

2014-05-14 Thread Alex Zuepke
x86 software emulation (non-KVM mode) does not check privilege levels on task gate switches. An int $8 in user mode panics any OS kernel by a forbidden direct call into the double fault handler. This testcase crashes a Linux kernel with a double fault panic: $ cat test.c int main(void) {

Re: [Qemu-devel] [PATCH] qemu-iotests: Fix core dump suppression in test 039

2014-05-14 Thread Kevin Wolf
Am 13.05.2014 um 19:44 hat Markus Armbruster geschrieben: Fam Zheng f...@redhat.com writes: On Tue, 05/13 10:46, Markus Armbruster wrote: The shell script attempts to suppress core dumps like this: old_ulimit=$(ulimit -c) ulimit -c 0 $QEMU_IO arg... ulimit -c

Re: [Qemu-devel] [PATCH] SMI handler should set the CPL to zero and save and restore it on rsm.

2014-05-14 Thread Paolo Bonzini
Il 14/05/2014 00:07, Kevin O'Connor ha scritto: On Tue, May 13, 2014 at 02:39:20PM -0400, Kevin O'Connor wrote: On Tue, May 13, 2014 at 08:24:47PM +0200, Paolo Bonzini wrote: Il 27/04/2014 19:25, Kevin O'Connor ha scritto: I was wondering about that as well. The Intel docs state that the CPL

Re: [Qemu-devel] [PATCH 0/2] Accommodate VHDX images created by Disk2VHD

2014-05-14 Thread Kevin Wolf
Am 13.05.2014 um 16:00 hat Jeff Cody geschrieben: This series adds support for VHDX images created with Microsofts p2v tool Disk2VHD. Jeff Cody (2): block: vhdx - account for identical header sections block: add test for vhdx image created by Disk2VHD block/vhdx.c

Re: [Qemu-devel] [PATCH] qemu-img: sort block formats in help message

2014-05-14 Thread Fam Zheng
On Wed, 05/14 09:50, Kevin Wolf wrote: Am 13.05.2014 um 18:07 hat Mike Day geschrieben: The help message for qemu-img lists the supported block formats, of which there are 27 as of version 2.0.50. The formats are printed in the order of their driver's position in a linked list, which

Re: [Qemu-devel] Migration from older Qemu to Qemu 2.0.0 does not work

2014-05-14 Thread Paolo Bonzini
Il 14/05/2014 09:17, Stefan Priebe - Profihost AG ha scritto: i now was able to catch the error. It is: Length mismatch: :00:12.0/virtio-net-pci.rom: 4 in != 1 qemu: warning: error while loading state for instance 0x0 of device 'ram' load of migration failed This is a bug of your

Re: [Qemu-devel] [PATCH] Remove g_sequence_lookup from qemu-img help function

2014-05-14 Thread Peter Maydell
On 14 May 2014 08:44, Kevin Wolf kw...@redhat.com wrote: Am 13.05.2014 um 23:48 hat Eric Blake geschrieben: On 05/13/2014 03:11 PM, Mike Day wrote: Subject line could have used a [PATCHv2] designation to make it obvious this is a fixed version. But that doesn't affect what goes into git.

Re: [Qemu-devel] Migration from older Qemu to Qemu 2.0.0 does not work

2014-05-14 Thread Stefan Priebe - Profihost AG
Am 14.05.2014 10:11, schrieb Paolo Bonzini: Il 14/05/2014 09:17, Stefan Priebe - Profihost AG ha scritto: i now was able to catch the error. It is: Length mismatch: :00:12.0/virtio-net-pci.rom: 4 in != 1 qemu: warning: error while loading state for instance 0x0 of device 'ram'

Re: [Qemu-devel] Migration from older Qemu to Qemu 2.0.0 does not work

2014-05-14 Thread Paolo Bonzini
Il 14/05/2014 10:29, Stefan Priebe - Profihost AG ha scritto: Hi, i compile qemu on my own. I have the rom files under /usr/share/kvm and they look like this: ls -la /usr/share/kvm/*.rom -rw-r--r-- 1 root root 173568 May 14 09:39 /usr/share/kvm/efi-e1000.rom -rw-r--r-- 1 root root 174592 May

Re: [Qemu-devel] Migration from older Qemu to Qemu 2.0.0 does not work

2014-05-14 Thread Stefan Priebe - Profihost AG
Am 14.05.2014 10:36, schrieb Paolo Bonzini: Il 14/05/2014 10:29, Stefan Priebe - Profihost AG ha scritto: Hi, i compile qemu on my own. I have the rom files under /usr/share/kvm and they look like this: ls -la /usr/share/kvm/*.rom -rw-r--r-- 1 root root 173568 May 14 09:39

Re: [Qemu-devel] [PATCH] KVM: x86: get/set CPL separately from CS

2014-05-14 Thread Paolo Bonzini
Il 13/05/2014 17:04, Paolo Bonzini ha scritto: KVM used to assume that CS.RPL could always be used as the CPL value when KVM_SET_SREGS is called. QEMU could call KVM_GET_SREGS and the KVM_SET_SREGS exactly after CR0.PE has been set to 1, but before the long jump that reloads CS. Then, KVM

[Qemu-devel] [Bug 1303926] Re: qemu-system-x86_64 crashed with SIGABRT

2014-05-14 Thread f3a97
Hi Serge, I keep getting the crash notification due to kvm crashes with the same bug title as this one. I see that the status is Fix Released, I'm on precise and fully up-to-date. My package is: ii qemu-kvm 1.0+noroms-0ubuntu14.14 Full virtualization on i386 and

Re: [Qemu-devel] [PATCH v1 00/22] target-arm: Preparations for A64 EL2 and 3

2014-05-14 Thread Aggeler Fabian
I see. What is Greg Bellows working on exactly? Also peripherals like TZASC, TZPC,...? My plan is to focus on them now if no one else is working on them. What do you suggest to minimize overlap? Thanks, Fabian From: Peter Maydell

Re: [Qemu-devel] [PATCH v27 00/33] replace QEMUOptionParameter with QemuOpts

2014-05-14 Thread Chun Yan Liu
Hi, any feedback about this version? http://lists.gnu.org/archive/html/qemu-devel/2014-05/msg01098.html http://lists.gnu.org/archive/html/qemu-devel/2014-05/msg01135.html - Chunyan On 5/7/2014 at 06:17 PM, in message 536A0846.4C2 : 102 : 21807, Chun Yan Liu wrote: My git-send-email died

Re: [Qemu-devel] How to use qtest

2014-05-14 Thread Andreas Färber
Hi, Am 14.05.2014 09:50, schrieb Gonglei (Arei): -Original Message- From: Markus Armbruster [mailto:arm...@redhat.com] Sent: Wednesday, May 14, 2014 3:34 PM To: Gonglei (Arei) Cc: qemu-devel@nongnu.org; Andreas Färber Subject: Re: [Qemu-devel] How to use qtest Gonglei (Arei)

Re: [Qemu-devel] [PATCH v1 RFC 09/10] QEMU: s390: cpu model QMP query-cpu-model

2014-05-14 Thread Michael Mueller
On Tue, 13 May 2014 09:29:37 -0600 Eric Blake ebl...@redhat.com wrote: Hi Eric, On 05/13/2014 09:00 AM, Michael Mueller wrote: This patch implements a new QMP request named query-cpu-model. It returns the cpu model of cpu 0. eg: request: '{execute : query-cpu-model } answer:

Re: [Qemu-devel] [PATCH 05/18] block/ssh: Drop superfluous libssh2_session_last_errno() calls

2014-05-14 Thread Richard W.M. Jones
On Tue, May 13, 2014 at 06:02:39PM +0200, Markus Armbruster wrote: libssh2_session_last_error() already returns the error code. Cc: Richard W.M. Jones rjo...@redhat.com Signed-off-by: Markus Armbruster arm...@redhat.com --- block/ssh.c | 9 - 1 file changed, 4 insertions(+), 5

Re: [Qemu-devel] [PATCH 09/18] block/ssh: Propagate errors to open and create methods

2014-05-14 Thread Richard W.M. Jones
The last four patches are just a refactoring to use qemu error handling, therefore ACK to all four of them. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-p2v converts physical

Re: [Qemu-devel] [PATCH] Fix 'name' option to work with -readconfig

2014-05-14 Thread Markus Armbruster
Dr. David Alan Gilbert (git) dgilb...@redhat.com writes: From: Dr. David Alan Gilbert dgilb...@redhat.com The 'name' option silently failed when used in config files ( http://lists.gnu.org/archive/html/qemu-devel/2014-04/msg00378.html ) Signed-off-by: Dr. David Alan Gilbert

Re: [Qemu-devel] Migration from older Qemu to Qemu 2.0.0 does not work

2014-05-14 Thread Paolo Bonzini
Il 14/05/2014 10:38, Stefan Priebe - Profihost AG ha scritto: Currently it has the same as i already updated the package there too. So you mean i had done a mistake compiling the old package - so it had wrong sizes? Yes, probably. Can you do an info mtree for a machine that's running on the

Re: [Qemu-devel] [PATCH] qemu-iotests: Fix core dump suppression in test 039

2014-05-14 Thread Markus Armbruster
Kevin Wolf kw...@redhat.com writes: Am 13.05.2014 um 19:44 hat Markus Armbruster geschrieben: Fam Zheng f...@redhat.com writes: On Tue, 05/13 10:46, Markus Armbruster wrote: The shell script attempts to suppress core dumps like this: old_ulimit=$(ulimit -c) ulimit -c 0

Re: [Qemu-devel] Migration from older Qemu to Qemu 2.0.0 does not work

2014-05-14 Thread Stefan Priebe - Profihost AG
Am 14.05.2014 11:00, schrieb Paolo Bonzini: Il 14/05/2014 10:38, Stefan Priebe - Profihost AG ha scritto: Currently it has the same as i already updated the package there too. So you mean i had done a mistake compiling the old package - so it had wrong sizes? Yes, probably. Can you do

Re: [Qemu-devel] How to use qtest

2014-05-14 Thread Gonglei (Arei)
Hi, Andreas -Original Message- From: Andreas Färber [mailto:afaer...@suse.de] Sent: Wednesday, May 14, 2014 5:06 PM To: Gonglei (Arei) Cc: Markus Armbruster; qemu-devel@nongnu.org Subject: Re: [Qemu-devel] How to use qtest Hi, Am 14.05.2014 09:50, schrieb Gonglei (Arei):

Re: [Qemu-devel] [PATCH RFC V2] virtio-net: announce self by guest

2014-05-14 Thread Jason Wang
On 05/12/2014 03:22 PM, Michael S. Tsirkin wrote: On Fri, Apr 11, 2014 at 10:54:47AM +0800, Jason Wang wrote: It's hard to track all mac addresses and their configurations (e.g vlan or ipv6) in qemu. Without those informations, it's impossible to build proper garp packet after migration.

Re: [Qemu-devel] Feature list for 2.1

2014-05-14 Thread Anshul Makkar
Hi Peter, So it means there are no targets or target list of features that should be supported in 2.1 ? If someone wants to pick a particular feature from some target list and want to contribute to it, where he should look for. Thanks On Tue, May 13, 2014 at 5:58 PM, Peter Maydell

Re: [Qemu-devel] How to use qtest

2014-05-14 Thread Markus Armbruster
Gonglei (Arei) arei.gong...@huawei.com writes: -Original Message- From: Markus Armbruster [mailto:arm...@redhat.com] Sent: Wednesday, May 14, 2014 3:34 PM To: Gonglei (Arei) Cc: qemu-devel@nongnu.org; Andreas Färber Subject: Re: [Qemu-devel] How to use qtest Gonglei (Arei)

Re: [Qemu-devel] [PATCH] Fix 'name' option to work with -readconfig

2014-05-14 Thread Dr. David Alan Gilbert
* Markus Armbruster (arm...@redhat.com) wrote: Dr. David Alan Gilbert (git) dgilb...@redhat.com writes: From: Dr. David Alan Gilbert dgilb...@redhat.com The 'name' option silently failed when used in config files ( http://lists.gnu.org/archive/html/qemu-devel/2014-04/msg00378.html )

Re: [Qemu-devel] Migration from older Qemu to Qemu 2.0.0 does not work

2014-05-14 Thread Paolo Bonzini
Il 14/05/2014 11:25, Stefan Priebe - Profihost AG ha scritto: Currently it has the same as i already updated the package there too. So you mean i had done a mistake compiling the old package - so it had wrong sizes? Yes, probably. Can you do an info mtree for a machine that's running on

[Qemu-devel] [Bug 1308341] Re: Multiple CPUs causes blue screen on Windows guest

2014-05-14 Thread Hein Gustavsen
Adding hyperv seemed to work for me too. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1308341 Title: Multiple CPUs causes blue screen on Windows guest Status in QEMU: New Status in “qemu”

[Qemu-devel] [PATCH v3.2 01/31] NUMA: move numa related code to new file numa.c

2014-05-14 Thread Hu Tao
From: Wanlong Gao gaowanl...@cn.fujitsu.com Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com Reviewed-by: Eduardo Habkost ehabk...@redhat.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- Makefile.target | 2 +- cpus.c

[Qemu-devel] [PATCH v3.2 06/31] man: improve -numa doc

2014-05-14 Thread Hu Tao
From: Luiz Capitulino lcapitul...@redhat.com The -numa option documentation in qemu's manpage lacks the command-line options and some information regarding how it relates to options -m and -smp. This commit fills in the missing text. Signed-off-by: Luiz Capitulino lcapitul...@redhat.com

[Qemu-devel] [PATCH v3.2 10/31] pc: pass QEMUMachineInitArgs to pc_memory_init

2014-05-14 Thread Hu Tao
From: Paolo Bonzini pbonz...@redhat.com Reviewed-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- hw/i386/pc.c | 11 +-- hw/i386/pc_piix.c| 8 +++- hw/i386/pc_q35.c | 4 +---

[Qemu-devel] [PATCH v3.2 03/31] NUMA: Add numa_info structure to contain numa nodes info

2014-05-14 Thread Hu Tao
From: Wanlong Gao gaowanl...@cn.fujitsu.com Add the numa_info structure to contain the numa nodes memory, VCPUs information and the future added numa nodes host memory policies. Reviewed-by: Eduardo Habkost ehabk...@redhat.com Signed-off-by: Andre Przywara andre.przyw...@amd.com Signed-off-by:

[Qemu-devel] [PATCH v3.2 05/31] NUMA: expand MAX_NODES from 64 to 128

2014-05-14 Thread Hu Tao
From: Wanlong Gao gaowanl...@cn.fujitsu.com libnuma choosed 128 for MAX_NODES, so we follow libnuma here. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com Reviewed-by: Eduardo Habkost ehabk...@redhat.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Hu Tao

[Qemu-devel] [PATCH v3.2 07/31] vl: redo -object parsing

2014-05-14 Thread Hu Tao
From: Paolo Bonzini pbonz...@redhat.com Follow the lines of the HMP implementation, using OptsVisitor to parse the options. This gives access to OptsVisitor's rich parsing of integer lists. Signed-off-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- vl.c |

[Qemu-devel] [PATCH v3.2 11/31] numa: introduce memory_region_allocate_system_memory

2014-05-14 Thread Hu Tao
From: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- hw/i386/pc.c| 4 +--- include/hw/boards.h | 6 +- include/sysemu/sysemu.h | 1 + numa.c | 9 + 4 files changed, 16

[Qemu-devel] [PATCH v3.2 17/31] memory: move preallocation code out of exec.c

2014-05-14 Thread Hu Tao
From: Paolo Bonzini pbonz...@redhat.com So that backends can use it. Signed-off-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- exec.c | 44 +-- include/qemu/osdep.h | 2 ++ util/oslib-posix.c | 73

[Qemu-devel] [PATCH v3.2 25/31] hostmem: add properties for NUMA memory policy

2014-05-14 Thread Hu Tao
Signed-off-by: Hu Tao hu...@cn.fujitsu.com [Raise errors on setting properties if !CONFIG_NUMA. Add BUILD_BUG_ON checks. - Paolo] Signed-off-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Marcelo Tosatti mtosa...@redhat.com Signed-off-by: Hu Tao hu...@cn.fujitsu.com Signed-off-by: Hu Tao

[Qemu-devel] [PATCH v3.2 00/31] NUMA series, and hostmem improvements

2014-05-14 Thread Hu Tao
changes to v3.1: - return -1 in object_create() if there is an error (patch 07) - configure: change 'numactl' to 'numactl devel' (patch 24) - configure: error out if numactl-devel is not installed and user requests numa explicitly(aka --enable-numa) (patch 24) - check for invalid

[Qemu-devel] [PATCH v3.2 13/31] numa: add -numa node, memdev= option

2014-05-14 Thread Hu Tao
From: Paolo Bonzini pbonz...@redhat.com This option provides the infrastructure for binding guest NUMA nodes to host NUMA nodes. For example: -object memory-ram,size=1024M,policy=bind,host-nodes=0,id=ram-node0 \ -numa node,nodeid=0,cpus=0,memdev=ram-node0 \ -object

[Qemu-devel] [PATCH v3.2 08/31] qmp: allow object-add completion handler to get canonical path

2014-05-14 Thread Hu Tao
From: Igor Mammedov imamm...@redhat.com Add object to /objects before calling user_creatable_complete() handler, so that object might be able to call object_get_canonical_path() in its completion handler. Signed-off-by: Igor Mammedov imamm...@redhat.com Signed-off-by: Paolo Bonzini

[Qemu-devel] [PATCH v3.2 02/31] NUMA: check if the total numa memory size is equal to ram_size

2014-05-14 Thread Hu Tao
From: Wanlong Gao gaowanl...@cn.fujitsu.com If the total number of the assigned numa nodes memory is not equal to the assigned ram size, it will write the wrong data to ACPI table, then the guest will ignore the wrong ACPI table and recognize all memory to one node. It's buggy, we should check it

[Qemu-devel] [PATCH v3.2 31/31] hmp: add info memdev

2014-05-14 Thread Hu Tao
This is the hmp counterpart of qmp query-memdev. Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- hmp.c | 36 hmp.h | 1 + monitor.c | 7 +++ 3 files changed, 44 insertions(+) diff --git a/hmp.c b/hmp.c index 5c4d612..1d5bf2d 100644 --- a/hmp.c

[Qemu-devel] [PATCH v3.2 09/31] qmp: improve error reporting for -object and object-add

2014-05-14 Thread Hu Tao
From: Paolo Bonzini pbonz...@redhat.com Use QERR_INVALID_PARAMETER_VALUE for consistency. Signed-off-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- qmp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qmp.c b/qmp.c index

[Qemu-devel] [PATCH v3.2 19/31] hostmem: add file-based HostMemoryBackend

2014-05-14 Thread Hu Tao
From: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- backends/Makefile.objs | 1 + backends/hostmem-file.c | 108 2 files changed, 109 insertions(+) create mode

[Qemu-devel] [PATCH v3.2 24/31] configure: add Linux libnuma detection

2014-05-14 Thread Hu Tao
From: Wanlong Gao gaowanl...@cn.fujitsu.com Add detection of libnuma (mostly contained in the numactl package) to the configure script. Can be enabled or disabled on the command line, default is use if available. Signed-off-by: Andre Przywara andre.przyw...@amd.com Signed-off-by: Wanlong Gao

[Qemu-devel] [PATCH v3.2 20/31] hostmem: separate allocation from UserCreatable complete method

2014-05-14 Thread Hu Tao
From: Paolo Bonzini pbonz...@redhat.com This allows the superclass to set various policies on the memory region that the subclass creates. Signed-off-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- backends/hostmem-file.c | 9 -

[Qemu-devel] [PATCH v3.2 26/31] Introduce signed range.

2014-05-14 Thread Hu Tao
Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- include/qemu/range.h | 124 +++ 1 file changed, 124 insertions(+) diff --git a/include/qemu/range.h b/include/qemu/range.h index aae9720..8879f8a 100644 --- a/include/qemu/range.h +++

[Qemu-devel] [PATCH v3.2 14/31] memory: reorganize file-based allocation

2014-05-14 Thread Hu Tao
From: Paolo Bonzini pbonz...@redhat.com Split the internal interface in exec.c to a separate function, and push the check on mem_path up to memory_region_init_ram. Signed-off-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- exec.c | 105

[Qemu-devel] [PATCH v3.2 23/31] hostmem: add property to map memory with MAP_SHARED

2014-05-14 Thread Hu Tao
From: Paolo Bonzini pbonz...@redhat.com A new share property can be used with the memory-file backend to map memory with MAP_SHARED instead of MAP_PRIVATE. Signed-off-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- backends/hostmem-file.c | 26

[Qemu-devel] [PATCH v3.2 18/31] memory: move RAM_PREALLOC_MASK to exec.c, rename

2014-05-14 Thread Hu Tao
From: Paolo Bonzini pbonz...@redhat.com Prepare for adding more flags. The _MASK suffix is unique, kill it. Signed-off-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- exec.c | 9 ++--- include/exec/cpu-all.h | 3 --- 2 files changed, 6

[Qemu-devel] [PATCH v3.2 30/31] qmp: add query-memdev

2014-05-14 Thread Hu Tao
Add qmp command query-memdev to query for information of memory devices Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- numa.c | 72 qapi-schema.json | 34 ++ qmp-commands.hx | 32 +

[Qemu-devel] [PATCH v3.2 22/31] hostmem: allow preallocation of any memory region

2014-05-14 Thread Hu Tao
From: Paolo Bonzini pbonz...@redhat.com And allow preallocation of file-based memory even without -mem-prealloc. Some care is necessary because -mem-prealloc does not allow disabling preallocation for hostmem-file. Signed-off-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Hu Tao

Re: [Qemu-devel] Feature list for 2.1

2014-05-14 Thread Peter Maydell
On 14 May 2014 10:28, Anshul Makkar anshul.mak...@profitbricks.com wrote: Hi Peter, So it means there are no targets or target list of features that should be supported in 2.1 ? If someone wants to pick a particular feature from some target list and want to contribute to it, where he

[Qemu-devel] [PATCH v3.2 27/31] qapi: make string input visitor parse int list

2014-05-14 Thread Hu Tao
Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- qapi/string-input-visitor.c | 181 -- tests/test-string-input-visitor.c | 39 2 files changed, 212 insertions(+), 8 deletions(-) diff --git a/qapi/string-input-visitor.c

[Qemu-devel] [PATCH v3.2 29/31] qom: introduce object_property_get_enum and object_property_get_uint16List

2014-05-14 Thread Hu Tao
Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- include/qom/object.h | 28 qom/object.c | 35 +++ 2 files changed, 63 insertions(+) diff --git a/include/qom/object.h b/include/qom/object.h index a641dcd..b882ccc 100644 ---

[Qemu-devel] [PATCH v3.2 28/31] qapi: make string output visitor parse int list

2014-05-14 Thread Hu Tao
Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- qapi/string-output-visitor.c | 230 +++-- tests/test-string-output-visitor.c | 34 ++ 2 files changed, 254 insertions(+), 10 deletions(-) diff --git a/qapi/string-output-visitor.c

[Qemu-devel] [PATCH v3.2 16/31] memory: add error propagation to file-based RAM allocation

2014-05-14 Thread Hu Tao
From: Paolo Bonzini pbonz...@redhat.com Right now, -mem-path will fall back to RAM-based allocation in some cases. This should never happen with -object memory-file, prepare the code by adding correct error propagation. Signed-off-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Hu Tao

[Qemu-devel] [PATCH v3.2 12/31] add memdev backend infrastructure

2014-05-14 Thread Hu Tao
From: Igor Mammedov imamm...@redhat.com Provides framework for splitting host RAM allocation/ policies into a separate backend that could be used by devices. Initially only legacy RAM backend is provided, which uses memory_region_init_ram() allocator and compatible with every CLI option that

[Qemu-devel] [PATCH v3.2 21/31] hostmem: add merge and dump properties

2014-05-14 Thread Hu Tao
From: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Hu Tao hu...@cn.fujitsu.com --- backends/hostmem.c | 85 +++- include/qemu/osdep.h | 10 ++ include/sysemu/hostmem.h | 1 + 3 files

Re: [Qemu-devel] usb: usb tablet freeze when save/restore guest os

2014-05-14 Thread Paolo Bonzini
Il 14/05/2014 03:47, Gonglei (Arei) ha scritto: There was a kernel bug recently causing lost interrupts on migration, maybe this is the same (rh bug 1036478)? Paolo? Is the fix upstream? Which kernel has it? It is in 3.15, but it only affects edge-triggered interrupts, so not UHCI. Paolo

[Qemu-devel] [PATCH v3.2 15/31] memory: move mem_path handling to memory_region_allocate_system_memory

2014-05-14 Thread Hu Tao
From: Paolo Bonzini pbonz...@redhat.com Like the previous patch did in exec.c, split memory_region_init_ram and memory_region_init_ram_from_file, and push mem_path one step further up. Other RAM regions than system memory will now be backed by regular RAM. Also, boards that do not use

[Qemu-devel] [PATCH v3.2 04/31] NUMA: convert -numa option to use OptsVisitor

2014-05-14 Thread Hu Tao
From: Wanlong Gao gaowanl...@cn.fujitsu.com Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com Signed-off-by: Igor Mammedov imamm...@redhat.com Tested-by: Eduardo Habkost ehabk...@redhat.com Reviewed-by: Eduardo Habkost ehabk...@redhat.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com

  1   2   3   4   >