Re: [Qemu-devel] [Question] dump memory when host pci device is used by guest

2011-10-10 Thread Jan Kiszka
On 2011-10-10 08:59, Wen Congyang wrote: > At 10/10/2011 02:52 PM, Jan Kiszka Write: >> On 2011-10-10 04:21, Wen Congyang wrote: >>> At 10/09/2011 06:23 PM, Richard W.M. Jones Write: On Sun, Oct 09, 2011 at 10:49:57AM +0200, Jan Kiszka wrote: > As explained in the other replies: It is way

Re: [Qemu-devel] [Question] dump memory when host pci device is used by guest

2011-10-10 Thread Alexander Graf
Am 10.10.2011 um 08:52 schrieb Jan Kiszka : > On 2011-10-10 04:21, Wen Congyang wrote: >> At 10/09/2011 06:23 PM, Richard W.M. Jones Write: >>> On Sun, Oct 09, 2011 at 10:49:57AM +0200, Jan Kiszka wrote: As explained in the other replies: It is way more future-proof to use an interface

Re: [Qemu-devel] [Question] dump memory when host pci device is used by guest

2011-10-10 Thread Jan Kiszka
On 2011-10-10 09:08, Alexander Graf wrote: > > Am 10.10.2011 um 08:52 schrieb Jan Kiszka : > >> On 2011-10-10 04:21, Wen Congyang wrote: >>> At 10/09/2011 06:23 PM, Richard W.M. Jones Write: On Sun, Oct 09, 2011 at 10:49:57AM +0200, Jan Kiszka wrote: > As explained in the other replies:

Re: [Qemu-devel] [Question] dump memory when host pci device is used by guest

2011-10-10 Thread Wen Congyang
At 10/10/2011 03:01 PM, Jan Kiszka Write: > On 2011-10-10 08:59, Wen Congyang wrote: >> At 10/10/2011 02:52 PM, Jan Kiszka Write: >>> On 2011-10-10 04:21, Wen Congyang wrote: At 10/09/2011 06:23 PM, Richard W.M. Jones Write: > On Sun, Oct 09, 2011 at 10:49:57AM +0200, Jan Kiszka wrote: >>>

Re: [Qemu-devel] [Question] dump memory when host pci device is used by guest

2011-10-10 Thread Jan Kiszka
On 2011-10-10 09:17, Wen Congyang wrote: > At 10/10/2011 03:01 PM, Jan Kiszka Write: >> On 2011-10-10 08:59, Wen Congyang wrote: >>> At 10/10/2011 02:52 PM, Jan Kiszka Write: On 2011-10-10 04:21, Wen Congyang wrote: > At 10/09/2011 06:23 PM, Richard W.M. Jones Write: >> On Sun, Oct 09,

Re: [Qemu-devel] Is realview-pb-a8 fully supported ?

2011-10-10 Thread Francis Moreau
On Sun, Oct 9, 2011 at 6:22 PM, Francis Moreau wrote: > On Sun, Oct 9, 2011 at 2:51 PM, Peter Maydell > wrote: >> On 9 October 2011 13:06, Francis Moreau wrote: >>> On Sun, Oct 9, 2011 at 12:48 PM, Peter Maydell >>> wrote: On 9 October 2011 09:28, Francis Moreau wrote: > I'm trying

Re: [Qemu-devel] [PATCH RFC] qemu-file: output data directly if possible

2011-10-10 Thread Paolo Bonzini
On 10/10/2011 01:56 AM, Michael S. Tsirkin wrote: qemu file currently always buffers up data before writing it out. At least for memory this is probably not a good idea: writing out to file would be cheaper. Let's do that if we can, which should be the common case. If we can't, buffer. Signed-of

Re: [Qemu-devel] [Question] dump memory when host pci device is used by guest

2011-10-10 Thread Wen Congyang
At 10/10/2011 03:22 PM, Jan Kiszka Write: > On 2011-10-10 09:17, Wen Congyang wrote: >> At 10/10/2011 03:01 PM, Jan Kiszka Write: >>> On 2011-10-10 08:59, Wen Congyang wrote: At 10/10/2011 02:52 PM, Jan Kiszka Write: > On 2011-10-10 04:21, Wen Congyang wrote: >> At 10/09/2011 06:23 PM,

Re: [Qemu-devel] [Question] dump memory when host pci device is used by guest

2011-10-10 Thread Jan Kiszka
On 2011-10-10 09:47, Wen Congyang wrote: > At 10/10/2011 03:22 PM, Jan Kiszka Write: >> On 2011-10-10 09:17, Wen Congyang wrote: >>> At 10/10/2011 03:01 PM, Jan Kiszka Write: On 2011-10-10 08:59, Wen Congyang wrote: > At 10/10/2011 02:52 PM, Jan Kiszka Write: >> On 2011-10-10 04:21, We

Re: [Qemu-devel] CD foler list and content won't update after eject and replace CD in winxp guest

2011-10-10 Thread Paolo Bonzini
On 10/10/2011 06:26 AM, Jiff Shen wrote: > I recently found there is an issue with CD support in qemu, > my vm guest is windows xp, qemu version 0.13.50 which is from spice git, > the vm is startup with physical CDROM attached. > If I push the eject button of CDROM device and change CD media, most

Re: [Qemu-devel] [RFC] Adding new filesystem 'proxy' to 9p

2011-10-10 Thread Markus Armbruster
"Daniel P. Berrange" writes: > On Thu, Sep 29, 2011 at 11:42:47PM +0530, M. Mohan Kumar wrote: >> On Wednesday, September 28, 2011 08:29:06 PM Daniel P. Berrange wrote: [...] >> > If we assume that QEMU gets exploited, and that QEMU can find some flaw >> > in the proxy_helper that it can exploit,

Re: [Qemu-devel] [Question] dump memory when host pci device is used by guest

2011-10-10 Thread Wen Congyang
At 10/10/2011 03:48 PM, Jan Kiszka Write: > On 2011-10-10 09:47, Wen Congyang wrote: >> At 10/10/2011 03:22 PM, Jan Kiszka Write: >>> On 2011-10-10 09:17, Wen Congyang wrote: At 10/10/2011 03:01 PM, Jan Kiszka Write: > On 2011-10-10 08:59, Wen Congyang wrote: >> At 10/10/2011 02:52 PM,

Re: [Qemu-devel] CD foler list and content won't update after eject and replace CD in winxp guest

2011-10-10 Thread Markus Armbruster
Jiff Shen writes: > I recently found there is an issue with CD support in qemu, > my vm guest is windows xp, qemu version 0.13.50 which is from spice git, > the vm is startup with physical CDROM attached. > If I push the eject button of CDROM device and change CD media, most > time the directory

Re: [Qemu-devel] Is realview-pb-a8 fully supported ?

2011-10-10 Thread Peter Maydell
On 10 October 2011 08:35, Francis Moreau wrote: > I noticed another point for the realview platofrm: if I boot with "-M > 512", it works however if I set "-M 256" then it doesn't. Perhaps your kernel is configured to load in the higher 256MB address range, or is configured/has a command line whic

Re: [Qemu-devel] [Question] dump memory when host pci device is used by guest

2011-10-10 Thread Daniel P. Berrange
On Fri, Oct 07, 2011 at 02:56:56PM +0200, Jan Kiszka wrote: > On 2011-10-07 14:25, Wen Congyang wrote: > > 于 2011/10/7 18:16, Jan Kiszka 写道: > >> On 2011-10-07 11:46, Wen Congyang wrote: > >>> Currently, virsh dump uses monitor command migrate to dump guest's memory > >>> to file, and we can use cr

Re: [Qemu-devel] [Question] dump memory when host pci device is used by guest

2011-10-10 Thread Daniel P. Berrange
On Mon, Oct 10, 2011 at 08:52:08AM +0200, Jan Kiszka wrote: > On 2011-10-10 04:21, Wen Congyang wrote: > > At 10/09/2011 06:23 PM, Richard W.M. Jones Write: > >> On Sun, Oct 09, 2011 at 10:49:57AM +0200, Jan Kiszka wrote: > >>> As explained in the other replies: It is way more future-proof to use a

Re: [Qemu-devel] [PATCH 1/2] hw/9pfs: Add new virtfs option cache=writethrough to skip host page cache

2011-10-10 Thread Aneesh Kumar K.V
On Mon, 10 Oct 2011 05:54:56 +0100, Stefan Hajnoczi wrote: > On Sun, Oct 9, 2011 at 7:35 PM, Aneesh Kumar K.V > wrote: > > On Sun, 9 Oct 2011 17:16:50 +0100, Stefan Hajnoczi > > wrote: > >> On Sun, Oct 9, 2011 at 4:34 PM, Aneesh Kumar K.V > >> wrote: > >> > On Sat, 8 Oct 2011 12:24:37 +0100, S

Re: [Qemu-devel] [Question] dump memory when host pci device is used by guest

2011-10-10 Thread Daniel P. Berrange
On Mon, Oct 10, 2011 at 10:21:02AM +0800, Wen Congyang wrote: > At 10/09/2011 06:23 PM, Richard W.M. Jones Write: > > On Sun, Oct 09, 2011 at 10:49:57AM +0200, Jan Kiszka wrote: > >> As explained in the other replies: It is way more future-proof to use an > >> interface for this which was designed

Re: [Qemu-devel] [Question] dump memory when host pci device is used by guest

2011-10-10 Thread Daniel P. Berrange
On Mon, Oct 10, 2011 at 10:08:26AM +0100, Daniel P. Berrange wrote: > On Mon, Oct 10, 2011 at 10:21:02AM +0800, Wen Congyang wrote: > > At 10/09/2011 06:23 PM, Richard W.M. Jones Write: > > > On Sun, Oct 09, 2011 at 10:49:57AM +0200, Jan Kiszka wrote: > > >> As explained in the other replies: It is

Re: [Qemu-devel] [PATCH RFC] qemu-file: output data directly if possible

2011-10-10 Thread Michael S. Tsirkin
On Mon, Oct 10, 2011 at 09:42:51AM +0200, Paolo Bonzini wrote: > On 10/10/2011 01:56 AM, Michael S. Tsirkin wrote: > >qemu file currently always buffers up data before writing it out. > >At least for memory this is probably not a good idea: > >writing out to file would be cheaper. Let's do > >that

Re: [Qemu-devel] [PATCH RFC] qemu-file: output data directly if possible

2011-10-10 Thread Paolo Bonzini
On 10/10/2011 03:16 PM, Michael S. Tsirkin wrote: Yes, it does look sane. QEMUFile doesn't seem to ever be used without QEMUBufferedFile - is that true? I think savevm does use it that way. With migration thread it will be much easier, because the migration thread can just block. I'd hold it

Re: [Qemu-devel] [Question] dump memory when host pci device is used by guest

2011-10-10 Thread Jan Kiszka
On 2011-10-10 11:02, Daniel P. Berrange wrote: > On Mon, Oct 10, 2011 at 08:52:08AM +0200, Jan Kiszka wrote: >> On 2011-10-10 04:21, Wen Congyang wrote: >>> At 10/09/2011 06:23 PM, Richard W.M. Jones Write: On Sun, Oct 09, 2011 at 10:49:57AM +0200, Jan Kiszka wrote: > As explained in the o

Re: [Qemu-devel] [Question] dump memory when host pci device is used by guest

2011-10-10 Thread Richard W.M. Jones
On Mon, Oct 10, 2011 at 10:10:21AM +0100, Daniel P. Berrange wrote: > On Mon, Oct 10, 2011 at 10:08:26AM +0100, Daniel P. Berrange wrote: > > On Mon, Oct 10, 2011 at 10:21:02AM +0800, Wen Congyang wrote: > > > At 10/09/2011 06:23 PM, Richard W.M. Jones Write: > > > > On Sun, Oct 09, 2011 at 10:49:5

Re: [Qemu-devel] [Question] dump memory when host pci device is used by guest

2011-10-10 Thread Jan Kiszka
On 2011-10-10 11:10, Daniel P. Berrange wrote: > On Mon, Oct 10, 2011 at 10:08:26AM +0100, Daniel P. Berrange wrote: >> On Mon, Oct 10, 2011 at 10:21:02AM +0800, Wen Congyang wrote: >>> At 10/09/2011 06:23 PM, Richard W.M. Jones Write: On Sun, Oct 09, 2011 at 10:49:57AM +0200, Jan Kiszka wrote

[Qemu-devel] [PATCH 00/15] NBD server improvements

2011-10-10 Thread Paolo Bonzini
This series adds asynchronous operation support for the NBD server. The first 9 patches are a general refactoring that can be applied now. The others require the "main loop in tools" series. Most of the work is really in cleaning up the many parameters of nbd_trip, and implementing the abstraction

[Qemu-devel] [PATCH 03/15] move corking functions to osdep.c

2011-10-10 Thread Paolo Bonzini
Signed-off-by: Paolo Bonzini --- block/sheepdog.c | 20 ++-- osdep.c |9 + qemu_socket.h|1 + 3 files changed, 12 insertions(+), 18 deletions(-) diff --git a/block/sheepdog.c b/block/sheepdog.c index d168681..ddf7fa2 100644 --- a/block/sheepdog.c ++

[Qemu-devel] [PATCH 12/15] qemu-nbd: move client handling to nbd.c

2011-10-10 Thread Paolo Bonzini
This patch sets up the fd handler in nbd.c instead of qemu-nbd.c. It introduces NBDClient, which wraps the arguments to nbd_trip in a single structure, so that we can add a notifier to it. This way, qemu-nbd can know about disconnections. Signed-off-by: Paolo Bonzini --- nbd.c | 63

[Qemu-devel] [PATCH 13/15] qemu-nbd: add client pointer to NBDRequest

2011-10-10 Thread Paolo Bonzini
By attaching a client to an NBDRequest, we can avoid passing around the socket descriptor and data buffer. Signed-off-by: Paolo Bonzini --- nbd.c | 48 +++- 1 files changed, 27 insertions(+), 21 deletions(-) diff --git a/nbd.c b/nbd.c index 16c4c27.

[Qemu-devel] [PATCH 09/15] qemu-nbd: introduce NBDRequest

2011-10-10 Thread Paolo Bonzini
Move the buffer from NBDExport to a new structure, so that it will be possible to have multiple in-flight requests for the same export (and for the same client too---we get that for free). Signed-off-by: Paolo Bonzini --- nbd.c | 65 +++--

[Qemu-devel] [PATCH 15/15] qemu-nbd: throttle requests

2011-10-10 Thread Paolo Bonzini
Limiting the number of in-flight requests is implemented very simply with a can_read callback. It does not require a semaphore, unlike the client side in block/nbd.c, because we can throttle directly the creation of coroutines. The client side can have a coroutine created at any time when an I/O

Re: [Qemu-devel] [PATCH] qemu-kvm: fix improper nmi emulation

2011-10-10 Thread Andreas Färber
Am 10.10.2011 08:49, schrieb Jan Kiszka: On 2011-10-10 08:06, Lai Jiangshan wrote: From: Kenji Kaneshige Currently, NMI interrupt is blindly sent to all the vCPUs when NMI button event happens. This doesn't properly emulate real hardware on which NMI button event triggers LINT1. Because of this

[Qemu-devel] [PATCH 01/15] qemu-nbd: remove offset argument to nbd_trip

2011-10-10 Thread Paolo Bonzini
The argument is write-only. Signed-off-by: Paolo Bonzini --- nbd.c |8 +++- nbd.h |2 +- qemu-nbd.c |3 +-- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/nbd.c b/nbd.c index 6a96878..a96c109 100644 --- a/nbd.c +++ b/nbd.c @@ -585,8 +585,9 @@ static int

[Qemu-devel] [PATCH 05/15] qemu-nbd: introduce nbd_do_send_reply

2011-10-10 Thread Paolo Bonzini
Group the sending of a reply and the associated data into a new function. Without corking, the caller would be forced to leave 12 free bytes at the beginning of the data pointer. Not too ugly, but still ugly. :) Using nbd_do_send_reply everywhere will help when the routine will set up the write h

[Qemu-devel] [PATCH 06/15] qemu-nbd: more robust handling of invalid requests

2011-10-10 Thread Paolo Bonzini
Fail invalid requests with EINVAL instead of dropping them into the void. Signed-off-by: Paolo Bonzini --- nbd.c | 57 ++--- 1 files changed, 30 insertions(+), 27 deletions(-) diff --git a/nbd.c b/nbd.c index 5fd6daf..ec84071 100644 --- a/nb

[Qemu-devel] [PATCH 10/15] link the main loop and its dependencies into the tools

2011-10-10 Thread Paolo Bonzini
Using the main loop code from QEMU enables tools to operate fully asynchronously. Advantages include better Windows portability (for some definition of portability) over glib's. Signed-off-by: Paolo Bonzini --- Makefile |4 +++- os-posix.c| 42

Re: [Qemu-devel] [Question] dump memory when host pci device is used by guest

2011-10-10 Thread Jan Kiszka
On 2011-10-10 11:34, Richard W.M. Jones wrote: > On Mon, Oct 10, 2011 at 10:10:21AM +0100, Daniel P. Berrange wrote: >> On Mon, Oct 10, 2011 at 10:08:26AM +0100, Daniel P. Berrange wrote: >>> On Mon, Oct 10, 2011 at 10:21:02AM +0800, Wen Congyang wrote: At 10/09/2011 06:23 PM, Richard W.M. Jon

Re: [Qemu-devel] [Question] dump memory when host pci device is used by guest

2011-10-10 Thread Daniel P. Berrange
On Mon, Oct 10, 2011 at 11:34:44AM +0200, Jan Kiszka wrote: > On 2011-10-10 11:10, Daniel P. Berrange wrote: > > On Mon, Oct 10, 2011 at 10:08:26AM +0100, Daniel P. Berrange wrote: > >> On Mon, Oct 10, 2011 at 10:21:02AM +0800, Wen Congyang wrote: > >>> At 10/09/2011 06:23 PM, Richard W.M. Jones Wr

[Qemu-devel] [PATCH 11/15] qemu-nbd: use common main loop

2011-10-10 Thread Paolo Bonzini
Using a single main loop for sockets will help yielding from the socket coroutine back to the main loop, and later reentering it. Signed-off-by: Paolo Bonzini --- qemu-nbd.c | 101 1 files changed, 47 insertions(+), 54 deletions(-) d

Re: [Qemu-devel] [Question] dump memory when host pci device is used by guest

2011-10-10 Thread Alon Levy
On Mon, Oct 10, 2011 at 11:34:44AM +0200, Jan Kiszka wrote: > On 2011-10-10 11:10, Daniel P. Berrange wrote: > > On Mon, Oct 10, 2011 at 10:08:26AM +0100, Daniel P. Berrange wrote: > >> On Mon, Oct 10, 2011 at 10:21:02AM +0800, Wen Congyang wrote: > >>> At 10/09/2011 06:23 PM, Richard W.M. Jones Wr

[Qemu-devel] [PATCH 04/15] qemu-nbd: simplify nbd_trip

2011-10-10 Thread Paolo Bonzini
Use TCP_CORK to remove a violation of encapsulation, that would later require nbd_trip to know too much about an NBD reply. We could also switch to sendmsg (qemu_co_sendv) later, it is even easier once coroutines are in. Signed-off-by: Paolo Bonzini --- nbd.c | 25 - 1

[Qemu-devel] [PATCH 07/15] qemu-nbd: introduce nbd_do_receive_request

2011-10-10 Thread Paolo Bonzini
Group the receiving of a response and the associated data into a new function. Signed-off-by: Paolo Bonzini --- nbd.c | 68 1 files changed, 47 insertions(+), 21 deletions(-) diff --git a/nbd.c b/nbd.c index ec84071..898206f 100

Re: [Qemu-devel] [PATCH] kernel/kvm: fix improper nmi emulation

2011-10-10 Thread Avi Kivity
On 10/10/2011 08:06 AM, Lai Jiangshan wrote: From: Kenji Kaneshige Currently, NMI interrupt is blindly sent to all the vCPUs when NMI button event happens. This doesn't properly emulate real hardware on which NMI button event triggers LINT1. Because of this, NMI is sent to the processor even whe

Re: [Qemu-devel] [PATCH] Update README example

2011-10-10 Thread Avi Kivity
On 10/09/2011 06:02 PM, Liu, Jinsong wrote: Subject: [PATCH] Update README example Thanks, applied. -- error compiling committee.c: too many arguments to function

Re: [Qemu-devel] [PATCH] apic: test tsc deadline timer

2011-10-10 Thread Avi Kivity
On 10/09/2011 05:32 PM, Liu, Jinsong wrote: Updated test case for kvm tsc deadline timer https://github.com/avikivity/kvm-unit-tests, as attached. Applied, thanks. -- error compiling committee.c: too many arguments to function

[Qemu-devel] [PATCH] virtio-9p: fix QEMU build break

2011-10-10 Thread Zhi Yong Wu
qemu build break due to the redefinition of struct file_handle. My qemu.git/HEAD is 8acbc9b21d757a6be4f8492e547b8159703a0547 Below is the log: [root@f15 qemu]# make CCqapi-generated/qga-qapi-types.o LINK qemu-ga CClibhw64/9pfs/virtio-9p-handle.o /home/zwu/work/virt/qemu/hw/9pfs/vir

Re: [Qemu-devel] [PATCH][uq/master] kvm: Add top-like kvm statistics script

2011-10-10 Thread Avi Kivity
On 10/07/2011 09:37 AM, Jan Kiszka wrote: Taken from original qemu-kvm/kvm/kvm_stat. Applied, thanks. -- error compiling committee.c: too many arguments to function

Re: [Qemu-devel] [PATCH][uq/master] kvm: Add tool for querying VMX capabilities

2011-10-10 Thread Avi Kivity
On 10/07/2011 09:37 AM, Jan Kiszka wrote: Taken from original qemu-kvm/kvm/scripts/vmxcap. Applied, thanks. -- error compiling committee.c: too many arguments to function

[Qemu-devel] [PATCH 14/15] qemu-nbd: asynchronous operation

2011-10-10 Thread Paolo Bonzini
Using coroutines enable asynchronous operation on both the network and the block side. Network can be owned by two coroutines at the same time, one writing and one reading. On the send side, mutual exclusion is guaranteed by a CoMutex. On the receive side, mutual exclusion is guaranteed because

[Qemu-devel] [PATCH 08/15] qemu-nbd: introduce NBDExport

2011-10-10 Thread Paolo Bonzini
Wrap the common parameters of nbd_trip in a single opaque struct. Signed-off-by: Paolo Bonzini --- nbd.c | 57 ++--- nbd.h |9 +++-- qemu-nbd.c | 18 ++ 3 files changed, 55 insertions(+), 29 deletions(-) d

[Qemu-devel] [PATCH 02/15] qemu-nbd: remove data_size argument to nbd_trip

2011-10-10 Thread Paolo Bonzini
The size of the buffer is in practice part of the protocol. Signed-off-by: Paolo Bonzini --- nbd.c |6 +++--- nbd.h |4 +++- qemu-nbd.c |4 +--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/nbd.c b/nbd.c index a96c109..59c47ee 100644 --- a/nbd.c +++ b/nbd.

Re: [Qemu-devel] [Question] dump memory when host pci device is used by guest

2011-10-10 Thread Paolo Bonzini
On 10/10/2011 12:21 PM, Alon Levy wrote: > A core file would be that format - for direct gdb processing. No > proprietary re-inventions please. Just a note: A core file to windows core dump file would be nice for windows guest crashes. That requires cooperation from a kernel driver in the Wi

Re: [Qemu-devel] [Question] dump memory when host pci device is used by guest

2011-10-10 Thread Daniel P. Berrange
On Mon, Oct 10, 2011 at 12:48:52PM +0200, Paolo Bonzini wrote: > On 10/10/2011 12:21 PM, Alon Levy wrote: > >> A core file would be that format - for direct gdb processing. No > >> proprietary re-inventions please. > > > >Just a note: A core file to windows core dump file would be nice for > >win

Re: [Qemu-devel] [Question] dump memory when host pci device is used by guest

2011-10-10 Thread Paolo Bonzini
On 10/10/2011 01:04 PM, Daniel P. Berrange wrote: On Mon, Oct 10, 2011 at 12:48:52PM +0200, Paolo Bonzini wrote: > On 10/10/2011 12:21 PM, Alon Levy wrote: > >>A core file would be that format - for direct gdb processing. No > >>proprietary re-inventions please. > > > >Just a note

Re: [Qemu-devel] [PATCH] rsqrte_f32: No need to copy sign bit.

2011-10-10 Thread Christophe Lyon
On 09.10.2011 00:57, Peter Maydell wrote: On 3 October 2011 15:28, Christophe Lyon wrote: Indeed, the result is known to be always positive. -val = ((val64>> 63)& 0x8000) -| ((result_exp& 0xff)<< 23) +val = ((result_exp& 0xff)<< 23) | ((val64>> 29)& 0x7f

[Qemu-devel] [PATCH v2] target-xtensa: update qemu-doc.texi

2011-10-10 Thread Max Filippov
Signed-off-by: Max Filippov --- v1 -> v2 change: fix menu item text in qemu-tech.texi --- qemu-doc.texi | 55 +++ qemu-tech.texi | 40 +--- 2 files changed, 88 insertions(+), 7 deletions(-) diff --git a/

[Qemu-devel] KVM call agenda for October 11th

2011-10-10 Thread Juan Quintela
Hi Please send in any agenda items you are interested in covering. Thanks, Juan. pgpsWpNSfkqQb.pgp Description: PGP signature

[Qemu-devel] windows crash dump header. was: Re: [Question] dump memory when host pci device is used by guest

2011-10-10 Thread Alon Levy
On Mon, Oct 10, 2011 at 01:09:17PM +0200, Paolo Bonzini wrote: > On 10/10/2011 01:04 PM, Daniel P. Berrange wrote: > >On Mon, Oct 10, 2011 at 12:48:52PM +0200, Paolo Bonzini wrote: > >>> On 10/10/2011 12:21 PM, Alon Levy wrote: > > >>A core file would be that format - for direct gdb proce

Re: [Qemu-devel] [FYI] Soft feature freeze for 1.0 is 10/15 (three weeks away)

2011-10-10 Thread Max Filippov
> For any major feature that you're targeting to the next release, you should: > > # Make sure that you've posted a patch series to qemu-devel > # Write a Feature page on the qemu.org wiki describing the feature and the > motivation > # On the release planning wiki page, link to your feature wiki p

Re: [Qemu-devel] usb_packet_complete assert(p->owner != NULL)

2011-10-10 Thread Gerd Hoffmann
Hi, -usb_packet_complete(&s->dev, packet); +s->dev.port->ops->complete(s->dev.port, packet); } The hub is now directly invoking .complete() and not messing with packet->owner (which is already NULL). We don't hit the assertion anymore. Does the attached patch work for you? che

Re: [Qemu-devel] [PATCH] rsqrte_f32: No need to copy sign bit.

2011-10-10 Thread Peter Maydell
On 10 October 2011 12:26, Christophe Lyon wrote: > On 09.10.2011 00:57, Peter Maydell wrote: >> So we weren't generating incorrect results, we were just doing >> slightly more work than we really needed, right? I'm curious >> what prompted this patch :-) >> > Exactly. And no way to expose a bug :-

Re: [Qemu-devel] windows crash dump header. was: Re: [Question] dump memory when host pci device is used by guest

2011-10-10 Thread Paolo Bonzini
On 10/10/2011 02:00 PM, Alon Levy wrote: > Note that the guest can generate the buffer before it crashes. > Thanks. The contents seem to be undocumented (stubbed in reactos). Those lazy reactos authors. :) 32-bit: http://www.google.com/codesearch#s5CWGGZtI6g/trunk/Volatility/vtypes.py&q=Maj

[Qemu-devel] [PATCH] target-arm: Fix use of free() in cpu_arm_close()

2011-10-10 Thread Andreas Färber
env is allocated in cpu_arm_init() with g_malloc0(), so free with g_free(). Cc: Peter Maydell Signed-off-by: Andreas Färber --- target-arm/helper.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-arm/helper.c b/target-arm/helper.c index d3a3ba2..8195c56 100644 -

[Qemu-devel] [BUG] USB assertion triggers in usb_packet_complete()

2011-10-10 Thread Thomas Huth
Hi! I am currently facing a problem when running QEMU (up-to-date git version) with OHCI and a lot of virtual USB devices. The emulator dies with the following assertion: qemu-system-arm: hw/usb.c:337: usb_packet_complete: Assertion `p->owner != ((void *)0)' failed. To reproduce this problem,

Re: [Qemu-devel] Is realview-pb-a8 fully supported ?

2011-10-10 Thread Francis Moreau
On Mon, Oct 10, 2011 at 10:42 AM, Peter Maydell wrote: > On 10 October 2011 08:35, Francis Moreau wrote: >> I noticed another point for the realview platofrm: if I boot with "-M >> 512", it works however if I set "-M 256" then it doesn't. > > Perhaps your kernel is configured to load in the highe

Re: [Qemu-devel] windows crash dump header. was: Re: [Question] dump memory when host pci device is used by guest

2011-10-10 Thread Alon Levy
On Mon, Oct 10, 2011 at 02:38:35PM +0200, Paolo Bonzini wrote: > On 10/10/2011 02:00 PM, Alon Levy wrote: > >>> Note that the guest can generate the buffer before it crashes. > >>> > >Thanks. The contents seem to be undocumented (stubbed in reactos). > > Those lazy reactos authors. :) > > 32-bit

Re: [Qemu-devel] buildbot failure in qemu on default_openbsd_4.9

2011-10-10 Thread Gerd Hoffmann
Hi, Gerd, Brad, does one of your buildbots have some resources left to build the block branch on OpenBSD (and for Gerd, possibly mingw) as well? No problem, can be added to both openbsd and mingw. cheers, Gerd

Re: [Qemu-devel] [PATCH] Probe PCI existence

2011-10-10 Thread Gerd Hoffmann
On 09/21/11 08:16, Jan Kiszka wrote: From: Jan Kiszka This prevents lockups when trying to allocate PCI resources on an ISA-only system like QEMU can emulate. Looks good to me. Acked-by: Gerd Hoffmann cheers, Gerd

Re: [Qemu-devel] [PATCH 0/1] [PULL] qemu-kvm.git uq/master queue

2011-10-10 Thread Anthony Liguori
On 10/03/2011 03:55 PM, Marcelo Tosatti wrote: The following changes since commit d11cf8cc80d946dfc9a23597cd9a0bb1c487cfa7: etrax-dma: Remove bogus if statement (2011-10-03 10:20:13 +0200) are available in the git repository at: git://github.com/avikivity/qemu.git uq/master Pulled. Tha

Re: [Qemu-devel] [PULL 0/7] Trivial patches for September 22 to October 5 2011

2011-10-10 Thread Anthony Liguori
On 10/05/2011 03:47 AM, Stefan Hajnoczi wrote: The following changes since commit d11cf8cc80d946dfc9a23597cd9a0bb1c487cfa7: etrax-dma: Remove bogus if statement (2011-10-03 10:20:13 +0200) are available in the git repository at: ssh://repo.or.cz/srv/git/qemu/stefanha.git trivial-patches

Re: [Qemu-devel] [PULL 00/26]: QMP queue

2011-10-10 Thread Anthony Liguori
On 10/05/2011 08:21 AM, Luiz Capitulino wrote: Anthony, This pull request contains only the first round of QAPI conversions series. I had to rebase it but the changes are rather simple. The changes (since d11cf8cc80d946dfc9a23597cd9a0bb1c487cfa7) are available in the following repository:

Re: [Qemu-devel] [PATCH 0/1] [PULL] qemu-kvm.git uq/master queue

2011-10-10 Thread Avi Kivity
On 10/10/2011 04:41 PM, Anthony Liguori wrote: On 10/03/2011 03:55 PM, Marcelo Tosatti wrote: The following changes since commit d11cf8cc80d946dfc9a23597cd9a0bb1c487cfa7: etrax-dma: Remove bogus if statement (2011-10-03 10:20:13 +0200) are available in the git repository at: git://githu

[Qemu-devel] FYI: Need to a make clean due to recently pushed commit

2011-10-10 Thread Anthony Liguori
Due to: commit e3193601c84558c303b1773379da76fce80c0a56 Author: Anthony Liguori Date: Fri Sep 2 12:34:47 2011 -0500 qapi: use middle mode in QMP server It'll be necessary to do a make clean if you have a tree that has a build from before this commit. If you get compile errors abou

Re: [Qemu-devel] [PATCH 1/1] kvm: support TSC deadline MSR

2011-10-10 Thread Anthony Liguori
On 10/04/2011 05:20 PM, Marcelo Tosatti wrote: On Tue, Oct 04, 2011 at 07:53:42PM +0200, Avi Kivity wrote: On 10/03/2011 10:55 PM, Marcelo Tosatti wrote: From: "Liu, Jinsong" KVM add emulation of lapic tsc deadline timer for guest. This patch is co-operation work at qemu side. -#define CPU_SA

Re: [Qemu-devel] [PATCH 0/1] [PULL] qemu-kvm.git uq/master queue

2011-10-10 Thread Anthony Liguori
On 10/10/2011 09:48 AM, Avi Kivity wrote: On 10/10/2011 04:41 PM, Anthony Liguori wrote: On 10/03/2011 03:55 PM, Marcelo Tosatti wrote: The following changes since commit d11cf8cc80d946dfc9a23597cd9a0bb1c487cfa7: etrax-dma: Remove bogus if statement (2011-10-03 10:20:13 +0200) are available i

Re: [Qemu-devel] [PATCH 1/1] kvm: support TSC deadline MSR

2011-10-10 Thread Avi Kivity
On 10/10/2011 04:54 PM, Anthony Liguori wrote: On 10/04/2011 05:20 PM, Marcelo Tosatti wrote: On Tue, Oct 04, 2011 at 07:53:42PM +0200, Avi Kivity wrote: On 10/03/2011 10:55 PM, Marcelo Tosatti wrote: From: "Liu, Jinsong" KVM add emulation of lapic tsc deadline timer for guest. This patch is

[Qemu-devel] [PATCH 21/24] pc: Convert port92 to isa_register_ioport

2011-10-10 Thread Avi Kivity
From: Richard Henderson Signed-off-by: Richard Henderson Signed-off-by: Avi Kivity --- hw/pc.c | 16 +--- 1 files changed, 13 insertions(+), 3 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index 203627d..ded4758 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -428,6 +428,7 @@ void pc_cmos_i

[Qemu-devel] [PATCH 18/24] parallel: Convert to isa_register_portio_list

2011-10-10 Thread Avi Kivity
From: Richard Henderson Signed-off-by: Richard Henderson Signed-off-by: Avi Kivity --- hw/parallel.c | 47 --- 1 files changed, 28 insertions(+), 19 deletions(-) diff --git a/hw/parallel.c b/hw/parallel.c index ecbc8c3..8494d94 100644 --- a/hw/par

[Qemu-devel] [PATCH 01/24] hw/lan9118.c: Convert to MemoryRegion

2011-10-10 Thread Avi Kivity
From: Peter Maydell Signed-off-by: Peter Maydell Signed-off-by: Avi Kivity --- hw/lan9118.c | 29 +++-- 1 files changed, 11 insertions(+), 18 deletions(-) diff --git a/hw/lan9118.c b/hw/lan9118.c index 73a8661..634b88e 100644 --- a/hw/lan9118.c +++ b/hw/lan9118.c @@

[Qemu-devel] [PATCH 23/24] ide: Convert to isa_register_portio_list

2011-10-10 Thread Avi Kivity
From: Richard Henderson Signed-off-by: Richard Henderson Signed-off-by: Avi Kivity --- hw/ide/core.c | 30 +++--- hw/ide/internal.h |3 ++- hw/ide/isa.c |4 +--- hw/ide/piix.c |7 --- hw/ide/via.c |7 --- 5 files changed, 30 i

Re: [Qemu-devel] [PATCH 0/1] [PULL] qemu-kvm.git uq/master queue

2011-10-10 Thread Avi Kivity
On 10/10/2011 04:55 PM, Anthony Liguori wrote: Hrm, sorry about that. In the future, it would be helpful to explicitly withdrawal a PULL request. Do you want me to revert? We'll send the revert together with the new patch. FWIW, I think bumping the version is the right thing to do. W

Re: [Qemu-devel] [PATCH 1/1] kvm: support TSC deadline MSR

2011-10-10 Thread Anthony Liguori
On 10/10/2011 09:58 AM, Avi Kivity wrote: On 10/10/2011 04:54 PM, Anthony Liguori wrote: On 10/04/2011 05:20 PM, Marcelo Tosatti wrote: On Tue, Oct 04, 2011 at 07:53:42PM +0200, Avi Kivity wrote: On 10/03/2011 10:55 PM, Marcelo Tosatti wrote: From: "Liu, Jinsong" KVM add emulation of lapic t

Re: [Qemu-devel] [PATCH 0/1] [PULL] qemu-kvm.git uq/master queue

2011-10-10 Thread Anthony Liguori
On 10/10/2011 10:00 AM, Avi Kivity wrote: On 10/10/2011 04:55 PM, Anthony Liguori wrote: Hrm, sorry about that. In the future, it would be helpful to explicitly withdrawal a PULL request. Do you want me to revert? We'll send the revert together with the new patch. FWIW, I think bumping the

Re: [Qemu-devel] [PATCH 0/1] [PULL] qemu-kvm.git uq/master queue

2011-10-10 Thread Avi Kivity
On 10/10/2011 05:12 PM, Anthony Liguori wrote: On 10/10/2011 10:00 AM, Avi Kivity wrote: On 10/10/2011 04:55 PM, Anthony Liguori wrote: Hrm, sorry about that. In the future, it would be helpful to explicitly withdrawal a PULL request. Do you want me to revert? We'll send the revert together

Re: [Qemu-devel] [PATCH 1/1] kvm: support TSC deadline MSR

2011-10-10 Thread Avi Kivity
On 10/10/2011 05:10 PM, Anthony Liguori wrote: It's irreversible, once we release a version with a bumped ID we can't go back. But the question is whether we've bumped *any* versions of common devices since 0.15 because if so, it's moot here. What's the answer? And if the answer is we did

Re: [Qemu-devel] buildbot failure in qemu on default_openbsd_4.9

2011-10-10 Thread Daniel Gollub
Hi Gerd, Hi Kevin, On Monday, October 10, 2011 04:23:28 PM Gerd Hoffmann wrote: > > Gerd, Brad, does one of your buildbots have some resources left to build > > the block branch on OpenBSD (and for Gerd, possibly mingw) as well? > > No problem, can be added to both openbsd and mingw. Gerd, just

Re: [Qemu-devel] [PATCH 0/1] [PULL] qemu-kvm.git uq/master queue

2011-10-10 Thread Anthony Liguori
On 10/10/2011 10:24 AM, Avi Kivity wrote: On 10/10/2011 05:12 PM, Anthony Liguori wrote: On 10/10/2011 10:00 AM, Avi Kivity wrote: On 10/10/2011 04:55 PM, Anthony Liguori wrote: Hrm, sorry about that. In the future, it would be helpful to explicitly withdrawal a PULL request. Do you want me

[Qemu-devel] [PATCH 24/24] isa: Remove isa_init_ioport_range and isa_init_ioport

2011-10-10 Thread Avi Kivity
From: Richard Henderson All users have been converted to either isa_register_ioport or isa_register_old_portio_list. Signed-off-by: Richard Henderson Signed-off-by: Avi Kivity --- hw/isa-bus.c | 19 +-- hw/isa.h |2 -- 2 files changed, 5 insertions(+), 16 deletions(-

Re: [Qemu-devel] [PATCH 0/1] [PULL] qemu-kvm.git uq/master queue

2011-10-10 Thread Avi Kivity
On 10/10/2011 05:36 PM, Anthony Liguori wrote: Ok. So bumping the version is only right if we don't fix subsections. If we bump *any* version from 0.15 -> 1.0, then there's no point at all in having a subsection. Did we bump versions of relevant devices? If we break compatibility by using

[Qemu-devel] [PATCH 02/24] palm: convert to memory API

2011-10-10 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/palm.c | 53 + 1 files changed, 25 insertions(+), 28 deletions(-) diff --git a/hw/palm.c b/hw/palm.c index d8f50e3..094bfde 100644 --- a/hw/palm.c +++ b/hw/palm.c @@ -54,16 +54,12 @@ static void static_write(v

[Qemu-devel] [PATCH 11/24] memory: Fix old portio word accesses

2011-10-10 Thread Avi Kivity
From: Jan Kiszka As we register old portio regions via ioport_register, we are also responsible for providing the word access wrapper. Signed-off-by: Jan Kiszka Signed-off-by: Avi Kivity --- memory.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/memory.c b

[Qemu-devel] [PATCH 05/24] ppc405_boards: convert to memory API

2011-10-10 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/ppc405_boards.c | 85 ++- 1 files changed, 37 insertions(+), 48 deletions(-) diff --git a/hw/ppc405_boards.c b/hw/ppc405_boards.c index 9136288..672e934 100644 --- a/hw/ppc405_boards.c +++ b/hw/ppc405_boards.c @@

[Qemu-devel] [PATCH 20/24] vga: Convert to isa_register_portio_list

2011-10-10 Thread Avi Kivity
From: Richard Henderson [jan: fix cut'n'paste errors] [avi: adjust pci variants not to use isa functions] Signed-off-by: Richard Henderson Signed-off-by: Jan Kiszka Signed-off-by: Avi Kivity --- hw/qxl.c|2 +- hw/vga-isa.c| 17 hw/vga-pci.c|2 +- hw/vga

[Qemu-devel] [PATCH 07/24] hw/versatile_pci: Expose multiple sysbus mmio regions

2011-10-10 Thread Avi Kivity
From: Peter Maydell Clean up versatile_pci to expose the various PCI mmio regions properly as separate mmio regions rather than as a single mmio which uses callbacks to map and unmap everything. Signed-off-by: Peter Maydell Signed-off-by: Avi Kivity --- hw/realview.c | 12 ++--

[Qemu-devel] [PATCH 19/24] sb16: Convert to isa_register_portio_list

2011-10-10 Thread Avi Kivity
From: Richard Henderson Signed-off-by: Richard Henderson Signed-off-by: Avi Kivity --- hw/sb16.c | 32 +--- 1 files changed, 13 insertions(+), 19 deletions(-) diff --git a/hw/sb16.c b/hw/sb16.c index aca52e0..f0658ac 100644 --- a/hw/sb16.c +++ b/hw/sb16.c @@ -134

[Qemu-devel] [PULL 00/24] Memory API, batch 11

2011-10-10 Thread Avi Kivity
Please pull from: git://github.com/avikivity memory/batch This has been on the list for a bit, with no comments so far. Avi Kivity (7): palm: convert to memory API petalogix_ml605: convert to memory API petalogix_s2adsp1800: convert to memory API ppc405_boards: convert to memory API

[Qemu-devel] [PATCH 12/24] isa: Add isa_register_portio_list()

2011-10-10 Thread Avi Kivity
Signed-off-by: Richard Henderson Signed-off-by: Avi Kivity --- hw/isa-bus.c | 17 + hw/isa.h | 31 ++- 2 files changed, 47 insertions(+), 1 deletions(-) diff --git a/hw/isa-bus.c b/hw/isa-bus.c index e9c1712..5d8ff84 100644 --- a/hw/isa-bus.c

[Qemu-devel] [PATCH 08/24] ppc_newworld: convert to memory API

2011-10-10 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/ppc_newworld.c | 39 +-- 1 files changed, 17 insertions(+), 22 deletions(-) diff --git a/hw/ppc_newworld.c b/hw/ppc_newworld.c index b9a50db..8c84f9e 100644 --- a/hw/ppc_newworld.c +++ b/hw/ppc_newworld.c @@ -84,12 +84,13 @@

[Qemu-devel] [PATCH 17/24] ne2000: Convert to isa_register_ioport

2011-10-10 Thread Avi Kivity
From: Richard Henderson Signed-off-by: Richard Henderson Signed-off-by: Avi Kivity --- hw/ne2000-isa.c |5 + 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/hw/ne2000-isa.c b/hw/ne2000-isa.c index 756ed5c..11ffee7 100644 --- a/hw/ne2000-isa.c +++ b/hw/ne2000-isa.c @@ -68

[Qemu-devel] [PATCH 04/24] petalogix_s2adsp1800: convert to memory API

2011-10-10 Thread Avi Kivity
Signed-off-by: Avi Kivity --- hw/petalogix_s3adsp1800_mmu.c | 18 ++ 1 files changed, 10 insertions(+), 8 deletions(-) diff --git a/hw/petalogix_s3adsp1800_mmu.c b/hw/petalogix_s3adsp1800_mmu.c index 66fb96d..17da2fd 100644 --- a/hw/petalogix_s3adsp1800_mmu.c +++ b/hw/petalogix

[Qemu-devel] [PATCH 10/24] Introduce PortioList

2011-10-10 Thread Avi Kivity
Add a type and methods for manipulating a list of disjoint I/O ports, used in some older hardware devices. Based on original patch by Richard Henderson. Signed-off-by: Richard Henderson Signed-off-by: Avi Kivity --- Makefile.objs |2 +- Makefile.target |2 +- ioport.c| 108 +

  1   2   >