[Qemu-devel] [PATCHv2 17/19] unicore32: Disintegrate cpu_dump_state_ucf64 function

2012-08-09 Thread gxt
From: Guan Xuetao This patch disintegrates cpu_dump_state_ucf64 function from cpu_dump_state. Signed-off-by: Guan Xuetao --- target-unicore32/translate.c | 41 + 1 files changed, 25 insertions(+), 16 deletions(-) diff --git a/target-unicore32/translat

[Qemu-devel] [PATCHv2 12/19] unicore32-softmmu: Add puv3 dma support

2012-08-09 Thread gxt
From: Guan Xuetao This patch adds puv3 dma (Direct Memory Access) support, include dma device simulation for kernel booting. v1->v2: Add initialization to ret in puv3_dma_read. Signed-off-by: Guan Xuetao --- hw/Makefile.objs |1 + hw/puv3.c|1 + hw/puv3_dma.c| 109 +++

Re: [Qemu-devel] [PATCH 04/15] memory: MemoryRegion topology must be stable when updating

2012-08-09 Thread liu ping fan
On Thu, Aug 9, 2012 at 4:24 PM, Avi Kivity wrote: > On 08/09/2012 10:28 AM, liu ping fan wrote: >>> >>> Seems to me that nothing in memory.c can susceptible to races. It must >>> already be called under the big qemu lock, and with the exception of >>> mutators (memory_region_set_*), changes aren'

Re: [Qemu-devel] [PATCH 06/15] memory: use refcnt to manage MemoryRegion

2012-08-09 Thread liu ping fan
On Thu, Aug 9, 2012 at 4:38 PM, Avi Kivity wrote: > On 08/09/2012 10:27 AM, liu ping fan wrote: >> On Wed, Aug 8, 2012 at 5:20 PM, Avi Kivity wrote: >>> On 08/08/2012 09:25 AM, Liu Ping Fan wrote: From: Liu Ping Fan Using refcnt for mr, so we can separate mr's life cycle managemen

Re: [Qemu-devel] [PATCH 03/15] qom: introduce reclaimer to release obj

2012-08-09 Thread liu ping fan
On Thu, Aug 9, 2012 at 4:18 PM, Avi Kivity wrote: > On 08/09/2012 10:49 AM, Paolo Bonzini wrote: >> Il 09/08/2012 09:33, liu ping fan ha scritto: >>> Yes, it is to defer destructors. >>> See 0009-memory-prepare-flatview-and-radix-tree-for-rcu-style.patch >>> When MemoryRegion is _del_subregion fro

Re: [Qemu-devel] [PATCH 15/15] e1000: using new interface--unmap to unplug

2012-08-09 Thread liu ping fan
On Thu, Aug 9, 2012 at 3:40 PM, Paolo Bonzini wrote: > Il 09/08/2012 09:28, liu ping fan ha scritto: >> +static void >> +pci_e1000_unmap(PCIDevice *p) >> +{ >> +/* DO NOT FREE anything!until refcnt=0 */ >> +/* isolate from memory view */ >> +} >>> > >>> > At l

Re: [Qemu-devel] [PATCH 13/15] hotplug: introduce qdev_unplug_complete() to remove device from views

2012-08-09 Thread liu ping fan
On Thu, Aug 9, 2012 at 4:00 PM, Paolo Bonzini wrote: > Il 09/08/2012 09:28, liu ping fan ha scritto: >>> > VCPU threadI/O thread >>> > = >>> > get MMIO request >>> > rcu_read_lock() >>> > walk m

[Qemu-devel] [PATCHv2 18/19] unicore32: Close dump-option of cpu_dump_state_ucf64 function

2012-08-09 Thread gxt
From: Guan Xuetao Since of tedious output, we close dump-option of cpu_dump_state_ucf64 function. Signed-off-by: Guan Xuetao --- target-unicore32/translate.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-unicore32/translate.c b/target-unicore32/translate.c in

[Qemu-devel] [PATCHv2 15/19] unicore32-softmmu: Add is_default setting for puv3 machine

2012-08-09 Thread gxt
From: Guan Xuetao This patch sets is_default to 1 for puv3 machine, so that find_default_machine() returns puv3 machine. Thanks Dunrong for pointing it out. Cc: Dunrong Huang Signed-off-by: Guan Xuetao --- hw/puv3.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/p

[Qemu-devel] [PATCHv2 19/19] unicore32-softmmu: Add a minimal curses screen support

2012-08-09 Thread gxt
From: Guan Xuetao This patch adds a minimal curses screen support for unicore32-softmmu. We assume 80*30 screen size to minimize the implementation. Two problems are not solved, but they are innocuous. 1. curses windows will be blank when switching to monitor screen and back 2. backspace is not h

[Qemu-devel] [PATCHv2 16/19] unicore32: Split UniCore-F64 instruction helpers from helper.c

2012-08-09 Thread gxt
From: Guan Xuetao This patch just splits ucf64 instruction simulation helpers from helper.c. Also, two checkpatch warnings are solved. v1->v2: adjust copyright information for new ucf64_helper.c Signed-off-by: Guan Xuetao --- target-unicore32/Makefile.objs |2 + target-unicore32/helper.c

[Qemu-devel] [PATCHv2 08/19] unicore32-softmmu: Add puv3 interrupt support

2012-08-09 Thread gxt
From: Guan Xuetao This patch adds puv3 interrupt support, include interrupt controler device simulation and interrupt handler in puv3 machine. Signed-off-by: Guan Xuetao --- hw/Makefile.objs |3 + hw/puv3.c| 23 +- hw/puv3_intc.c | 135 +

[Qemu-devel] [PATCHv2 07/19] unicore32-softmmu: Add puv3 soc/board support

2012-08-09 Thread gxt
From: Guan Xuetao This patch only add puv3 soc/board support, which introduces puv3 machine description, and specifies console type. Signed-off-by: Guan Xuetao --- default-configs/unicore32-softmmu.mak |1 + hw/puv3.c | 93 + hw

[Qemu-devel] [PATCHv2 04/19] target-unicore32: Drop UC32_CPUID macros

2012-08-09 Thread gxt
From: Andreas Färber Any code that depends on a particular CPU type can now go through callbacks on the QOM UniCore32CPUClass. Signed-off-by: Andreas Färber --- target-unicore32/cpu.h |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/target-unicore32/cpu.h b/target-un

[Qemu-devel] [PATCHv2 03/19] unicore32-softmmu: Make UniCore32 cpuid & exceptions correct and runable

2012-08-09 Thread gxt
From: Guan Xuetao This patch initializes the cpuid to exactly correct value because linux kernel will check it. In addition, the exception types are specified in proper situations. Then it could make exceptions generated correctly and timely. Signed-off-by: Guan Xuetao --- cpu-exec.c

Re: [Qemu-devel] [PATCH v8 7/7] block: Enable qemu_open/close to work with fd sets

2012-08-09 Thread Eric Blake
On 08/09/2012 08:10 PM, Corey Bryant wrote: > When qemu_open is passed a filename of the "/dev/fdset/nnn" > format (where nnn is the fdset ID), an fd with matching access > mode flags will be searched for within the specified monitor > fd set. If the fd is found, a dup of the fd will be returned >

Re: [Qemu-devel] [PATCH] armv7m: Guard against no -kernel argument

2012-08-09 Thread Markus Armbruster
"Peter A. G. Crosthwaite" writes: > A -kernel argument must be specified for this machine. Gaurd against no > -kernel > argument. Previously gave an unhelpful "bad address" error message. > > Signed-off-by: Peter A. G. Crosthwaite Tested-by: Markus Armbruster

Re: [Qemu-devel] [PATCH v8 2/7] qapi: Introduce add-fd, remove-fd, query-fdsets

2012-08-09 Thread Eric Blake
On 08/09/2012 08:10 PM, Corey Bryant wrote: > This patch adds support that enables passing of file descriptors > to the QEMU monitor where they will be stored in specified file > descriptor sets. > > A file descriptor set can be used by a client like libvirt to > store file descriptors for the sam

Re: [Qemu-devel] [PATCH v5 02/15] ssi: Added VMSD stub

2012-08-09 Thread Peter Crosthwaite
On Mon, 2012-08-06 at 10:13 +0100, Peter Maydell wrote: > On 6 August 2012 03:16, Peter A. G. Crosthwaite > wrote: > > Added VMSD stub for SSI slaves. Fields may be added to this VMSD for generic > > SSI slave state (e.g. the CS line state). > > This is more me being confused about how this shoul

[Qemu-devel] [PATCH] device_tree: load_device_tree(): Allow NULL sizep

2012-08-09 Thread Peter A. G. Crosthwaite
The sizep arg is populated with the size of the loaded device tree. Since this is one of those informational "please populate" type arguments it should be optional. Guarded writes to *sizep against NULL accordingly. Signed-off-by: Peter A. G. Crosthwaite Acked-by: Alexander Graf --- device_tree

[Qemu-devel] [PULL 0/1] device_tree: load_device_tree(): Allow NULL sizep

2012-08-09 Thread Peter A. G. Crosthwaite
The following changes since commit 3d1d9652978ac5a32a0beb4bdf6065ca39440d89: Bruce Rogers (1): handle device help before accelerator set up are available in the git repository at: git://developer.petalogix.com/public/qemu.git for-upstream/device-tree-null-size.next Peter A. G. Crost

[Qemu-devel] [PATCH v5 11/13] target-mips-ase-dsp: Add MIPS[32|64] ASE DSP[R1|R2] generic cpu model

2012-08-09 Thread Jia Liu
Add MIPS[32|64] ASE DSP[R1|R2] generic cpu model for test. Signed-off-by: Jia Liu --- target-mips/translate_init.c | 55 ++ 1 file changed, 55 insertions(+) diff --git a/target-mips/translate_init.c b/target-mips/translate_init.c index c39138f..547fa00

[Qemu-devel] [PATCH v5 04/13] target-mips-ase-dsp: Add load instructions

2012-08-09 Thread Jia Liu
Add MIPS ASE DSP Load instructions. Signed-off-by: Jia Liu --- target-mips/translate.c | 69 +++ 1 file changed, 69 insertions(+) diff --git a/target-mips/translate.c b/target-mips/translate.c index 42238a8..febb838 100644 --- a/target-mips/translat

[Qemu-devel] [PATCH v5 09/13] target-mips-ase-dsp: Add compare-pick instructions

2012-08-09 Thread Jia Liu
Add MIPS ASE DSP Compare-Pick instructions. Signed-off-by: Jia Liu --- target-mips/dsp_helper.c | 917 ++ target-mips/helper.h | 52 +++ target-mips/translate.c | 323 3 files changed, 1292 insertions(+) diff --git a/target-m

[Qemu-devel] [PATCH v5 10/13] target-mips-ase-dsp: Add accumulator and DSPControl access instructions

2012-08-09 Thread Jia Liu
Add MIPS ASE DSP Accumulator and DSPControl Access instructions. Signed-off-by: Jia Liu --- target-mips/dsp_helper.c | 1044 ++ target-mips/helper.h | 52 +++ target-mips/translate.c | 461 3 files changed, 1557 insertions(

[Qemu-devel] [PATCH v5 06/13] target-mips-ase-dsp: Add GPR-Based shift instructions

2012-08-09 Thread Jia Liu
Add MIPS ASE DSP GPR-Based Shift instructions. Signed-off-by: Jia Liu --- target-mips/dsp_helper.c | 991 ++ target-mips/helper.h | 62 +++ target-mips/translate.c | 359 + 3 files changed, 1412 insertions(+) diff --git a/targ

[Qemu-devel] [PATCH 2/2] xilinx_axi*: Re-implemented interconnect

2012-08-09 Thread Peter A. G. Crosthwaite
Re-implemented the interconnect between the Xilinx AXI ethernet and DMA controllers. A QOM interface "stream" is created, for the two stream interfaces. As per Edgars request, this is designed to be more generic than AXI-stream, so in the future we may see more clients of this interface beyond AXI

[Qemu-devel] [PATCH 1/2] qom: Reimplement Interfaces

2012-08-09 Thread Peter A. G. Crosthwaite
From: Anthony Liguori The current implementation of Interfaces is poorly designed. Each interface that an object implements ends up being an object that's tracked by the implementing object. There's all sorts of gymnastics to deal with casting between these objects. But an interface shouldn't

[Qemu-devel] [PULL 0/2] QOMify AXI stream for Xilinx AXI ethernet/DMA

2012-08-09 Thread Peter A. G. Crosthwaite
The following changes since commit 3d1d9652978ac5a32a0beb4bdf6065ca39440d89: Bruce Rogers (1): handle device help before accelerator set up are available in the git repository at: git://developer.petalogix.com/public/qemu.git for-upstream/axi-stream.next Anthony Liguori (1): qo

[Qemu-devel] [PATCH v5 13/13] target-mips-ase-dsp: Change TODO

2012-08-09 Thread Jia Liu
Delete DSP r1 & DSP r2 from TODO. Signed-off-by: Jia Liu --- target-mips/TODO |2 -- 1 file changed, 2 deletions(-) diff --git a/target-mips/TODO b/target-mips/TODO index 2a3546f..15d67cd 100644 --- a/target-mips/TODO +++ b/target-mips/TODO @@ -6,8 +6,6 @@ General - Unimplemented ASEs:

[Qemu-devel] [PATCH v5 08/13] target-mips-ase-dsp: Add bit/manipulation instructions

2012-08-09 Thread Jia Liu
Add MIPS ASE DSP Bit/Manipulation instructions. Signed-off-by: Jia Liu --- target-mips/dsp_helper.c | 79 + target-mips/helper.h |7 ++ target-mips/translate.c | 289 +- 3 files changed, 374 insertions(+), 1 deletion(-) diff --

[Qemu-devel] [PATCH v5 03/13] target-mips-ase-dsp: Add branch instructions

2012-08-09 Thread Jia Liu
Add MIPS ASE DSP Branch instructions. Signed-off-by: Jia Liu --- target-mips/translate.c | 52 +++ 1 file changed, 48 insertions(+), 4 deletions(-) diff --git a/target-mips/translate.c b/target-mips/translate.c index c2c7090..42238a8 100644 --- a/ta

[Qemu-devel] [PATCH v5 01/13] target-mips-ase-dsp: Add internal functions

2012-08-09 Thread Jia Liu
Add internal functions using by MIPS ASE DSP instructions. Signed-off-by: Jia Liu --- target-mips/Makefile.objs |2 +- target-mips/dsp_helper.c | 1279 + 2 files changed, 1280 insertions(+), 1 deletion(-) create mode 100644 target-mips/dsp_helper

[Qemu-devel] [PATCH v5 02/13] target-mips-ase-dsp: Use correct acc value to indexcpu_HI/cpu_LO rather than using a fix number

2012-08-09 Thread Jia Liu
Use correct acc value to indexcpu_HI/cpu_LO rather than using a fix number. Signed-off-by: Jia Liu --- target-mips/translate.c | 67 +-- 1 file changed, 41 insertions(+), 26 deletions(-) diff --git a/target-mips/translate.c b/target-mips/translate.c

Re: [Qemu-devel] [PULL 0/2] QOMify AXI stream for Xilinx AXI ethernet/DMA

2012-08-09 Thread Peter Crosthwaite
Apoligies, bad remote, please disregard. On Fri, Aug 10, 2012 at 12:32 PM, Peter Crosthwaite wrote: > Resend of pull, > > Edgars review addressed. > > On Fri, Aug 10, 2012 at 12:30 PM, Peter A. G. Crosthwaite > wrote: >> are available in the git repository at: >> >> git://developer.petalogix.

Re: [Qemu-devel] [PATCH 00/19] unicore32: Add unicore32-softmmu support

2012-08-09 Thread guanxuetao
> > This still breaks build. Please fix, something like ret = 0 when the > variable is declared should be enough. > /src/qemu/hw/puv3_gpio.c: In function 'puv3_gpio_read': > /src/qemu/hw/puv3_gpio.c:48:5: error: 'ret' may be used uninitialized > in this function [-Werror=maybe-uninitialized] > /src

[Qemu-devel] [PATCH v8 5/7] block: Convert open calls to qemu_open

2012-08-09 Thread Corey Bryant
This patch converts all block layer open calls to qemu_open. Note that this adds the O_CLOEXEC flag to the changed open paths when the O_CLOEXEC macro is defined. Signed-off-by: Corey Bryant --- v2: -Convert calls to qemu_open instead of file_open (kw...@redhat.com) -Mention introduction of O_

Re: [Qemu-devel] [PULL 0/2] QOMify AXI stream for Xilinx AXI ethernet/DMA

2012-08-09 Thread Peter Crosthwaite
Resend of pull, Edgars review addressed. On Fri, Aug 10, 2012 at 12:30 PM, Peter A. G. Crosthwaite wrote: > are available in the git repository at: > > git://developer.petalogix.com/public/qemu.git ..BRANCH.NOT.VERIFIED.. > > Anthony Liguori (1): > qom: Reimplement Interfaces > > Peter A

[Qemu-devel] [PATCH 2/2] xilinx_axi*: Re-implemented interconnect

2012-08-09 Thread Peter A. G. Crosthwaite
Re-implemented the interconnect between the Xilinx AXI ethernet and DMA controllers. A QOM interface "stream" is created, for the two stream interfaces. As per Edgars request, this is designed to be more generic than AXI-stream, so in the future we may see more clients of this interface beyond AXI

[Qemu-devel] [PATCH 1/2] qom: Reimplement Interfaces

2012-08-09 Thread Peter A. G. Crosthwaite
From: Anthony Liguori The current implementation of Interfaces is poorly designed. Each interface that an object implements ends up being an object that's tracked by the implementing object. There's all sorts of gymnastics to deal with casting between these objects. But an interface shouldn't

[Qemu-devel] [PULL 0/2] QOMify AXI stream for Xilinx AXI ethernet/DMA

2012-08-09 Thread Peter A. G. Crosthwaite
are available in the git repository at: git://developer.petalogix.com/public/qemu.git ..BRANCH.NOT.VERIFIED.. Anthony Liguori (1): qom: Reimplement Interfaces Peter A. G. Crosthwaite (1): xilinx_axi*: Re-implemented interconnect hw/Makefile.objs |1 + hw/petalogix_ml6

[Qemu-devel] [PATCH v8 1/7] qemu-char: Add MSG_CMSG_CLOEXEC flag to recvmsg

2012-08-09 Thread Corey Bryant
Set the close-on-exec flag for the file descriptor received via SCM_RIGHTS. Signed-off-by: Corey Bryant --- v4 -This patch is new in v4 (ebl...@redhat.com) v5 -Fallback to FD_CLOEXEC if MSG_CMSG_CLOEXEC is not available (ebl...@redhat.com, stefa...@linux.vnet.ibm.com) v6 -Set cloexec on co

[Qemu-devel] [PATCH v8 2/7] qapi: Introduce add-fd, remove-fd, query-fdsets

2012-08-09 Thread Corey Bryant
This patch adds support that enables passing of file descriptors to the QEMU monitor where they will be stored in specified file descriptor sets. A file descriptor set can be used by a client like libvirt to store file descriptors for the same file. This allows the client to open a file with diff

[Qemu-devel] [PATCH v8 6/7] block: Convert close calls to qemu_close

2012-08-09 Thread Corey Bryant
This patch converts all block layer close calls, that correspond to qemu_open calls, to qemu_close. Signed-off-by: Corey Bryant --- v5: -This patch is new in v5. (kw...@redhat.com, ebl...@redhat.com) v6-v8: -No changes block/raw-posix.c | 24 block/raw-win32.c |

[Qemu-devel] [PATCH v8 4/7] block: Prevent detection of /dev/fdset/ as floppy

2012-08-09 Thread Corey Bryant
Signed-off-by: Corey Bryant --- v8 -This patch is new in v8. It was reported on a prior fd passing approach and I realized it's needed in this series. (kw...@redhat.com) block/raw-posix.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/block/raw-posix.c b/block/raw

[Qemu-devel] Is the return address of get_page_addr_code guest physical address?

2012-08-09 Thread Steven
Hi, The function definition has a return address type tb_page_addr_t. tb_page_addr_t get_page_addr_code(CPUArchState *env1, target_ulong addr) I am wondering is this address the guest physical address or the host virtual address. If it it is the guest physical address, why does Qemu waste guest ph

[Qemu-devel] [PATCH v8 7/7] block: Enable qemu_open/close to work with fd sets

2012-08-09 Thread Corey Bryant
When qemu_open is passed a filename of the "/dev/fdset/nnn" format (where nnn is the fdset ID), an fd with matching access mode flags will be searched for within the specified monitor fd set. If the fd is found, a dup of the fd will be returned from qemu_open. Each fd set has a reference count.

[Qemu-devel] [PATCH v8 0/7] file descriptor passing using fd sets

2012-08-09 Thread Corey Bryant
libvirt's sVirt security driver provides SELinux MAC isolation for Qemu guest processes and their corresponding image files. In other words, sVirt uses SELinux to prevent a QEMU process from opening files that do not belong to it. sVirt provides this support by labeling guests and resources with

[Qemu-devel] [PATCH v8 3/7] monitor: Clean up fd sets on monitor disconnect

2012-08-09 Thread Corey Bryant
Fd sets are shared by all monitor connections. Fd sets are considered to be in use while at least one monitor is connected. When the last monitor disconnects, all fds that are members of an fd set with refcount of zero are closed. This prevents any fd leakage associated with a client disconnect

Re: [Qemu-devel] For all targets and machine types: "start to monitor" smoke test

2012-08-09 Thread Peter Crosthwaite
On Wed, Aug 8, 2012 at 5:22 PM, Markus Armbruster wrote: > Peter Maydell writes: > >> On 7 August 2012 20:26, Markus Armbruster wrote: >>> qemu-system-arm lm3s811evb >>> qemu-system-arm lm3s6965evb >>> qemu-system-arm: /work/armbru/qemu/hw/qdev.c:310: >>> qdev_get_gpio_in: Assertion `n

[Qemu-devel] [PATCH] armv7m: Guard against no -kernel argument

2012-08-09 Thread Peter A. G. Crosthwaite
A -kernel argument must be specified for this machine. Gaurd against no -kernel argument. Previously gave an unhelpful "bad address" error message. Signed-off-by: Peter A. G. Crosthwaite --- hw/armv7m.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/hw/armv7m.c b/hw

Re: [Qemu-devel] [PATCH 1/4] s390/kvm: Handle hosts not supporting s390-virtio.

2012-08-09 Thread Alexander Graf
On 07.08.2012, at 16:52, Cornelia Huck wrote: > Running under a kvm host does not necessarily imply the presence of > a page mapped above the main memory with the virtio information; > however, the code includes a hard coded access to that page. > > Instead, check for the presence of the page an

Re: [Qemu-devel] [PATCH] MIPS: Correct FCR0 initialization

2012-08-09 Thread Phil Staub
On 08/09/2012 03:09 PM, Maciej W. Rozycki wrote: On Thu, 9 Aug 2012, Phil Staub wrote: For this purpose the usual approach is to follow up to the patch mail saying "Ping" and giving a url to the patch in patchwork, like this one: http://patchwork.ozlabs.org/patch/163705/ Eventually somebody wi

Re: [Qemu-devel] [PATCH] MIPS: Correct FCR0 initialization

2012-08-09 Thread Maciej W. Rozycki
On Thu, 9 Aug 2012, Phil Staub wrote: > > > > > For this purpose the usual approach is to follow up to the patch > > > > > mail saying "Ping" and giving a url to the patch in patchwork, > > > > > like this one: > > > > > http://patchwork.ozlabs.org/patch/163705/ > > > > > > > > > > Eventually som

Re: [Qemu-devel] [PATCH v3] Support 'help' as a synonym for '?' in command line options

2012-08-09 Thread Eduardo Habkost
On Thu, Aug 09, 2012 at 10:02:22PM +0100, Peter Maydell wrote: > On 9 August 2012 20:25, Eduardo Habkost wrote: > > On Fri, Aug 03, 2012 at 03:42:39PM -0500, Anthony Liguori wrote: > >> Peter Maydell writes: > >> > For command line options which permit '?' meaning 'please list the > >> > permitte

Re: [Qemu-devel] [PATCH v3] Support 'help' as a synonym for '?' in command line options

2012-08-09 Thread Eric Blake
On 08/09/2012 03:02 PM, Peter Maydell wrote: > On 9 August 2012 20:25, Eduardo Habkost wrote: >> On Fri, Aug 03, 2012 at 03:42:39PM -0500, Anthony Liguori wrote: >>> Peter Maydell writes: For command line options which permit '?' meaning 'please list the permitted values', add support f

Re: [Qemu-devel] [Qemu-ppc] [PATCH 56/72] PPC: e500: Use new MPIC dt format

2012-08-09 Thread Alexander Graf
On 09.08.2012, at 23:45, Scott Wood wrote: > On 08/09/2012 04:36 PM, Alexander Graf wrote: >> >> On 09.08.2012, at 23:28, Scott Wood wrote: >> >>> On 08/09/2012 04:19 PM, Alexander Graf wrote: On 09.08.2012, at 23:11, Scott Wood wrote: > ...so that we can run new kernels on old Q

Re: [Qemu-devel] [Qemu-ppc] [PATCH 56/72] PPC: e500: Use new MPIC dt format

2012-08-09 Thread Scott Wood
On 08/09/2012 04:36 PM, Alexander Graf wrote: > > On 09.08.2012, at 23:28, Scott Wood wrote: > >> On 08/09/2012 04:19 PM, Alexander Graf wrote: >>> >>> On 09.08.2012, at 23:11, Scott Wood wrote: ...so that we can run new kernels on old QEMUs, not just the other way around. >>> >>> Why w

Re: [Qemu-devel] TSC in qem[-kvm] 1.1+ and in-kernel irqchip

2012-08-09 Thread Michael Tokarev
On 10.08.2012 00:47, Marcelo Tosatti wrote: [] >>> calibrate_tsc (void) >>> { >>> /* First calibrate the TSC rate (relative, not absolute time). */ >>> grub_uint64_t start_tsc; >>> grub_uint64_t end_tsc; >>> >>> start_tsc = grub_get_tsc (); >>> grub_pit_wait (0x); >>> end_tsc = grub

Re: [Qemu-devel] [Qemu-ppc] [PATCH 56/72] PPC: e500: Use new MPIC dt format

2012-08-09 Thread Alexander Graf
On 09.08.2012, at 23:28, Scott Wood wrote: > On 08/09/2012 04:19 PM, Alexander Graf wrote: >> >> On 09.08.2012, at 23:11, Scott Wood wrote: >> >>> On 08/09/2012 04:01 PM, Alexander Graf wrote: On 09.08.2012, at 22:58, Scott Wood wrote: > Additionally, we should consider adding ex

Re: [Qemu-devel] [Qemu-ppc] [PATCH 56/72] PPC: e500: Use new MPIC dt format

2012-08-09 Thread Scott Wood
On 08/09/2012 04:19 PM, Alexander Graf wrote: > > On 09.08.2012, at 23:11, Scott Wood wrote: > >> On 08/09/2012 04:01 PM, Alexander Graf wrote: >>> >>> On 09.08.2012, at 22:58, Scott Wood wrote: Additionally, we should consider adding extra compatibles with the major QEMU version in the

Re: [Qemu-devel] [Qemu-ppc] [PATCH 56/72] PPC: e500: Use new MPIC dt format

2012-08-09 Thread Alexander Graf
On 09.08.2012, at 23:11, Scott Wood wrote: > On 08/09/2012 04:01 PM, Alexander Graf wrote: >> >> On 09.08.2012, at 22:58, Scott Wood wrote: >> >>> On 08/09/2012 03:52 PM, Alexander Graf wrote: On 09.08.2012, at 22:50, Scott Wood wrote: > On 08/09/2012 03:48 PM, Alexander Gr

Re: [Qemu-devel] [PATCH] MIPS: Correct FCR0 initialization

2012-08-09 Thread Phil Staub
On 08/09/2012 01:36 PM, Peter Maydell wrote: On 9 August 2012 21:01, Phil Staub wrote: On 08/09/2012 12:57 PM, Blue Swirl wrote: On Tue, Aug 7, 2012 at 12:10 PM, Peter Maydell wrote: For this purpose the usual approach is to follow up to the patch mail saying "Ping" and giving a url to the p

Re: [Qemu-devel] [Qemu-ppc] [PATCH 56/72] PPC: e500: Use new MPIC dt format

2012-08-09 Thread Scott Wood
On 08/09/2012 04:01 PM, Alexander Graf wrote: > > On 09.08.2012, at 22:58, Scott Wood wrote: > >> On 08/09/2012 03:52 PM, Alexander Graf wrote: >>> >>> On 09.08.2012, at 22:50, Scott Wood wrote: >>> On 08/09/2012 03:48 PM, Alexander Graf wrote: > > On 09.08.2012, at 00:40, Scott Wood

Re: [Qemu-devel] [PATCH v3] Support 'help' as a synonym for '?' in command line options

2012-08-09 Thread Peter Maydell
On 9 August 2012 20:25, Eduardo Habkost wrote: > On Fri, Aug 03, 2012 at 03:42:39PM -0500, Anthony Liguori wrote: >> Peter Maydell writes: >> > For command line options which permit '?' meaning 'please list the >> > permitted values', add support for 'help' as a synonym, by abstracting >> > the c

[Qemu-devel] [PATCH] Revert "PPC: e500: Use new MPIC dt format"

2012-08-09 Thread Alexander Graf
This reverts commit 518c7fb44f2182cde943dc64f88cb2fd4e4ff6b5. It breaks new Linux guests with SMP, because IPIs get mapped to large vectors which our MPIC emulation does not implement. Conflicts: hw/ppc/e500.c --- hw/ppc/e500.c | 31 ++- 1 files changed, 14

Re: [Qemu-devel] [Qemu-ppc] [PATCH 56/72] PPC: e500: Use new MPIC dt format

2012-08-09 Thread Alexander Graf
On 09.08.2012, at 22:58, Scott Wood wrote: > On 08/09/2012 03:52 PM, Alexander Graf wrote: >> >> On 09.08.2012, at 22:50, Scott Wood wrote: >> >>> On 08/09/2012 03:48 PM, Alexander Graf wrote: On 09.08.2012, at 00:40, Scott Wood wrote: > On 08/08/2012 04:16 PM, Alexander Gr

Re: [Qemu-devel] [Qemu-ppc] [PATCH 56/72] PPC: e500: Use new MPIC dt format

2012-08-09 Thread Scott Wood
On 08/09/2012 03:52 PM, Alexander Graf wrote: > > On 09.08.2012, at 22:50, Scott Wood wrote: > >> On 08/09/2012 03:48 PM, Alexander Graf wrote: >>> >>> On 09.08.2012, at 00:40, Scott Wood wrote: >>> On 08/08/2012 04:16 PM, Alexander Graf wrote: > > On 24.06.2012, at 01:07, Alexander

Re: [Qemu-devel] [Qemu-ppc] [PATCH 56/72] PPC: e500: Use new MPIC dt format

2012-08-09 Thread Alexander Graf
On 09.08.2012, at 22:50, Scott Wood wrote: > On 08/09/2012 03:48 PM, Alexander Graf wrote: >> >> On 09.08.2012, at 00:40, Scott Wood wrote: >> >>> On 08/08/2012 04:16 PM, Alexander Graf wrote: On 24.06.2012, at 01:07, Alexander Graf wrote: > Due to popular demand, we're upd

Re: [Qemu-devel] [PATCH 5/5] qmp: add SUSPEND_DISK event

2012-08-09 Thread Luiz Capitulino
On Thu, 9 Aug 2012 17:48:34 -0300 Luiz Capitulino wrote: > On Thu, 09 Aug 2012 13:51:10 -0600 > Eric Blake wrote: > > > On 08/09/2012 11:30 AM, Luiz Capitulino wrote: > > > Emitted when the guest makes a request to enter S4 state. > > > > > > There are three possible ways of having this event,

Re: [Qemu-devel] [Qemu-ppc] [PATCH 56/72] PPC: e500: Use new MPIC dt format

2012-08-09 Thread Scott Wood
On 08/09/2012 03:48 PM, Alexander Graf wrote: > > On 09.08.2012, at 00:40, Scott Wood wrote: > >> On 08/08/2012 04:16 PM, Alexander Graf wrote: >>> >>> On 24.06.2012, at 01:07, Alexander Graf wrote: >>> Due to popular demand, we're updating the way we generate the MPIC node and interrup

Re: [Qemu-devel] [Qemu-ppc] [PATCH 56/72] PPC: e500: Use new MPIC dt format

2012-08-09 Thread Alexander Graf
On 09.08.2012, at 00:40, Scott Wood wrote: > On 08/08/2012 04:16 PM, Alexander Graf wrote: >> >> On 24.06.2012, at 01:07, Alexander Graf wrote: >> >>> Due to popular demand, we're updating the way we generate the MPIC >>> node and interrupt lines based on what the current state of art is. >>>

Re: [Qemu-devel] [PATCH 5/5] qmp: add SUSPEND_DISK event

2012-08-09 Thread Luiz Capitulino
On Thu, 09 Aug 2012 13:51:10 -0600 Eric Blake wrote: > On 08/09/2012 11:30 AM, Luiz Capitulino wrote: > > Emitted when the guest makes a request to enter S4 state. > > > > There are three possible ways of having this event, as described here: > > > > http://lists.gnu.org/archive/html/qemu-deve

Re: [Qemu-devel] [PATCH] configure: fix double check tests with Clang

2012-08-09 Thread Peter Maydell
On 9 August 2012 21:31, Blue Swirl wrote: > Configuring with Clang compiler with -Werror would not work after > improved checks: > /tmp/qemu-conf--25992-.c:4:32: error: self-comparison always evaluates > to true [-Werror,-Wtautological-compare] > int main(void) { return preadv == preadv; } > /tmp/

Re: [Qemu-devel] [PATCH 2/4] qmp: emit the WAKEUP event when the guest is put to run

2012-08-09 Thread Luiz Capitulino
On Thu, 09 Aug 2012 11:57:38 -0600 Eric Blake wrote: > On 08/09/2012 11:28 AM, Luiz Capitulino wrote: > > Today, the WAKEUP event is emitted when a wakeup _request_ is made. > > This could be the system_wakeup command, for example. > > > > A better semantic would be to emit the event when the gu

Re: [Qemu-devel] [PATCH 3/4] qmp: qmp-events.txt: put events in alphabetical order

2012-08-09 Thread Luiz Capitulino
On Thu, 09 Aug 2012 13:29:32 -0600 Eric Blake wrote: > On 08/09/2012 11:28 AM, Luiz Capitulino wrote: > > Signed-off-by: Luiz Capitulino > > --- > > QMP/qmp-events.txt | 266 > > ++--- > > 1 file changed, 130 insertions(+), 136 deletions(-) > >

Re: [Qemu-devel] [PATCH] MIPS: Correct FCR0 initialization

2012-08-09 Thread Peter Maydell
On 9 August 2012 21:01, Phil Staub wrote: > On 08/09/2012 12:57 PM, Blue Swirl wrote: >> On Tue, Aug 7, 2012 at 12:10 PM, Peter Maydell >> wrote: >>> For this purpose the usual approach is to follow up to the patch >>> mail saying "Ping" and giving a url to the patch in patchwork, >>> like this o

[Qemu-devel] [PATCH] configure: fix double check tests with Clang

2012-08-09 Thread Blue Swirl
Configuring with Clang compiler with -Werror would not work after improved checks: /tmp/qemu-conf--25992-.c:4:32: error: self-comparison always evaluates to true [-Werror,-Wtautological-compare] int main(void) { return preadv == preadv; } /tmp/qemu-conf--25992-.c:13:26: error: self-comparison alway

Re: [Qemu-devel] [PATCH 11/11] configure: Check for -Werror causing failures when compiling tests

2012-08-09 Thread Blue Swirl
On Thu, Aug 9, 2012 at 6:24 PM, Peter Maydell wrote: > On 4 August 2012 18:57, Blue Swirl wrote: >> On Sat, Jul 28, 2012 at 1:48 PM, Peter Maydell >> wrote: >>> On 28 July 2012 13:31, Blue Swirl wrote: I'm getting this error, probably because now Valgrind support is enabled: CC

Re: [Qemu-devel] [PATCH] MIPS: Correct FCR0 initialization

2012-08-09 Thread Phil Staub
On 08/09/2012 12:57 PM, Blue Swirl wrote: On Tue, Aug 7, 2012 at 12:10 PM, Peter Maydell wrote: On 6 August 2012 19:21, Phil Staub wrote: On Tue, Jun 12, 2012 at 10:28:14AM -0400, qemu-devel-requ...@nongnu.org wrote: From: Richard Henderson On 2012-06-07 18:04, Maciej W. Rozycki wrote: I

Re: [Qemu-devel] [PATCH v2] handle device help before accelerator set up

2012-08-09 Thread Blue Swirl
Thanks, applied. On Thu, Aug 9, 2012 at 6:47 PM, Bruce Rogers wrote: > A command line device probe using just -device "?" gets processed > after qemu-kvm initializes the accelerator. If /dev/kvm is not > present, the accelerator check will fail (kvm is defaulted to on), > which causes libvirt to

Re: [Qemu-devel] [PATCH 0/4 v2] target-i386: move tcg intialization inside CPU object

2012-08-09 Thread Blue Swirl
Thanks, applied all. On Mon, Jul 23, 2012 at 7:46 AM, Igor Mammedov wrote: > ping. > > On 06/25/2012 03:55 PM, Igor Mammedov wrote: >> >> v2: >>- drop usage of prev_debug_excp_handler consistently in all users >>- split from reset patches to avoid confusion of inter-dependency >> >> Comp

Re: [Qemu-devel] [Qemu-devel for-1.2] qemu_rearm_alarm_timer: do not call rearm if the next deadline is INT64_MAX

2012-08-09 Thread Blue Swirl
Thanks, applied. On Thu, Aug 9, 2012 at 3:35 PM, Andreas Färber wrote: > Am 27.07.2012 19:00, schrieb Andreas Färber: >> Am 12.06.2012 10:24, schrieb Andreas Färber: >>> Am 29.05.2012 15:35, schrieb Stefano Stabellini: qemu_rearm_alarm_timer partially duplicates the code in qemu_next_al

Re: [Qemu-devel] [PATCH] target-xtensa: make 'sim' to be the default machine

2012-08-09 Thread Blue Swirl
Thanks, applied. On Wed, Aug 8, 2012 at 11:31 PM, Max Filippov wrote: > This fixes the following error: > > $ qemu-system-xtensa -cpu help > Segmentation fault > > Signed-off-by: Max Filippov > --- > hw/xtensa_sim.c |1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff

Re: [Qemu-devel] [PATCH] target-xtensa: make default CPU depend on target endianness

2012-08-09 Thread Blue Swirl
Thanks, applied. On Wed, Aug 8, 2012 at 10:07 AM, Max Filippov wrote: > This makes usable default for -cpu option both for qemu-system-xtensa > and qemu-system-xtensaeb fixing the following error: > > $ qemu-system-xtensaeb -M sim > Unable to find CPU definition > > Signed-off-by: Max Fil

Re: [Qemu-devel] [PATCH] MIPS: Correct FCR0 initialization

2012-08-09 Thread Blue Swirl
On Tue, Aug 7, 2012 at 12:10 PM, Peter Maydell wrote: > On 6 August 2012 19:21, Phil Staub wrote: >> On Tue, Jun 12, 2012 at 10:28:14AM -0400, qemu-devel-requ...@nongnu.org >> wrote: >>> From: Richard Henderson >>> On 2012-06-07 18:04, Maciej W. Rozycki wrote: >>> > I have verified this change

Re: [Qemu-devel] [PATCH v3 0/4] esp: add Tekram DC-390 emulation (PC SCSI adapter)

2012-08-09 Thread Blue Swirl
On Sat, Aug 4, 2012 at 7:10 PM, Hervé Poussineau wrote: > This patch cleans up esp SCSI adapter emulation, by moving to > a new file the esp PCI emulation (patches 1 to 3). > Patch 4 adds a DC-390 emulation, which is not compiled on sparc. > > You're now able to install MS Windows NT 3.1 (which do

Re: [Qemu-devel] [PATCH 4/4] qmp: qmp-events.txt: add missing doc for the SUSPEND event

2012-08-09 Thread Eric Blake
On 08/09/2012 11:28 AM, Luiz Capitulino wrote: > Signed-off-by: Luiz Capitulino > --- > QMP/qmp-events.txt | 12 > 1 file changed, 12 insertions(+) Reviewed-by: Eric Blake > > diff --git a/QMP/qmp-events.txt b/QMP/qmp-events.txt > index e37a04e..2001a71 100644 > --- a/QMP/qmp-eve

Re: [Qemu-devel] [PATCH 5/5] qmp: add SUSPEND_DISK event

2012-08-09 Thread Eric Blake
On 08/09/2012 11:30 AM, Luiz Capitulino wrote: > Emitted when the guest makes a request to enter S4 state. > > There are three possible ways of having this event, as described here: > > http://lists.gnu.org/archive/html/qemu-devel/2012-07/msg02307.html > > I've decided to add a new event and ma

[Qemu-devel] discard / trim support

2012-08-09 Thread Stefan Priebe
Hello list, i tried to find out how to be able to use trim / discard. So my storage can free unusedblocks. But i wasn't able to find out which virtio block devices support trim / discard and what else is needed. Thanks and Greets, Stefan

Re: [Qemu-devel] [PATCH 3/4] qmp: qmp-events.txt: put events in alphabetical order

2012-08-09 Thread Eric Blake
On 08/09/2012 11:28 AM, Luiz Capitulino wrote: > Signed-off-by: Luiz Capitulino > --- > QMP/qmp-events.txt | 266 > ++--- > 1 file changed, 130 insertions(+), 136 deletions(-) Code motion that deletes 6 more lines than it adds? I'm assuming those

Re: [Qemu-devel] [PATCH v3] Support 'help' as a synonym for '?' in command line options

2012-08-09 Thread Eduardo Habkost
On Fri, Aug 03, 2012 at 03:42:39PM -0500, Anthony Liguori wrote: > Peter Maydell writes: > > > For command line options which permit '?' meaning 'please list the > > permitted values', add support for 'help' as a synonym, by abstracting > > the check out into a helper function. > > > > This chang

[Qemu-devel] [Bug 1035042] [NEW] Inconsistency in x509-dh-key-file parameter

2012-08-09 Thread Alon Bar-Lev
Public bug reported: Hello, At source it is x509-dh-file, at config[2] it is x509-dh-key-file, at man[3] it is also x509-dh-key-file. I guess that [1] is not correct? Thanks! [1] http://git.qemu.org/?p=qemu.git;a=blob;f=ui/spice-core.c;h=4fc48f89026944fa91c4be349436041e97fc8654;hb=HEAD#l615

Re: [Qemu-devel] TSC in qem[-kvm] 1.1+ and in-kernel irqchip

2012-08-09 Thread Marcelo Tosatti
On Thu, Aug 09, 2012 at 10:27:43PM +0400, Michael Tokarev wrote: > As a follow-up to the patch "tsc: use kvmclock for > calibration". > > There's another problem reported by several users. > The sympthom is that grub does not show boot menu, > it boots default entry right away without any pause. >

Re: [Qemu-devel] Running KVM guest on X86

2012-08-09 Thread Alex Williamson
On Thu, 2012-08-09 at 18:06 +, Bhushan Bharat-R65777 wrote: > > > -Original Message- > > From: Alex Williamson [mailto:alex.william...@redhat.com] > > Sent: Thursday, August 09, 2012 11:25 PM > > To: Bhushan Bharat-R65777 > > Cc: Stuart Yoder; qemu-devel@nongnu.org; Avi Kivity > > Subj

[Qemu-devel] [PATCH v2] handle device help before accelerator set up

2012-08-09 Thread Bruce Rogers
A command line device probe using just -device "?" gets processed after qemu-kvm initializes the accelerator. If /dev/kvm is not present, the accelerator check will fail (kvm is defaulted to on), which causes libvirt to not be set up to handle qemu guests. Moving the device help handling before th

Re: [Qemu-devel] [PATCH 22/23] sparc: Suppress unused default drives

2012-08-09 Thread Blue Swirl
On Thu, Aug 9, 2012 at 1:31 PM, Markus Armbruster wrote: > Cc: Blue Swirl Acked-by: Blue Swirl > > Suppress default floppy drive for machines leon3_generic, SS-600MP, > SS-1000, SS-2000. > > Suppress default CD-ROM drive for machine leon3_generic. > > Suppress default SD card drive for machine

Re: [Qemu-devel] [PATCH 13/23] lm32: Suppress unused default drives

2012-08-09 Thread Michael Walle
Am Donnerstag 09 August 2012, 15:31:14 schrieb Markus Armbruster: > Cc: Michael Walle > > Suppress default floppy and CD-ROM drives for machines lm32-evr, > lm32-uclinux, milkymist. > > Suppress default SD card drive for machines lm32-evr, lm32-uclinux. > > Signed-off-by: Markus Armbruster > -

Re: [Qemu-devel] [PATCH 01/23] alpha_dp264: Suppress unused default drives

2012-08-09 Thread Richard Henderson
On 08/09/2012 06:31 AM, Markus Armbruster wrote: > Suppress default floppy and SD-card drives. > > Signed-off-by: Markus Armbruster Acked-by: Richard Henderson r~

[Qemu-devel] TSC in qem[-kvm] 1.1+ and in-kernel irqchip

2012-08-09 Thread Michael Tokarev
As a follow-up to the patch "tsc: use kvmclock for calibration". There's another problem reported by several users. The sympthom is that grub does not show boot menu, it boots default entry right away without any pause. After quite some debugging it turned out to be TSC issue. Grub uses tsc for

  1   2   3   4   >