[Qemu-devel] [PATCH] Replace bdrv_* to bdrv_aio_* functions in pio mode in fdc.c.

2012-03-23 Thread Li Zhi Hui
Replace bdrv_* to bdrv_aio_* functions in pio mode in fdc.c. Signed-off-by: Li Zhi Hui --- hw/fdc.c | 117 +++-- 1 files changed, 90 insertions(+), 27 deletions(-) diff --git a/hw/fdc.c b/hw/fdc.c index a0236b7..5e855fd 100644 --- a/hw/fd

[Qemu-devel] [PATCH V3 0/7] Make QED with live migration safe

2012-03-23 Thread Benoît Canet
This is the third version of a patchset aiming at making the combined usage of QED and live migration safe. v3: -qed: Drop the flags qed structure member and use bs->open_flags to reopen (stefana) -qed: When opening honor flags parameter instead of bs->open_flags v2: -The block layer is not aw

[Qemu-devel] [PATCH V3 6/7] qed: honor BDRV_O_INCOMING for incoming live migration

2012-03-23 Thread Benoît Canet
>From original commit with Patchwork-id: 31108 by Stefan Hajnoczi "The QED image format includes a file header bit to mark images dirty. QED normally checks dirty images on open and fixes inconsistent metadata. This is undesirable during live migration since the dirty bit may be set if the sourc

[Qemu-devel] [PATCH V3 5/7] migration: clear BDRV_O_INCOMING flags on end of incoming live migration

2012-03-23 Thread Benoît Canet
Signed-off-by: Benoît Canet --- migration.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/migration.c b/migration.c index 8c119ba..94f7839 100644 --- a/migration.c +++ b/migration.c @@ -91,6 +91,7 @@ void process_incoming_migration(QEMUFile *f) qemu_announce_self()

Re: [Qemu-devel] [PATCH 11/11 v10] introduce a new monitor command 'dump-guest-memory' to dump guest's memory

2012-03-23 Thread HATAYAMA Daisuke
From: Wen Congyang Subject: [PATCH 11/11 v10] introduce a new monitor command 'dump-guest-memory' to dump guest's memory Date: Tue, 20 Mar 2012 11:57:43 +0800 > +typedef struct DumpState { > +ArchDumpInfo dump_info; > +MemoryMappingList list; > +uint16_t phdr_num; > +uint32_t s

[Qemu-devel] Spice bug with qemu_name

2012-03-23 Thread Lee Essen
Hi, I think I've found a bug with the way that spice uses qemu_name. qemu_name is a char *, that's only set to if "-name" is given (and then the arg is strdup'd), otherwise it's not set properly. In ui/spice_core.c spice_server_set_name() is called with qemu_name, which if not set causes a co

[Qemu-devel] [PATCH V3 2/7] block: add a function to clear incoming live migration flags

2012-03-23 Thread Benoît Canet
This function will clear all BDRV_O_INCOMING flags. Signed-off-by: Benoit Canet --- block.c |9 + block.h |2 ++ 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/block.c b/block.c index b88ee90..45085e7 100644 --- a/block.c +++ b/block.c @@ -3584,6 +3584,15 @@ void

[Qemu-devel] [PATCH 0/2] QEMU kvm: Adding paravirtual spinlock support for x86.

2012-03-23 Thread Raghavendra K T
The patch, extends KVM-hypervisor and Linux guest running on KVM-hypervisor to support pv-ticket spinlocks. PV ticket spinlock helps to solve Lock Holder Preemption problem discussed in http://www.amd64.org/fileadmin/user_upload/pub/LHP-commented_slides.pdf. When spinlock is contended,a guest vcp

[Qemu-devel] [PATCH 1/2] QEMU kvm: Add PV_UNHALT feature support

2012-03-23 Thread Raghavendra K T
From: Raghavendra K T Extend the KVM Hypervisor to enable PVLOCK_KICK feature that allows a vcpu to kick the halted vcpu to continue with execution in PV ticket spinlock. Signed-off-by: Srivatsa Vaddagiri Signed-off-by: Raghavendra K T --- diff --git a/target-i386/kvm.c b/target-i386/kvm.c ind

[Qemu-devel] [PATCH 2/2] QEMU kvm: Add support to get/set vcpu unhalt msr to aid migration

2012-03-23 Thread Raghavendra K T
From: Raghavendra K T MSR_KVM_PV_UNHALT tells whether vcpu is unhalted, which needs to be used during migration. Signed-off-by: Raghavendra K T --- diff --git a/target-i386/cpu.h b/target-i386/cpu.h index a1ed3e7..10286a5 100644 --- a/target-i386/cpu.h +++ b/target-i386/cpu.h @@ -697,6 +697,7 @

[Qemu-devel] [PATCH V3 4/7] qed: add bdrv_invalidate_cache to be called after incoming live migration

2012-03-23 Thread Benoît Canet
The QED image is reopened to flush metadata and check consistency. Signed-off-by: Benoit Canet --- block/qed.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/block/qed.c b/block/qed.c index a041d31..e32f598 100644 --- a/block/qed.c +++ b/block/qed.c @@ -1516,6

[Qemu-devel] [PATCH V3 3/7] blockdev: open images with BDRV_O_INCOMING on incoming live migration

2012-03-23 Thread Benoît Canet
Open images with BDRV_O_INCOMING in order to inform block drivers that an incoming live migration is coming. Signed-off-by: Benoit Canet --- blockdev.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/blockdev.c b/blockdev.c index 1a500b8..9b57133 100644 --- a/blockdev

[Qemu-devel] [PATCH V3 7/7] qed: remove incoming live migration blocker

2012-03-23 Thread Benoît Canet
Signed-off-by: Benoit Canet --- block/qed.c |9 - block/qed.h |2 -- 2 files changed, 0 insertions(+), 11 deletions(-) diff --git a/block/qed.c b/block/qed.c index 4a53db6..74ea278 100644 --- a/block/qed.c +++ b/block/qed.c @@ -498,12 +498,6 @@ static int bdrv_qed_open(BlockDrive

[Qemu-devel] [PATCH V3 1/7] block: Add new BDRV_O_INCOMING flag to notice incoming live migration

2012-03-23 Thread Benoît Canet
>From original patch with Patchwork-id: 31110 by Stefan Hajnoczi "Add a flag to indicate that incoming migration is pending and care needs to be taken for data consistency. Block drivers should not modify the image file before incoming migration is complete since the migration source host is sti

Re: [Qemu-devel] [PATCH 2/2] QEMU kvm: Add support to get/set vcpu unhalt msr to aid migration

2012-03-23 Thread Jan Kiszka
On 2012-03-23 09:23, Raghavendra K T wrote: > From: Raghavendra K T > > MSR_KVM_PV_UNHALT tells whether vcpu is unhalted, which needs to be > used during migration. Err, and where is it actually saved to/restored from the vmstate? You are lacking an extension of the CPU vmstate, preferably via a

Re: [Qemu-devel] [PATCH 1/2] slirp: clean up conflicts with system headers

2012-03-23 Thread Jan Kiszka
On 2012-03-22 20:24, Paolo Bonzini wrote: > Il 22/03/2012 15:35, Jan Kiszka ha scritto: >>> @@ -167,9 +164,6 @@ int inet_aton(const char *cp, struct in_addr *ia); >>> #include "bootp.h" >>> #include "tftp.h" >>> >>> -/* osdep.c */ >>> -int qemu_socket(int domain, int type, int protocol); >>> -

Re: [Qemu-devel] [PATCH 11/11 v10] introduce a new monitor command 'dump-guest-memory' to dump guest's memory

2012-03-23 Thread HATAYAMA Daisuke
From: Wen Congyang Subject: [PATCH 11/11 v10] introduce a new monitor command 'dump-guest-memory' to dump guest's memory Date: Tue, 20 Mar 2012 11:57:43 +0800 > +static int write_elf64_header(DumpState *s) > +{ > +Elf64_Ehdr elf_header; > +int ret; > +int endian = s->dump_info.d_endi

Re: [Qemu-devel] [PATCH V2 0/4] MIPS ASE DSP Support for Qemu

2012-03-23 Thread 陳韋任
> It would be better to break it up as patches each of > which adds support for a coherent bite-sized subset of > these instructions (so each individual patch includes > the helper function declaration, implementation and > translate.c changes for a smaller number of instructions). I am reading

Re: [Qemu-devel] [Xen-devel] [XEN][RFC PATCH 01/15] hvm: Modify interface to support multiple ioreq server

2012-03-23 Thread Jan Beulich
>>> On 22.03.12 at 16:59, Julien Grall wrote: > --- a/xen/include/public/hvm/hvm_op.h > +++ b/xen/include/public/hvm/hvm_op.h > @@ -24,6 +24,8 @@ > #include "../xen.h" > #include "../trace.h" > > +#include "hvm_info_table.h" /* HVM_MAX_VCPUS */ > + > /* Get/set subcommands: extra argument ==

[Qemu-devel] Bug report for kvm-kmod-3.3!

2012-03-23 Thread Katrina Austin
Hi all, I've built a guest image. It works well on KVM with a AMD X240 processor but failed with a intel E5620 processor. I am using kvm-kmod-3.3 and qemu-kvm-0.14.0. Here comes the report: kvm_emulate_insn: 0: 11a6d0: ff (prot32) failed kvm_userspace_exit: reaso

[Qemu-devel] [Bug 962880] [NEW] having a tr_TR.UTF-8 locale creates problems during compile

2012-03-23 Thread Emre Ersin
Public bug reported: Default locale; /opt/test/qemu-1.0.1# locale LANG=tr_TR.UTF-8 LC_CTYPE="tr_TR.UTF-8" ... LC_IDENTIFICATION="tr_TR.UTF-8" LC_ALL= -- ./configure && make . . . /opt/test/qemu-1.0.1/vl.c: In function 'main': /opt/test/qemu-1.0.1/vl.c:2248: hata: 'CONFIG_QEMU_CONF

[Qemu-devel] Bug report: emulation failed for kvm-3.3!

2012-03-23 Thread Katrina Austin
Hi all, I've built a guest image. It works well on KVM with a AMD X240 processor but failed with a intel E5620 processor. I am using kvm-kmod-3.3 and qemu-kvm-0.14.0. Actually it failed for all existing kvm version. Here comes the report: kvm_emulate_insn: 0: 11a6d0: ff (prot32)

[Qemu-devel] [Bug 918791] Re: qemu-kvm dies when using vmvga driver and unity in the guest

2012-03-23 Thread Martin Pitt
Hello Jamie, or anyone else affected, Accepted qemu-kvm into oneiric-proposed. The package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Re: [Qemu-devel] [PATCH 2/2] QEMU kvm: Add support to get/set vcpu unhalt msr to aid migration

2012-03-23 Thread Raghavendra K T
On 03/23/2012 02:27 PM, Jan Kiszka wrote: On 2012-03-23 09:23, Raghavendra K T wrote: From: Raghavendra K T MSR_KVM_PV_UNHALT tells whether vcpu is unhalted, which needs to be used during migration. Err, and where is it actually saved to/restored from the vmstate? You are lacking an extension

Re: [Qemu-devel] [PATCH 11/11 v10] introduce a new monitor command 'dump-guest-memory' to dump guest's memory

2012-03-23 Thread HATAYAMA Daisuke
From: Wen Congyang Subject: [PATCH 11/11 v10] introduce a new monitor command 'dump-guest-memory' to dump guest's memory Date: Tue, 20 Mar 2012 11:57:43 +0800 > +/* get the memory's offset in the vmcore */ > +static target_phys_addr_t get_offset(target_phys_addr_t phys_addr, > +

Re: [Qemu-devel] [Xen-devel] [XEN][RFC PATCH 03/15] hvm-pci: Handle PCI config space in Xen

2012-03-23 Thread Jan Beulich
>>> On 22.03.12 at 16:59, Julien Grall wrote: > --- /dev/null > +++ b/xen/arch/x86/hvm/pci_emul.c > @@ -0,0 +1,147 @@ > +#include > +#include > +#include > +#include > +#include > + > +#define PCI_DEBUGSTR "%x:%x.%x" > +#define PCI_DEBUG(bdf) ((bdf) >> 16) & 0xff, ((bdf) >> 11) & 0x1f, ((bdf)

[Qemu-devel] [PATCH] spice: fix spice_server_set_name call.

2012-03-23 Thread Gerd Hoffmann
spice_server_set_name can't handle the case of getting NULL passed in. Add a check and pass in an empty string instead. Signed-off-by: Gerd Hoffmann --- ui/spice-core.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ui/spice-core.c b/ui/spice-core.c index a468524..50c2

Re: [Qemu-devel] [PATCH 10/11 v10] make gdb_id() generally avialable

2012-03-23 Thread HATAYAMA Daisuke
From: Wen Congyang Subject: [PATCH 10/11 v10] make gdb_id() generally avialable Date: Tue, 20 Mar 2012 11:56:38 +0800 > The following patch also needs this API, so make it generally avialable > > Signed-off-by: Wen Congyang > --- > gdbstub.c |9 - > gdbstub.h |9 + > 2

Re: [Qemu-devel] Spice bug with qemu_name

2012-03-23 Thread Alon Levy
On Fri, Mar 23, 2012 at 08:10:36AM +, Lee Essen wrote: > Hi, > > I think I've found a bug with the way that spice uses qemu_name. > > qemu_name is a char *, that's only set to if "-name" is given (and then the > arg is strdup'd), otherwise it's not set properly. > > In ui/spice_core.c spic

Re: [Qemu-devel] Bug report for kvm-kmod-3.3!

2012-03-23 Thread Jan Kiszka
On 2012-03-23 09:19, Katrina Austin wrote: > Hi all, > >I've built a guest image. It works well on KVM with a AMD X240 processor > but failed with a intel E5620 processor. I am using kvm-kmod-3.3 and > qemu-kvm-0.14.0. Here comes the report: > kvm_emulate_insn: 0: 11a6d0: ff (p

Re: [Qemu-devel] Spice bug with qemu_name

2012-03-23 Thread Lee Essen
On 23 Mar 2012, at 10:18, Alon Levy wrote: > On Fri, Mar 23, 2012 at 08:10:36AM +, Lee Essen wrote: >> Hi, >> >> I think I've found a bug with the way that spice uses qemu_name. >> >> qemu_name is a char *, that's only set to if "-name" is given (and then the >> arg is strdup'd), otherwis

Re: [Qemu-devel] Thoughts around dtrace linking...

2012-03-23 Thread Stefan Hajnoczi
On Thu, Mar 22, 2012 at 05:00:53PM +, Lee Essen wrote: > On 22/03/2012 16:28, Stefan Hajnoczi wrote: > >On Wed, Mar 21, 2012 at 1:01 PM, Andreas Färber wrote: > >>Hi, > >> > >>Am 21.03.2012 11:45, schrieb Lee Essen: > >>>I've been trying to find a sensible way to solve the Solaris/Illumos > >>

Re: [Qemu-devel] [PATCH] block: add the support to drain throttled requests

2012-03-23 Thread Stefan Hajnoczi
On Thu, Mar 22, 2012 at 07:07:52PM +, Chris Webb wrote: > Stefan Hajnoczi writes: > > > Yesterday I only posted an analysis of the bug but here are some > > thoughts on how to move forward. Throttling itself is not the problem. > > We've known that synchronous operations in the vcpu thread a

Re: [Qemu-devel] [PATCH] Replace bdrv_* to bdrv_aio_* functions in pio mode in fdc.c.

2012-03-23 Thread Stefan Hajnoczi
On Fri, Mar 23, 2012 at 03:07:20PM +0800, Li Zhi Hui wrote: > Replace bdrv_* to bdrv_aio_* functions in pio mode in fdc.c. > > Signed-off-by: Li Zhi Hui > --- > hw/fdc.c | 117 +++-- > 1 files changed, 90 insertions(+), 27 deletions(-) I

Re: [Qemu-devel] [QEMU][RFC PATCH 1/6] option: Add -xen-dmid

2012-03-23 Thread Stefano Stabellini
On Thu, 22 Mar 2012, Jan Kiszka wrote: > On 2012-03-22 17:01, Julien Grall wrote: > > With this option, QEMU knows it's ID and can retrieve it's configuration > > from XenStore. > > Isn't this better modeled as a (Xen) machine option? I'd like to avoid > more "special" command line switch prolifer

Re: [Qemu-devel] [PATCH] block: add the support to drain throttled requests

2012-03-23 Thread Chris Webb
Stefan Hajnoczi writes: > On Thu, Mar 22, 2012 at 07:07:52PM +, Chris Webb wrote: > > Stefan Hajnoczi writes: > > > > > Yesterday I only posted an analysis of the bug but here are some > > > thoughts on how to move forward. Throttling itself is not the problem. > > > We've known that synch

Re: [Qemu-devel] [QEMU][RFC PATCH 2/6] xen: Add functions to register PCI and IO in Xen

2012-03-23 Thread Stefano Stabellini
On Thu, 22 Mar 2012, Julien Grall wrote: > Add interface for the new xen hypercalls > > Signed-off-by: Julien Grall > --- > hw/xen.h |3 +++ > xen-all.c |2 ++ > xen-stub.c | 13 + > 3 files changed, 18 insertions(+), 0 deletions(-) > > diff --git a/hw/xen.h b/hw/xen.h

Re: [Qemu-devel] [PATCH] block: add the support to drain throttled requests

2012-03-23 Thread Stefan Hajnoczi
On Fri, Mar 23, 2012 at 10:43 AM, Chris Webb wrote: > Stefan Hajnoczi writes: > >> On Thu, Mar 22, 2012 at 07:07:52PM +, Chris Webb wrote: >> > Stefan Hajnoczi writes: >> > >> > > Yesterday I only posted an analysis of the bug but here are some >> > > thoughts on how to move forward.  Thrott

Re: [Qemu-devel] [QEMU][RFC PATCH 4/6] xen-pci: Register PCI in Xen

2012-03-23 Thread Stefano Stabellini
On Thu, 22 Mar 2012, Anthony Liguori wrote: > On 03/22/2012 11:01 AM, Julien Grall wrote: > > QEMU will now register PCI in Xen. It will usefull to forward > > IO config space to the right QEMU. > > > > Before to register a PCI device, QEMU will check with XenStore if it is > > autorized to registe

Re: [Qemu-devel] [QEMU][RFC PATCH 6/6] xen: handle qemu disaggregation

2012-03-23 Thread Stefano Stabellini
On Thu, 22 Mar 2012, Julien Grall wrote: > * Register QEMU in Xen as server > * Retrieve it's own shared pages > * Check if the page is already mapping before to populate > > Signed-off-by: Julien Grall > --- > xen-all.c | 62 ++-- > 1 fi

Re: [Qemu-devel] [PATCH V3 0/7] Make QED with live migration safe

2012-03-23 Thread Stefan Hajnoczi
On Fri, Mar 23, 2012 at 7:36 AM, Benoît Canet wrote: > This is the third version of a patchset aiming at making the combined > usage of QED and live migration safe. > > v3: > > -qed: Drop the flags qed structure member and use bs->open_flags to reopen > (stefana) > -qed: When opening honor flags

Re: [Qemu-devel] [PATCH] block: add the support to drain throttled requests

2012-03-23 Thread Stefan Hajnoczi
On Fri, Mar 23, 2012 at 11:02 AM, Richard Davies wrote: > Stefan Hajnoczi wrote: >> > Hi. We were producing the IDE assert()s and deadlocks with linux kernels. >> > Although I believe the same symptoms exist on windows, I haven't actually >> > tested it myself. Typically they would show up in the

Re: [Qemu-devel] Bug report for kvm-kmod-3.3!

2012-03-23 Thread Katrina Austin
Hi Jan, The host version is: linux-2.6.33.3. I removed the kvm incorporated in the linux kernel and rebuilt the kvm-kmod-3.3.tar.bz2. I have tried from kvm-kmod-2.6.33.3 to kvm-kmod.3.3. Unfortunately, no one worked. The tested guest image is vxworks downloaded from http://people.freebsd.org/~w

Re: [Qemu-devel] [PATCH] gdbserver: Don't send a GDB syscall until the system CPU is stopped

2012-03-23 Thread Peter Maydell
Ping^3... -- PMM On 15 March 2012 17:49, Peter Maydell wrote: > From: Meador Inge > > Fix an issue where the GDB server implementation was sending GDB syscall > requests while the system CPU was still running.  Syscall requests must > be sent while the CPU is stopped otherwise replies from the

Re: [Qemu-devel] [PATCH 05/11 v10] Add API to get memory mapping

2012-03-23 Thread HATAYAMA Daisuke
From: Wen Congyang Subject: [PATCH 05/11 v10] Add API to get memory mapping Date: Tue, 20 Mar 2012 11:51:18 +0800 > Add API to get all virtual address and physical address mapping. > If the guest doesn't use paging, the virtual address is equal to the phyical > address. The virtual address and ph

Re: [Qemu-devel] Bug report for kvm-kmod-3.3!

2012-03-23 Thread Jan Kiszka
On 2012-03-23 12:45, Katrina Austin wrote: > Hi Jan, > >The host version is: linux-2.6.33.3. I removed the kvm incorporated in the > linux kernel and rebuilt the kvm-kmod-3.3.tar.bz2. I have tried from > kvm-kmod-2.6.33.3 to kvm-kmod.3.3. Unfortunately, no one worked. The tested > guest ima

Re: [Qemu-devel] Spice bug with qemu_name

2012-03-23 Thread Marc-André Lureau
On Fri, Mar 23, 2012 at 9:10 AM, Lee Essen wrote: > In ui/spice_core.c spice_server_set_name() is called with qemu_name, which if > not set causes a core dump. I forgot strdup didn't like NULL values, and I forgot to push the patches fixing this in spice. I've now pushed it. Since it's not offic

Re: [Qemu-devel] Bug report for kvm-kmod-3.3!

2012-03-23 Thread Katrina Austin
The microa-architecture of Intel Xeon E5620 is westmere-EP. So, how to specify, e.g., -cpu westmere? p.s. I cannot test it until tomorrow as I am out of office now. Thanks, katrina On Fri, Mar 23, 2012 at 8:13 PM, Jan Kiszka wrote: > On 2012-03-23 12:45, Katrina Austin wrote: > > Hi Jan, > > >

Re: [Qemu-devel] [Qemu-ppc] [PATCH 0/2] PPC: interrupt handler bugfixes

2012-03-23 Thread Andreas Färber
Hi Mark, Am 22.03.2012 19:57, schrieb Mark Cave-Ayland: > This small patch series resolves https://bugs.launchpad.net/qemu/+bug/942299 > and enables HelenOS to boot once again under PPC32. Please always post patches to qemu-devel, too. Andreas > > Mark Cave-Ayland (2): > PPC: Fix interrupt M

Re: [Qemu-devel] [PATCH] Remove PCI class code from virtio balloon device

2012-03-23 Thread Anthony Liguori
On 03/22/2012 08:52 PM, David Gibson wrote: There is no fragment of code quite like the one you quote, only the check for valid class values, which will accomplish the same thing. It seemed clearer to have the default class value in the property definition be, well, the default class value, rathe

Re: [Qemu-devel] [PATCH v3 1/2] Force timedrift=none on previous machines

2012-03-23 Thread Anthony Liguori
On 03/22/2012 05:37 AM, Stefano Stabellini wrote: On Wed, 21 Mar 2012, Paolo Bonzini wrote: Il 21/03/2012 17:06, Crístian Viana ha scritto: @@ -740,6 +772,13 @@ static QEMUMachine xenfv_machine = { .init = pc_xen_hvm_init, .max_cpus = HVM_MAX_VCPUS, .default_machine_opts = "ac

Re: [Qemu-devel] [Xen-devel] [XEN][RFC PATCH 12/15] xl: Add interface to handle multiple device models

2012-03-23 Thread Julien Grall
On 03/23/2012 11:47 AM, Ian Campbell wrote: On Thu, 2012-03-22 at 15:59 +, Julien Grall wrote: This patch add a structure with contain all informations about a device model. Signed-off-by: Julien Grall --- tools/libxl/libxl.h |4 ++-- tools/libxl/libxl_internal.h |1

Re: [Qemu-devel] [PATCH 2/2] QEMU kvm: Add support to get/set vcpu unhalt msr to aid migration

2012-03-23 Thread Raghavendra K T
On 03/23/2012 02:27 PM, Jan Kiszka wrote: On 2012-03-23 09:23, Raghavendra K T wrote: From: Raghavendra K T MSR_KVM_PV_UNHALT tells whether vcpu is unhalted, which needs to be used during migration. Err, and where is it actually saved to/restored from the vmstate? You are lacking an extension

Re: [Qemu-devel] [PATCH 2/2] Expose tsc deadline timer cpuid to guest

2012-03-23 Thread Eduardo Habkost
On Fri, Mar 23, 2012 at 03:49:27AM +, Liu, Jinsong wrote: > Eduardo Habkost wrote: > > [1] From Documentation/virtual/kvm/api.txt: > > > > "KVM_GET_SUPPORTED_CPUID > > [...] > > This ioctl returns x86 cpuid features which are supported by both the > > hardware and kvm. Userspace can use the i

Re: [Qemu-devel] [Xen-devel] [XEN][RFC PATCH 00/15] QEMU disaggregation

2012-03-23 Thread Julien Grall
On 03/22/2012 04:59 PM, Tim Deegan wrote: At 15:59 + on 22 Mar (1332431961), Julien Grall wrote: Julien Grall (15): xc: Add the hypercall for multiple servers xc: Add argument to allocate more special pages xc: Fix python build Shouldn't something here update xc_domain_sa

Re: [Qemu-devel] [PATCH V9 3/8] Introduce HostPCIDevice to access a pci device on the host.

2012-03-23 Thread Anthony PERARD
On Wed, Mar 21, 2012 at 20:30, Michael S. Tsirkin wrote: > On Wed, Mar 21, 2012 at 06:29:00PM +, Anthony PERARD wrote: >> Signed-off-by: Anthony PERARD >> Acked-by: Stefano Stabellini > > So this interface is really LinuxSysfsPCIDevice. > For example the assumption that you can just open > d

Re: [Qemu-devel] Thoughts around dtrace linking...

2012-03-23 Thread Lee Essen
On 23 Mar 2012, at 08:08, Stefan Hajnoczi wrote: > On Thu, Mar 22, 2012 at 05:00:53PM +, Lee Essen wrote: >> On 22/03/2012 16:28, Stefan Hajnoczi wrote: >>> On Wed, Mar 21, 2012 at 1:01 PM, Andreas Färber wrote: Hi, Am 21.03.2012 11:45, schrieb Lee Essen: > I've been tryi

Re: [Qemu-devel] [PATCH 2/2] Expose tsc deadline timer cpuid to guest

2012-03-23 Thread Liu, Jinsong
Eduardo Habkost wrote: > On Fri, Mar 23, 2012 at 03:49:27AM +, Liu, Jinsong wrote: >> Eduardo Habkost wrote: >>> [1] From Documentation/virtual/kvm/api.txt: >>> >>> "KVM_GET_SUPPORTED_CPUID >>> [...] >>> This ioctl returns x86 cpuid features which are supported by both >>> the hardware and kvm

Re: [Qemu-devel] [PATCH v3 1/5] qerror: add error codes for fopen failure

2012-03-23 Thread Luiz Capitulino
On Sun, 18 Mar 2012 19:29:09 +0100 Alon Levy wrote: > Added: > > QERR_EINTR > QERR_EACCES > QERR_EEXIST > QERR_OPEN_FILE_EMFILE > QERR_ENOSPC > QERR_EPERM > QERR_READ_ONLY > QERR_ENOTDIR > QERR_EFBIG > > Signed-off-by: Alon Levy > --- > qerror.c | 36 >

Re: [Qemu-devel] [PATCH v3 2/5] add qemu_fopen_err

2012-03-23 Thread Luiz Capitulino
On Sun, 18 Mar 2012 19:29:10 +0100 Alon Levy wrote: > This adds a helper to conveniently set the correct error based on the > errno after a failed fopen. > > The added function is placed in it's own c file to allow libcacard to > not develop dependencies on everything that qerror will bring in,

Re: [Qemu-devel] [PATCH v3 4/5] qapi: convert screendump

2012-03-23 Thread Luiz Capitulino
On Sun, 18 Mar 2012 19:29:12 +0100 Alon Levy wrote: > The documenting comment contains the long list of possible errors from > qemu_fopen_err, this could probably be put somewhere else in the file > once more of the api uses those common error classes. > > Signed-off-by: Alon Levy > --- > hmp-

Re: [Qemu-devel] [PATCH v3 5/5] vga: ppm_save(): Return error on failure

2012-03-23 Thread Luiz Capitulino
On Sun, 18 Mar 2012 19:29:13 +0100 Alon Levy wrote: > From: Luiz Capitulino > > This makes all devices using ppm_save() return an error appropriately > when the screendump command fails. > > Based on a code by Anthony Liguori. > > Signed-off-by: Luiz Capitulino > Signed-off-by: Alon Levy >

[Qemu-devel] [PATCH 0/2] xen_disk: use NATIVE_AIO and NOCACHE

2012-03-23 Thread Stefano Stabellini
Hi all, this small patch series allows xen_disk to be used correctly with NATIVE_AIO and O_DIRECT. This series should be backported to the stable branch too. Stefano Stabellini (2): xen_disk: open disk with BDRV_O_NOCACHE | BDRV_O_CACHE_WB | BDRV_O_NATIVE_AIO xen_disk: when using AI

[Qemu-devel] [PATCH 2/2] xen_disk: when using AIO flush after the operation is completed

2012-03-23 Thread Stefano Stabellini
If ioreq->postsync call bdrv_flush when the AIO operation is actually completed. Signed-off-by: Stefano Stabellini --- hw/xen_disk.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/xen_disk.c b/hw/xen_disk.c index 0f265a4..9cb0253 100644 --- a/hw/xen_disk.c +++ b

[Qemu-devel] [PATCH 1/2] xen_disk: open disk with BDRV_O_NOCACHE | BDRV_O_CACHE_WB | BDRV_O_NATIVE_AIO

2012-03-23 Thread Stefano Stabellini
Signed-off-by: Stefano Stabellini --- hw/xen_disk.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/xen_disk.c b/hw/xen_disk.c index 68fa36a..0f265a4 100644 --- a/hw/xen_disk.c +++ b/hw/xen_disk.c @@ -584,10 +584,10 @@ static int blk_init(struct XenDevice *xendev)

Re: [Qemu-devel] [QEMU][RFC PATCH 3/6] memory: Add xen memory hook

2012-03-23 Thread Julien Grall
On 03/22/2012 05:44 PM, Jan Kiszka wrote: static void core_region_nop(MemoryListener *listener, diff --git a/ioport.c b/ioport.c index 78a3b89..073ed75 100644 --- a/ioport.c +++ b/ioport.c @@ -28,6 +28,7 @@ #include "ioport.h" #include "trace.h" #include "memory.h" +#include "hw/xen.h"

[Qemu-devel] [PATCH 0/9] Alpha updates

2012-03-23 Thread Richard Henderson
Patch 1 has been seen before but not picked up. Patches 2-8 convert the target away from areg0. Patch 9 converts the target to make use of the "new" flush_inputs_to_zero flag provided by softfloat, rather than doing the same thing by hand. r~ Richard Henderson (9): alpha-linux-user: Initial

[Qemu-devel] [PATCH 3/9] target-alpha: Move exception helpers to helper.c.

2012-03-23 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-alpha/cpu.h |3 ++ target-alpha/helper.c| 39 target-alpha/helper.h|2 +- target-alpha/op_helper.c | 73 -- target-alpha/translate.c |2 +- 5 files change

[Qemu-devel] [PATCH 1/9] alpha-linux-user: Initialize fpu to round-to-normal.

2012-03-23 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-alpha/translate.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/target-alpha/translate.c b/target-alpha/translate.c index b51fe5c..2c24619 100644 --- a/target-alpha/translate.c +++ b/target-alpha/translate.c @@ -3513,7 +3513

[Qemu-devel] [PATCH 7/9] target-alpha: Move palcode support helpers to sys_helper.c.

2012-03-23 Thread Richard Henderson
Signed-off-by: Richard Henderson --- Makefile.target |2 +- target-alpha/helper.h | 10 +++--- target-alpha/op_helper.c | 65 - target-alpha/sys_helper.c | 87 + target-alpha/translate.c | 14 +

Re: [Qemu-devel] [PATCH 6/6] arm: move load and store helpers, switch to AREG0 free mode

2012-03-23 Thread Richard Henderson
On 03/19/12 14:57, Blue Swirl wrote: > Add an explicit CPUARMState parameter instead of relying on AREG0 > and move load and store helpers to helper.c. Remove AREG0 swapping in > tlb_fill(). Remove now empty op_helper.c. > > Switch to AREG0 free mode. Use cpu_ld{l,uw}_code in translation > and int

[Qemu-devel] [PATCH 5/9] target-alpha: Move fpcr helpers from op_helper.c to helper.c.

2012-03-23 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-alpha/helper.c| 14 -- target-alpha/helper.h|4 ++-- target-alpha/op_helper.c | 10 -- target-alpha/translate.c |6 +++--- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/target-alpha/helper.c b/t

[Qemu-devel] [PATCH 6/9] target-alpha: Move integer overflow helpers to int_helper.c.

2012-03-23 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target-alpha/helper.h | 12 target-alpha/int_helper.c | 63 + target-alpha/op_helper.c | 62 target-alpha/translate.c | 44 +

[Qemu-devel] [PATCH 8/9] target-alpha: Move memory helpers to mem_helper.c.

2012-03-23 Thread Richard Henderson
This completes the transition away from AREG0. This patch must be last because it requires CONFIG_TCG_PASS_AREG0 set too. Signed-off-by: Richard Henderson --- Makefile.target |4 +- configure |2 +- target-alpha/helper.h |8 +- target-alpha/mem_helper.c

Re: [Qemu-devel] [PATCH V2 0/4] MIPS ASE DSP Support for Qemu

2012-03-23 Thread Richard Henderson
> +DEF_HELPER_1(absqsph, i32, i32) Many of these helpers merely compute a function. They do not trap, they do not modify global state. They should be using the DEF_HELPER_FLAGS_N macro to define them, so that the TCG compiler can optimize around the functions better. > target-mips/op_helper.c

[Qemu-devel] [PATCH 9/9] target-alpha: Make use of fp_status.flush_inputs_to_zero.

2012-03-23 Thread Richard Henderson
This softfp feature post-dates the last major update to the Alpha fpu translation. We can make use of this to eliminate at least one helper function that was performing this operation by hand. Signed-off-by: Richard Henderson --- target-alpha/cpu.h|1 - target-alpha/fpu_helper.c |

[Qemu-devel] [PATCH 2/9] target-alpha: Move integer helpers to int_helper.c.

2012-03-23 Thread Richard Henderson
Signed-off-by: Richard Henderson --- Makefile.target |1 + target-alpha/int_helper.c | 255 + target-alpha/op_helper.c | 233 - 3 files changed, 256 insertions(+), 233 deletions(-) create mode 10

[Qemu-devel] [PATCH v5 1/2] target-arm: Drop cpu_arm_close()

2012-03-23 Thread Andreas Färber
It's unused, so no need to QOM'ify it later. Signed-off-by: Andreas Färber --- target-arm/cpu.h|1 - target-arm/helper.c |5 - 2 files changed, 0 insertions(+), 6 deletions(-) diff --git a/target-arm/cpu.h b/target-arm/cpu.h index 26c114b..69ef142 100644 --- a/target-arm/cpu.h +

[Qemu-devel] [PATCH v5 2/2] target-arm: Minimalistic CPU QOM'ification

2012-03-23 Thread Andreas Färber
Introduce only one non-abstract type TYPE_ARM_CPU and do not touch cp15 registers to not interfere with Peter's ongoing remodelling. Embed CPUARMState as first (additional) field of ARMCPU. Signed-off-by: Andreas Färber --- Makefile.target |1 + target-arm/cpu-qom.h | 68 +

[Qemu-devel] [PATCH v5 0/2] QOM'ify ARM CPU

2012-03-23 Thread Andreas Färber
Hello Peter, Following long discussions about where this series collides with cp15 rework and whether things should be done declarative as in eepro100.c or imperative, I have stripped down the series to the bare minimum necessary for proceeding with QOM'ifying the remaining targets. This does not

Re: [Qemu-devel] [QEMU][RFC PATCH 3/6] memory: Add xen memory hook

2012-03-23 Thread Jan Kiszka
On 2012-03-23 16:08, Julien Grall wrote: > On 03/22/2012 05:44 PM, Jan Kiszka wrote: >>> >>> static void core_region_nop(MemoryListener *listener, >>> diff --git a/ioport.c b/ioport.c >>> index 78a3b89..073ed75 100644 >>> --- a/ioport.c >>> +++ b/ioport.c >>> @@ -28,6 +28,7 @@ >>> #include "iop

Re: [Qemu-devel] [PATCH v2 06/10] qapi: untangle next_list

2012-03-23 Thread Michael Roth
On Thu, Mar 22, 2012 at 10:38:40PM +0100, Paolo Bonzini wrote: > Right now, the semantics of next_list are complicated. The caller must: > > * call start_list > > * call next_list for each element *including the first* > > * on the first call to next_list, the second argument should point to >

Re: [Qemu-devel] [QEMU][RFC PATCH 3/6] memory: Add xen memory hook

2012-03-23 Thread Anthony Liguori
On 03/22/2012 11:01 AM, Julien Grall wrote: QEMU will now register all memory range (PIO and MMIO) in Xen. We distinct two phases in memory registered : - initialization - running For all range registered during the initialization, QEMU will check with XenStore if it is authorized to use t

Re: [Qemu-devel] [PATCH 0/7] QOM'ify UniCore32 CPU

2012-03-23 Thread Andreas Färber
Am 14.03.2012 08:32, schrieb Guan Xuetao: > On Wed, 2012-03-14 at 02:39 +0100, Andreas Färber wrote: >> Based on qom-cpu v4 and object_class_get_list() v2, this series converts >> the UniCore32 CPU to QOM. Code-wise, target-unicore32 is pretty close to >> target-arm and faces a similar issue of CPU

Re: [Qemu-devel] [PATCH] block: add the support to drain throttled requests

2012-03-23 Thread Stefan Hajnoczi
On Fri, Mar 23, 2012 at 11:32 AM, Stefan Hajnoczi wrote: > On Fri, Mar 23, 2012 at 11:02 AM, Richard Davies wrote: >> Stefan Hajnoczi wrote: >>> > Hi. We were producing the IDE assert()s and deadlocks with linux kernels. >>> > Although I believe the same symptoms exist on windows, I haven't actua

Re: [Qemu-devel] [PATCH v5 1/2] target-arm: Drop cpu_arm_close()

2012-03-23 Thread Peter Maydell
On 23 March 2012 16:24, Andreas Färber wrote: > It's unused, so no need to QOM'ify it later. > > Signed-off-by: Andreas Färber Reviewed-by: Peter Maydell

Re: [Qemu-devel] [PATCH 11/11 v10] introduce a new monitor command 'dump-guest-memory' to dump guest's memory

2012-03-23 Thread Luiz Capitulino
On Fri, 23 Mar 2012 17:06:22 +0900 ( ) HATAYAMA Daisuke wrote: > From: Wen Congyang > Subject: [PATCH 11/11 v10] introduce a new monitor command > 'dump-guest-memory' to dump guest's memory > Date: Tue, 20 Mar 2012 11:57:43 +0800 > > > > > +typedef struct DumpState { > > +ArchDumpInfo

Re: [Qemu-devel] [PATCH v5 2/2] target-arm: Minimalistic CPU QOM'ification

2012-03-23 Thread Peter Maydell
On 23 March 2012 16:24, Andreas Färber wrote: > Introduce only one non-abstract type TYPE_ARM_CPU and do not touch > cp15 registers to not interfere with Peter's ongoing remodelling. > Embed CPUARMState as first (additional) field of ARMCPU. > > Signed-off-by: Andreas Färber Reviewed-by: Peter M

Re: [Qemu-devel] [PATCH v5 0/2] QOM'ify ARM CPU

2012-03-23 Thread Peter Maydell
2012/3/23 Andreas Färber : > Following long discussions about where this series collides with cp15 rework > and whether things should be done declarative as in eepro100.c or imperative, > I have stripped down the series to the bare minimum necessary for proceeding > with QOM'ifying the remaining ta

Re: [Qemu-devel] [PATCH 11/11 v10] introduce a new monitor command 'dump-guest-memory' to dump guest's memory

2012-03-23 Thread Luiz Capitulino
On Tue, 20 Mar 2012 11:57:43 +0800 Wen Congyang wrote: > The command's usage: >dump [-p] protocol [begin] [length] > The supported protocol can be file or fd: > 1. file: the protocol starts with "file:", and the following string is >the file's path. > 2. fd: the protocol starts with "fd:"

Re: [Qemu-devel] [PATCH 00/11 v10] introducing a new, dedicated guest memory dump mechanism

2012-03-23 Thread Luiz Capitulino
On Tue, 20 Mar 2012 11:28:17 +0800 Wen Congyang wrote: > Hi, all > > 'virsh dump' can not work when host pci device is used by guest. We have > discussed this issue here: > http://lists.nongnu.org/archive/html/qemu-devel/2011-10/msg00736.html I've reviewed the QMP part of this series and it loo

Re: [Qemu-devel] [PATCH v5 0/2] QOM'ify ARM CPU

2012-03-23 Thread Peter Maydell
On 23 March 2012 17:17, Peter Maydell wrote: > 2012/3/23 Andreas Färber : >> Following long discussions about where this series collides with cp15 rework >> and whether things should be done declarative as in eepro100.c or imperative, >> I have stripped down the series to the bare minimum necessar

Re: [Qemu-devel] [RFC 11/12] target-sparc: QOM'ify CPU

2012-03-23 Thread Andreas Färber
Am 14.03.2012 21:16, schrieb Blue Swirl: > On Wed, Mar 14, 2012 at 17:53, Andreas Färber wrote: >> diff --git a/target-sparc/cpu-qom.h b/target-sparc/cpu-qom.h >> new file mode 100644 >> index 000..15dcf84 >> --- /dev/null >> +++ b/target-sparc/cpu-qom.h [...] >> +/** >> + * SPARCCPUClass: >>

Re: [Qemu-devel] Can VMX provide real mode support?

2012-03-23 Thread Luiz Capitulino
On Wed, 21 Mar 2012 15:48:43 +0200 Avi Kivity wrote: > On 03/21/2012 03:40 PM, Jan Kiszka wrote: > > On 2012-03-21 13:38, GaoYi wrote: > > > Hi Jan, > > > > > > Since the newest Intel-VT supports the guest OS under the real mode, > > > which was already supported in AMD-V, can the VMX in th

Re: [Qemu-devel] [PATCH] qemu-ga: stub out guest-suspend* for non-linux

2012-03-23 Thread Luiz Capitulino
On Tue, 20 Mar 2012 19:54:09 -0500 Michael Roth wrote: > This currently breaks the build for BSDs. > > Signed-off-by: Michael Roth > --- > qga/commands-posix.c | 22 ++ > 1 files changed, 22 insertions(+), 0 deletions(-) > > diff --git a/qga/commands-posix.c b/qga/comman

Re: [Qemu-devel] [PATCH 00/11 v10] introducing a new, dedicated guest memory dump mechanism

2012-03-23 Thread Anthony Liguori
On 03/19/2012 10:28 PM, Wen Congyang wrote: Hi, all 'virsh dump' can not work when host pci device is used by guest. We have discussed this issue here: http://lists.nongnu.org/archive/html/qemu-devel/2011-10/msg00736.html The last version is here: http://lists.nongnu.org/archive/html/qemu-devel

[Qemu-devel] used a qemu-processor ?

2012-03-23 Thread Zerbouh Imrani, Mohammed Ali
Hello , I am a student from kit Karlsruhe, Germany . I have a question, can I used a qemu-processor for example (MicroBlaze, PowerPC or Mips) for my external SystemC platform , not qemu-platform, the Processors-sources code use only in Qemu-platform? my SystemC simulator is : a NoC-sim

Re: [Qemu-devel] [PATCH] block: add the support to drain throttled requests

2012-03-23 Thread Richard Davies
Stefan Hajnoczi wrote: > > Hi. We were producing the IDE assert()s and deadlocks with linux kernels. > > Although I believe the same symptoms exist on windows, I haven't actually > > tested it myself. Typically they would show up in the 16-bit bootloader > > code, even before the 32-bit OS has star

[Qemu-devel] Windows Virtio Issue

2012-03-23 Thread Paul Fisher
Dear Yan, We seem to be having some trouble with virtio disk on Windows Server 2008 R2 running on qemu-kvm. Essentially, when disk IO is stressed, it seems to blue screen. These are potentially contended disks, since it's public cloud with multiple customers on the host - the issue could be conn

Re: [Qemu-devel] [Xen-devel] [XEN][RFC PATCH 10/15] xc: Add argument to allocate more special pages

2012-03-23 Thread Ian Campbell
On Thu, 2012-03-22 at 15:59 +, Julien Grall wrote: > This patchs permits to allocate more special pages. Indeed, for multiple > ioreq server, we need to have 2 shared pages by server. > > xc_hvm_build will take an argument which will indicate the number of > special pages we want to allocate.

  1   2   >