RE: [Qemu-devel] target-unicore32: New ISA support for QEMU

2011-03-24 Thread Guan Xuetao
> -Original Message- > From: Roy Tam [mailto:roy...@gmail.com] > Sent: Thursday, March 24, 2011 2:40 PM > To: Guan Xuetao > Cc: qemu-devel@nongnu.org > Subject: Re: [Qemu-devel] target-unicore32: New ISA support for QEMU > > Hi, > > 2011/3/24 Guan Xuetao : > > Hi, > > I want to add new

[Qemu-devel] [Bug 739088] Re: I/O errors after "Save/Restore"

2011-03-24 Thread Yongjie Ren
this bug is fixed in the latest qemu-kvm.git: 2c9bb5d4e5ae3b12ad71bd6a0c1b32003661f53a ** Changed in: qemu Status: New => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/739088 Tit

[Qemu-devel] [Bug 739092] Re: guest hangs when using network after live migration

2011-03-24 Thread Yongjie Ren
this bug is fixed in the latest qemu-kvm.git: 2c9bb5d4e5ae3b12ad71bd6a0c1b32003661f53a ** Changed in: qemu Status: New => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/739092 Tit

Re: [Qemu-devel] [RFC] QCFG: a new mechanism to replace QemuOpts and option handling

2011-03-24 Thread Markus Armbruster
Anthony Liguori writes: > On 03/22/2011 08:01 AM, Markus Armbruster wrote: >> Type checking macros are feasible (see [*] for an existence proof), but >> things do get hairy, and the resulting error messages can be less than >> clear at times. > > That just gives you a warning. You can do much be

[Qemu-devel] Re: [0/27] Implement emulation of pSeries logical partitions (v4)

2011-03-24 Thread Alexander Graf
On 24.03.2011, at 05:41, David Gibson wrote: > On Wed, Mar 23, 2011 at 10:29:04PM +0100, Alexander Graf wrote: >> >> On 23.03.2011, at 22:08, Benjamin Herrenschmidt wrote: >> >>> On Wed, 2011-03-23 at 15:45 +0100, Alexander Graf wrote: What's the magic to start a guest? I tried passi

Re: [Qemu-devel] [PATCH v7] rtl8139: add vlan support

2011-03-24 Thread Jason Wang
On 03/23/2011 07:11 AM, Benjamin Poirier wrote: Hello, Here is version 7 of my patchset to add vlan support to the emulated rtl8139 nic. Changes since v6: * added check against guest requesting tagging on frames with len< 12 * simplified tag extraction in receive function. dot1

Re: [Qemu-devel] Re: [PATCH 00/14] lm32: Milkymist board support

2011-03-24 Thread Alexander Graf
On 16.03.2011, at 18:08, Alexander Graf wrote: > On 03/07/2011 11:32 PM, Michael Walle wrote: >> This is the second (and last) patchset of the LatticeMico32 support. It >> adds almost complete support for the opensource and openhardware Milkymist >> One board [1]. >> >> [1] http://www.milkymist.

[Qemu-devel] [PATCH 0/3] unicore32: add unicore32-linux-user support for qemu 0.14

2011-03-24 Thread Guan Xuetao
The patch set adds new unicore32-linux-user support for qemu-stable-0.14 Patch 1 adds target-unicore32 directory Patch 2 adds linux-user/unicore32 directory Patch 3 adds necessary modifications for other files Signed-off-by: Guan Xuetao --- GuanXuetao (3): unicore32: add target-un

[Qemu-devel] [PATCH 3/3] unicore32: necessary modifications for other files to support unicore32

2011-03-24 Thread Guan Xuetao
unicore32: necessary modifications for other files to support unicore32 Signed-off-by: Guan Xuetao --- configure| 11 +++- cpu-exec.c | 12 - default-configs/unicore32-linux-user.mak |1 + elf.h

[Qemu-devel] Re: [PATCH, RFC] virtio_blk: add cache control support

2011-03-24 Thread Christian Borntraeger
Am 24.03.2011 04:05, schrieb Anthony Liguori: >> ie. lguest and S/390 don't trap writes to config space. >> >> Or perhaps they should? But we should be explicit about needing it... > I don't think we ever operated on the assumption that config space writes > would trap. > > I don't think adding

[Qemu-devel] [PATCH 2/3] unicore32: add necessary headers in linux-user/unicore32 for unicore32 support

2011-03-24 Thread Guan Xuetao
unicore32: add necessary headers in linux-user/unicore32 for unicore32 support Signed-off-by: Guan Xuetao --- linux-user/unicore32/syscall.h | 55 + linux-user/unicore32/syscall_nr.h| 371 ++ linux-user/unicore32/target_signal.h | 26 +++ linux-

[Qemu-devel] [PATCH 0/3] spicevmc -> chardev: restore guest open / close (v2)

2011-03-24 Thread Hans de Goede
Hi All, When we moved from the spicevmc device (which directly implemented a virtio serial port) to doing spicevmc as a chardev backend we lost the notification of the guest opening / closing the port to spice server. This causes the server to not fall back to server mouse mode when the agent insi

[Qemu-devel] [PATCH 1/3] chardev: Allow frontends to notify backends of guest open / close

2011-03-24 Thread Hans de Goede
Some frontends know when the guest has opened the "channel" and is actively listening to it, for example virtio-serial. This patch adds 2 new qemu-chardev functions which can be used by frontends to signal guest open / close, and allows interested backends to listen to this. Signed-off-by: Hans de

[Qemu-devel] [PATCH 2/3] virtio-console: notify backend of guest open / close

2011-03-24 Thread Hans de Goede
Signed-off-by: Hans de Goede --- hw/virtio-console.c | 18 ++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/hw/virtio-console.c b/hw/virtio-console.c index c235b27..e635771 100644 --- a/hw/virtio-console.c +++ b/hw/virtio-console.c @@ -27,6 +27,22 @@ static ssi

[Qemu-devel] [PATCH 3/3] spice-chardev: listen to frontend guest open / close

2011-03-24 Thread Hans de Goede
Note the vmc_register_interface() in spice_chr_write is left in place in case someone uses spice-chardev with a frontend which does not have guest open / close notification. Signed-off-by: Hans de Goede --- spice-qemu-char.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-

[Qemu-devel] [PATCH 3/3] Basic implementation of Sharp Zaurus SL-5500 collie PDA

2011-03-24 Thread Dmitry Eremin-Solenikov
Add very basic implementation of collie PDA emulation. The system lacks LoCoMo and graphics/sound emulation. Linux kernel boots up to mounting rootfs (theoretically it can be provided in pflash images). Signed-off-by: Dmitry Eremin-Solenikov --- hw/collie.c | 70 +++

[Qemu-devel] [PATCH 1/3] arm: basic support for ARMv4/ARMv4T emulation

2011-03-24 Thread Dmitry Eremin-Solenikov
Currently target-arm/ assumes at least ARMv5 core. Add support for handling also ARMv4/ARMv4T. This changes the following instructions: BX(v4T and later) BKPT, BLX, CDP2, CLZ, LDC2, LDRD, MCRR, MCRR2, MRRC, MCRR, MRC2, MRRC, MRRC2, PLD QADD, QDADD, QDSUB, QSUB, STRD, SMLAxy, SMLALxy, SMLAWxy, SMU

[Qemu-devel] Re: [PATCH 1/3] use kernel-provided para_features instead of statically coming up with new capabilities

2011-03-24 Thread Avi Kivity
On 03/18/2011 12:42 AM, Glauber Costa wrote: According to Avi's comments over my last submission, I decided to take a different, and more correct direction - we hope. This patch is now using the features provided by KVM_GET_SUPPORTED_CPUID directly to mask out features from guest-visible cpuid.

[Qemu-devel] [PATCH 2/3] Implement basic part of SA-1110/SA-1100

2011-03-24 Thread Dmitry Eremin-Solenikov
Basic implementation of DEC/Intel SA-1100/SA-1110 chips emulation. Implemented: - IRQs - GPIO - PPC - RTC - UARTs (no IrDA/etc.) - OST reused from pxa25x Everything else is TODO (esp. PM/idle/sleep!) - see the todo in the hw/strongarm.c V2: * removed all strongarm variants except latest

[Qemu-devel] Re: [PATCH 0/3] enable newer msr set for kvm

2011-03-24 Thread Avi Kivity
On 03/18/2011 12:42 AM, Glauber Costa wrote: This patch is a follow up to an earlier one that aims to enable kvmclock newer msr set. This time I'm doing it through a more sane mechanism of consulting the kernel about the supported msr set. Thanks, applied. -- error compiling committee.c: too m

[Qemu-devel] Re: [PATCH 0/3] enable newer msr set for kvm

2011-03-24 Thread Avi Kivity
On 03/24/2011 12:37 PM, Avi Kivity wrote: On 03/18/2011 12:42 AM, Glauber Costa wrote: This patch is a follow up to an earlier one that aims to enable kvmclock newer msr set. This time I'm doing it through a more sane mechanism of consulting the kernel about the supported msr set. Thanks, appl

[Qemu-devel] Re: [PATCH 2/3] Implement basic part of SA-1110/SA-1100

2011-03-24 Thread Juan Quintela
Dmitry Eremin-Solenikov wrote: > Basic implementation of DEC/Intel SA-1100/SA-1110 chips emulation. > Implemented: > - IRQs > - GPIO > - PPC > - RTC > - UARTs (no IrDA/etc.) > - OST reused from pxa25x > > Everything else is TODO (esp. PM/idle/sleep!) - see the todo in the > hw/strongarm.c >

Re: [Qemu-devel] [PATCH 0/3] spicevmc -> chardev: restore guest open / close (v2)

2011-03-24 Thread Alon Levy
On Thu, Mar 24, 2011 at 11:12:01AM +0100, Hans de Goede wrote: > Hi All, > > When we moved from the spicevmc device (which directly implemented a virtio > serial port) to doing spicevmc as a chardev backend we lost the notification > of the guest opening / closing the port to spice server. This ca

[Qemu-devel] Re: [PATCH 2/3] Implement basic part of SA-1110/SA-1100

2011-03-24 Thread Dmitry Eremin-Solenikov
On 3/24/11, Juan Quintela wrote: > Dmitry Eremin-Solenikov wrote: >> Basic implementation of DEC/Intel SA-1100/SA-1110 chips emulation. >> Implemented: >> - IRQs >> - GPIO >> - PPC >> - RTC >> - UARTs (no IrDA/etc.) >> - OST reused from pxa25x >> >> Everything else is TODO (esp. PM/idle/sle

Re: [Qemu-devel] OVMF, SeaBIOS & non-CSM based legacy boot

2011-03-24 Thread Gleb Natapov
On Wed, Mar 23, 2011 at 03:32:41PM -0700, Jordan Justen wrote: > 2011/3/23 Gleb Natapov : > > On Tue, Mar 22, 2011 at 02:53:16PM -0700, Jordan Justen wrote: > >> To support a boot override for UEFI, this full path would be needed. > >> For the purposes of a UEFI boot override, could the user could

Re: [Qemu-devel] [PATCH v2] Do not delete BlockDriverState when deleting the drive

2011-03-24 Thread Markus Armbruster
Whoops, almost missed this. Best to cc: me to avoid that. Ryan Harper writes: > * Markus Armbruster [2011-03-15 04:48]: >> Sorry for the long delay, I was out of action for a week. >> >> Ryan Harper writes: >> >> > When removing a drive from the host-side via drive_del we currently have >>

Re: [Qemu-devel] OVMF, SeaBIOS & non-CSM based legacy boot

2011-03-24 Thread Michal Suchanek
On 23 March 2011 23:32, Jordan Justen wrote: > 2011/3/23 Gleb Natapov : >> On Tue, Mar 22, 2011 at 02:53:16PM -0700, Jordan Justen wrote: >>> To support a boot override for UEFI, this full path would be needed. >>> For the purposes of a UEFI boot override, could the user could provide >>> the part

Re: [Qemu-devel] Re: [PATCH 3/3] raw-posix: Re-open host CD-ROM after media change

2011-03-24 Thread Kevin Wolf
Am 23.03.2011 21:50, schrieb Stefan Hajnoczi: > On Wed, Mar 23, 2011 at 8:27 PM, Juan Quintela wrote: >> Stefan Hajnoczi wrote: >>> + >>> +if (s->fd == -1) { >>> +s->fd = qemu_open(bs->filename, s->open_flags, 0644); >> >> Everything else on that file uses plain "open" not "qemu_open"

[Qemu-devel] [Bug 524447] Re: virsh save is very slow

2011-03-24 Thread dum8d0g
Using ubuntu natty narwhal installed today (2011-03-24) I tried to do a snapshot with the help of libvirt. Here are the results using natty version of qemu-kvm and libvirt and using presented slowdown packages. root@koberec:~# time virsh snapshot-create 1 Domain snapshot 1300968929 created real

Re: [Qemu-devel] OVMF, SeaBIOS & non-CSM based legacy boot

2011-03-24 Thread Gleb Natapov
On Thu, Mar 24, 2011 at 01:27:39PM +0100, Michal Suchanek wrote: > On 23 March 2011 23:32, Jordan Justen wrote: > > 2011/3/23 Gleb Natapov : > >> On Tue, Mar 22, 2011 at 02:53:16PM -0700, Jordan Justen wrote: > >>> To support a boot override for UEFI, this full path would be needed. > >>> For the

[Qemu-devel] [PATCH] qemu-options.hx: fix spice tls-channel

2011-03-24 Thread Alon Levy
missing cursor and smartcard channels, and missing a note about tunnel and smartcard channels not always being available. --- qemu-options.hx |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/qemu-options.hx b/qemu-options.hx index 540f5c2..ebd98af 100644 --- a/qemu-o

[Qemu-devel] Re: [Bug 658610] Re: Check whether images have write permissions

2011-03-24 Thread Serge Hallyn
Thanks, Anthony. Does that mean that the bug should be 'Invalid', or perhaps just 'Wontfix' (for the IDE case)? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/658610 Title: Check whether images hav

[Qemu-devel] [Bug 524447] Re: virsh save is very slow

2011-03-24 Thread Serge Hallyn
Thanks for that info. That is unexpected. Could you send the xml description of the domain you were snapshotting, as well as the format of the backing file (i.e. qemu-img info filename.img) and what filesystem it is stored on (or whether it is LVM)? I'd like to try to reproduce it. Since you ar

[Qemu-devel] [Bug 524447] Re: virsh save is very slow

2011-03-24 Thread Serge Hallyn
To be clear, please re-install the stock natty packages, do a virsh snapshot-create, and then do 'ubuntu-bug libvirt-bin' to file a new bug. Then please give the info I asked for in comment 25 in that bug. Thanks! -- You received this bug notification because you are a member of qemu- devel-ml,

[Qemu-devel] [Bug 658610] Re: Check whether images have write permissions

2011-03-24 Thread Anthony Liguori
We can always improve the information to the user for something like so I've marked this as wishlist. ** Changed in: qemu Importance: Undecided => Wishlist ** Changed in: qemu Status: New => Confirmed -- You received this bug notification because you are a member of qemu- devel-ml, wh

[Qemu-devel] [Bug 418112] Re: qemu-img should give reasons for failing

2011-03-24 Thread Serge Hallyn
** Changed in: qemu Status: In Progress => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/418112 Title: qemu-img should give reasons for failing Status in QEMU: Fix Released S

[Qemu-devel] [PATCH 05/17] s390x: enable CPU_QuadU

2011-03-24 Thread Alexander Graf
From: Ulrich Hecht S390x uses the QuadU type, so let's enable it. Signed-off-by: Ulrich Hecht --- cpu-all.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/cpu-all.h b/cpu-all.h index 87b0f86..5a26d7a 100644 --- a/cpu-all.h +++ b/cpu-all.h @@ -138,7 +138,7 @@ typedef

[Qemu-devel] [PATCH 04/17] s390x: Enable nptl for s390x

2011-03-24 Thread Alexander Graf
From: Ulrich Hecht S390x user emulation can do nptl. Reflect this in the configure script. Signed-off-by: Ulrich Hecht --- configure |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/configure b/configure index a166de0..6b421d8 100755 --- a/configure +++ b/configure @@ -

[Qemu-devel] [PATCH 09/17] s390x: Dispatch interrupts to KVM or the real CPU

2011-03-24 Thread Alexander Graf
The KVM interrupt injection path is non-generic for now. So we need to push knowledge of how to inject a device interrupt using KVM into the actual device code. Signed-off-by: Alexander Graf --- hw/s390-virtio-bus.c | 10 -- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git

[Qemu-devel] [PATCH 01/17] Only build ivshmem when CONFIG_PCI && CONFIG_KVM

2011-03-24 Thread Alexander Graf
The ivshmem depends on PCI and KVM, not only KVM. Reflect this in the Makefile, so we don't get build errors on s390x. Signed-off-by: Alexander Graf --- Makefile.target |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/Makefile.target b/Makefile.target index f0df98e

[Qemu-devel] [PATCH 08/17] s390x: Enable s390x-softmmu target

2011-03-24 Thread Alexander Graf
This patch adds some code paths for running s390x guest OSs without the need for KVM. Signed-off-by: Alexander Graf --- cpu-exec.c |8 target-s390x/exec.h | 20 2 files changed, 28 insertions(+), 0 deletions(-) diff --git a/cpu-exec.c b/cpu-exec.c in

[Qemu-devel] [PATCH 11/17] s390x: virtio machine storage keys

2011-03-24 Thread Alexander Graf
For emulation (and migration) we need to know about the guest's storage keys. These are separate from actual RAM contents, so we need to allocate them in parallel to RAM. While touching the file, this patch also adjusts the hypercall function to a new syntax that aligns better with tcg emulated co

[Qemu-devel] [PATCH 17/17] s390x: build s390x by default

2011-03-24 Thread Alexander Graf
This patch enables building of s390x-softmmu and s390x-linux-user targets by default. Signed-off-by: Alexander Graf --- configure|2 ++ default-configs/s390x-linux-user.mak |1 + 2 files changed, 3 insertions(+), 0 deletions(-) create mode 100644 default-conf

[Qemu-devel] [PATCH 00/17] s390x emulation support

2011-03-24 Thread Alexander Graf
We've had support for running s390x guests with KVM for a while now. This patch set also enables support for running s390x guests in system as well as linux-user mode in emulation! Within this scope, I again want to stress that this is _not_ supposed to replace Hercules - the s390 emulator - in an

[Qemu-devel] [PATCH 10/17] s390x: Adjust GDB stub

2011-03-24 Thread Alexander Graf
We have successfully lazilized cc computation, so we need to manually trigger its calculation when gdb wants to fetch it. We also changed the variable name, so writing it writes into a different field now. Signed-off-by: Alexander Graf --- gdbstub.c |8 ++-- 1 files changed, 6 insertions

[Qemu-devel] [PATCH 02/17] virtio: use generic name when possible

2011-03-24 Thread Alexander Graf
We have two different virtio buses: pci and s390. The abstraction path taken in qemu is to have generic aliases for each device type in the architecture specific qdev devices. So let's make use of these aliases whenever we can and define them whenever we can. Signed-off-by: Alexander Graf --- b

[Qemu-devel] [PATCH 12/17] s390x: Prepare cpu.h for emulation

2011-03-24 Thread Alexander Graf
We need to add some more logic to the CPU description to leverage emulation of an s390x CPU. This patch adds all the required helpers, fields in CPUState and constant definitions required for user and system emulation. Signed-off-by: Alexander Graf --- target-s390x/cpu.h | 759 +

[Qemu-devel] [PATCH 15/17] s390x: Adjust internal kvm code

2011-03-24 Thread Alexander Graf
We're now finally emulating an s390x CPU, so we can move quite some logic from the kvm code out into generic CPU code. This patch does this and adjusts the interfaces according to what the code around now expects to be able to call. Signed-off-by: Alexander Graf --- target-s390x/kvm.c | 60 ++

[Qemu-devel] [PATCH 07/17] linux-user: define a couple of syscalls for non-uid16 targets

2011-03-24 Thread Alexander Graf
From: Ulrich Hecht Quite a number of syscalls are only defined on systems with USE_UID16 defined; this patch defines them on other systems as well. Fixes a large number of uid/gid-related testcases on the s390x target (and most likely on other targets as well) Signed-off-by: Ulrich Hecht ---

[Qemu-devel] [PATCH 06/17] s390x: s390x-linux-user support

2011-03-24 Thread Alexander Graf
From: Ulrich Hecht This patch adds support for running s390x binaries in the linux-user emulation code. Signed-off-by: Ulrich Hecht --- linux-user/elfload.c | 18 ++ linux-user/main.c| 89 ++ linux-user/s390x/syscall.h | 25 +++ linux-user/s390x/

[Qemu-devel] [PATCH 03/17] s390x: Enable disassembler for s390x

2011-03-24 Thread Alexander Graf
From: Ulrich Hecht This patch enables the instruction disassembler when using an S390x target. Signed-off-by: Ulrich Hecht --- disas.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/disas.c b/disas.c index c76f36f..17b4ce4 100644 --- a/disas.c +++ b/disas.c @@ -2

[Qemu-devel] [PATCH 13/17] s390x: helper functions for system emulation

2011-03-24 Thread Alexander Graf
When running system emulation, we need to transverse through the MMU and deliver interrupts according to the specification. This patch implements those two pieces and in addition adjusts the CPU initialization code to account for the new fields in CPUState. Signed-off-by: Alexander Graf --- tar

Re: [Qemu-devel] OVMF, SeaBIOS & non-CSM based legacy boot

2011-03-24 Thread Jordan Justen
2011/3/24 Gleb Natapov : > On Wed, Mar 23, 2011 at 03:32:41PM -0700, Jordan Justen wrote: >> By the way, today OVMF attempts to store NV-Var data in a file on the >> disk, but this cannot support variables at runtime.  (This is why I >> sent in the patch for using -pflash on x86/x86-64.) >> > And t

Re: [Qemu-devel] [PATCH 05/17] s390x: enable CPU_QuadU

2011-03-24 Thread Peter Maydell
On 24 March 2011 15:58, Alexander Graf wrote: > --- a/cpu-all.h > +++ b/cpu-all.h > @@ -138,7 +138,7 @@ typedef union { >     uint64_t ll; >  } CPU_DoubleU; > > -#ifdef TARGET_SPARC > +#if defined(TARGET_SPARC) || defined(TARGET_S390X) >  typedef union { >     float128 q; >  #if defined(HOST_WORDS

Re: [Qemu-devel] [PATCH 05/17] s390x: enable CPU_QuadU

2011-03-24 Thread Alexander Graf
On 24.03.2011, at 17:52, Peter Maydell wrote: > On 24 March 2011 15:58, Alexander Graf wrote: >> --- a/cpu-all.h >> +++ b/cpu-all.h >> @@ -138,7 +138,7 @@ typedef union { >> uint64_t ll; >> } CPU_DoubleU; >> >> -#ifdef TARGET_SPARC >> +#if defined(TARGET_SPARC) || defined(TARGET_S390X) >>

Re: [Qemu-devel] [PATCH 14/17] s390x: Implement opcode helpers

2011-03-24 Thread Richard Henderson
On 03/24/2011 10:29 AM, Peter Maydell wrote: > On 24 March 2011 15:58, Alexander Graf wrote: > > This is more random comments in passing than a thorough review; sorry. > >> +#if HOST_LONG_BITS == 64 && defined(__GNUC__) >> +/* assuming 64-bit hosts have __uint128_t */ >> +__uint1

Re: [Qemu-devel] [PATCH 14/17] s390x: Implement opcode helpers

2011-03-24 Thread Peter Maydell
On 24 March 2011 15:58, Alexander Graf wrote: This is more random comments in passing than a thorough review; sorry. > +#if HOST_LONG_BITS == 64 && defined(__GNUC__) > +        /* assuming 64-bit hosts have __uint128_t */ > +        __uint128_t dividend = (((__uint128_t)env->regs[r1]) << 64) | >

Re: [Qemu-devel] [PATCH 14/17] s390x: Implement opcode helpers

2011-03-24 Thread Alexander Graf
Am 24.03.2011 um 18:41 schrieb Richard Henderson : > On 03/24/2011 10:29 AM, Peter Maydell wrote: >> On 24 March 2011 15:58, Alexander Graf wrote: >> >> This is more random comments in passing than a thorough review; sorry. >> >>> +#if HOST_LONG_BITS == 64 && defined(__GNUC__) >>> +/*

Re: [Qemu-devel] [PATCH 14/17] s390x: Implement opcode helpers

2011-03-24 Thread Alexander Graf
Am 24.03.2011 um 18:29 schrieb Peter Maydell : > On 24 March 2011 15:58, Alexander Graf wrote: > > This is more random comments in passing than a thorough review; sorry. > >> +#if HOST_LONG_BITS == 64 && defined(__GNUC__) >> +/* assuming 64-bit hosts have __uint128_t */ >> +__u

Re: [Qemu-devel] OVMF, SeaBIOS & non-CSM based legacy boot

2011-03-24 Thread Gleb Natapov
On Thu, Mar 24, 2011 at 09:46:09AM -0700, Jordan Justen wrote: > 2011/3/24 Gleb Natapov : > > On Wed, Mar 23, 2011 at 03:32:41PM -0700, Jordan Justen wrote: > >> By the way, today OVMF attempts to store NV-Var data in a file on the > >> disk, but this cannot support variables at runtime.  (This is

Re: [Qemu-devel] Re: [PATCH 3/3] raw-posix: Re-open host CD-ROM after media change

2011-03-24 Thread Stefan Hajnoczi
On Thu, Mar 24, 2011 at 12:42 PM, Kevin Wolf wrote: > Am 23.03.2011 21:50, schrieb Stefan Hajnoczi: >> On Wed, Mar 23, 2011 at 8:27 PM, Juan Quintela wrote: >>> Stefan Hajnoczi wrote: + +    if (s->fd == -1) { +        s->fd = qemu_open(bs->filename, s->open_flags, 0644); >>> >>>

[Qemu-devel] [PATCH] qemu-timer: Add and use new function qemu_timer_expired_ns

2011-03-24 Thread Stefan Weil
This simply moves code which is used three times into a new function thus improving readability. Signed-off-by: Stefan Weil --- qemu-timer.c | 17 ++--- 1 files changed, 10 insertions(+), 7 deletions(-) diff --git a/qemu-timer.c b/qemu-timer.c index 50f1943..c3ad72a 100644 --- a/q

[Qemu-devel] [Bug 524447] Re: virsh save is very slow

2011-03-24 Thread dum8d0g
In reply to question #26 https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/741887 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/524447 Title: virsh save is very slow Status in libvirt virtual

[Qemu-devel] [Bug 524447] Re: virsh save is very slow

2011-03-24 Thread dum8d0g
In reply to question #25: everything is included in #27. Is it enough? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/524447 Title: virsh save is very slow Status in libvirt virtualization API: U

[Qemu-devel] Re: [PATCH 3/3] raw-posix: Re-open host CD-ROM after media change

2011-03-24 Thread Juan Quintela
Stefan Hajnoczi wrote: > On Thu, Mar 24, 2011 at 12:42 PM, Kevin Wolf wrote: >> Am 23.03.2011 21:50, schrieb Stefan Hajnoczi: >>> On Wed, Mar 23, 2011 at 8:27 PM, Juan Quintela wrote: Stefan Hajnoczi wrote: > + > +    if (s->fd == -1) { > +        s->fd = qemu_open(bs->filename

[Qemu-devel] [Bug 524447] Re: virsh save is very slow

2011-03-24 Thread Serge Hallyn
Yes, thanks. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/524447 Title: virsh save is very slow Status in libvirt virtualization API: Unknown Status in QEMU: Fix Released Status in “libvirt”

[Qemu-devel] Re: [PATCH 01/17] Only build ivshmem when CONFIG_PCI && CONFIG_KVM

2011-03-24 Thread Juan Quintela
Alexander Graf wrote: > The ivshmem depends on PCI and KVM, not only KVM. Reflect this > in the Makefile, so we don't get build errors on s390x. > > Signed-off-by: Alexander Graf > --- > Makefile.target |8 +++- > 1 files changed, 7 insertions(+), 1 deletions(-) > > diff --git a/Makefile

[Qemu-devel] [PATCH 1/3] arm: basic support for ARMv4/ARMv4T emulation

2011-03-24 Thread Dmitry Eremin-Solenikov
Currently target-arm/ assumes at least ARMv5 core. Add support for handling also ARMv4/ARMv4T. This changes the following instructions: BX(v4T and later) BKPT, BLX, CDP2, CLZ, LDC2, LDRD, MCRR, MCRR2, MRRC, MCRR, MRC2, MRRC, MRRC2, PLD QADD, QDADD, QDSUB, QSUB, STRD, SMLAxy, SMLALxy, SMLAWxy, SMU

[Qemu-devel] [PATCH 2/3] Implement basic part of SA-1110/SA-1100

2011-03-24 Thread Dmitry Eremin-Solenikov
Basic implementation of DEC/Intel SA-1100/SA-1110 chips emulation. Implemented: - IRQs - GPIO - PPC - RTC - UARTs (no IrDA/etc.) - OST reused from pxa25x Everything else is TODO (esp. PM/idle/sleep!) - see the todo in the hw/strongarm.c V2: * removed all strongarm variants except latest

[Qemu-devel] [PATCH 3/3] Basic implementation of Sharp Zaurus SL-5500 collie PDA

2011-03-24 Thread Dmitry Eremin-Solenikov
Add very basic implementation of collie PDA emulation. The system lacks LoCoMo and graphics/sound emulation. Linux kernel boots up to mounting rootfs (theoretically it can be provided in pflash images). Signed-off-by: Dmitry Eremin-Solenikov --- Makefile.target |1 + hw/collie.c | 70 +

[Qemu-devel] [PATCH 2/2] rbd: allow configuration of rados from the rbd filename

2011-03-24 Thread Josh Durgin
The new format is rbd:pool/image[@snapshot][:option1=value1[:option2=value2...]] Each option is used to configure rados, and may be any Ceph option, or "conf". The "conf" option specifies a Ceph configuration file to read. This allows rbd volumes from more than one Ceph cluster to be used by speci

[Qemu-devel] [PATCH 1/2] rbd: use the higher level librbd instead of just librados

2011-03-24 Thread Josh Durgin
librbd stacks on top of librados to provide access to rbd images. Using librbd simplifies the qemu code, and allows qemu to use new versions of the rbd format with few (if any) changes. Signed-off-by: Josh Durgin Signed-off-by: Yehuda Sadeh --- block/rbd.c | 784 ++--

[Qemu-devel] [0/27] Implement emulation of pSeries logical partitions (v5)

2011-03-24 Thread David Gibson
This patch series adds a "pseries" machine to qemu, allowing it to emulate IBM pSeries logical partitions. More specifically it implements the interface defined by the "PowerPC Architecture Platform Requirements" document (PAPR, or sPAPR for short). Along the way we add a bunch of support for mor

[Qemu-devel] [PATCH 03/27] Add a hook to allow hypercalls to be emulated on PowerPC

2011-03-24 Thread David Gibson
PowerPC and POWER chips since the POWER4 and 970 have a special hypervisor mode, and a corresponding form of the system call instruction which traps to the hypervisor. qemu currently has stub implementations of hypervisor mode. That is, the outline is there to allow qemu to run a PowerPC hypervis

[Qemu-devel] [PATCH 01/27] Clean up PowerPC SLB handling code

2011-03-24 Thread David Gibson
Currently the SLB information when emulating a PowerPC 970 is storeed in a structure with the unhelpfully named fields 'tmp' and 'tmp64'. While the layout in these fields does match the description of the SLB in the architecture document, it is not convenient either for looking up the SLB, or for

[Qemu-devel] [PATCH 06/27] Correct ppc popcntb logic, implement popcntw and popcntd

2011-03-24 Thread David Gibson
From: David Gibson qemu already includes support for the popcntb instruction introduced in POWER5 (although it doesn't actually allow you to choose POWER5). However, the logic is slightly incorrect: it will generate results truncated to 32-bits when the CPU is in 32-bit mode. This is not normal

[Qemu-devel] [PATCH 02/27] Allow qemu_devtree_setprop() to take arbitrary values

2011-03-24 Thread David Gibson
From: David Gibson Currently qemu_devtree_setprop() expects the new property value to be given as a uint32_t *. While property values consisting of u32s are common, in general they can have any bytestring value. Therefore, this patch alters the function to take a void * instead, allowing caller

[Qemu-devel] [PATCH 08/27] Parse SDR1 on mtspr instead of at translate time

2011-03-24 Thread David Gibson
On ppc machines with hash table MMUs, the special purpose register SDR1 contains both the base address of the encoded size (hashed) page tables. At present, we interpret the SDR1 value within the address translation path. But because the encodings of the size for 32-bit and 64-bit are different t

[Qemu-devel] [PATCH 13/27] Start implementing pSeries logical partition machine

2011-03-24 Thread David Gibson
This patch adds a "pseries" machine to qemu. This aims to emulate a logical partition on an IBM pSeries machine, compliant to the "PowerPC Architecture Platform Requirements" (PAPR) document. This initial version is quite limited, it implements a basic machine and PAPR hypercall emulation. So fa

[Qemu-devel] [PATCH 15/27] Virtual hash page table handling on pSeries machine

2011-03-24 Thread David Gibson
On pSeries logical partitions, excepting the old POWER4-style full system partitions, the guest does not have direct access to the hardware page table. Instead, the pagetable exists in hypervisor memory, and the guest must manipulate it with hypercalls. However, our current pSeries emulation more

[Qemu-devel] [PATCH 04/27] Implement PowerPC slbmfee and slbmfev instructions

2011-03-24 Thread David Gibson
For a 64-bit PowerPC target, qemu correctly implements translation through the segment lookaside buffer. Likewise it supports the slbmte instruction which is used to load entries into the SLB. However, it does not emulate the slbmfee and slbmfev instructions which read SLB entries back into regis

[Qemu-devel] [PATCH 11/27] Support 1T segments on ppc

2011-03-24 Thread David Gibson
Traditionally, the "segments" used for the two-stage translation used on powerpc MMUs were 256MB in size. This was the only option on all hash page table based 32-bit powerpc cpus, and on the earlier 64-bit hash page table based cpus. However, newer 64-bit cpus also permit 1TB segments This patc

[Qemu-devel] [PATCH 12/27] Add POWER7 support for ppc

2011-03-24 Thread David Gibson
This adds emulation support for the recent POWER7 cpu to qemu. It's far from perfect - it's missing a number of POWER7 features so far, including any support for VSX or decimal floating point instructions. However, it's close enough to boot a kernel with the POWER7 PVR. Signed-off-by: David Gibs

[Qemu-devel] [PATCH 16/27] Implement hcall based RTAS for pSeries machines

2011-03-24 Thread David Gibson
On pSeries machines, operating systems can instantiate "RTAS" (Run-Time Abstraction Services), a runtime component of the firmware which implements a number of low-level, infrequently used operations. On logical partitions under a hypervisor, many of the RTAS functions require hypervisor privilege

[Qemu-devel] [PATCH 20/27] Add (virtual) interrupt to PAPR virtual tty device

2011-03-24 Thread David Gibson
Now that we have implemented the PAPR "xics" virtualized interrupt controller, we can add interrupts in PAPR VIO devices. This patch adds interrupt support to the PAPR virtual tty/console device. Signed-off-by: David Gibson --- hw/spapr.c |6 -- hw/spapr_vio.h |3 ++- hw/spapr_v

[Qemu-devel] [PATCH 22/27] Implement sPAPR Virtual LAN (ibmveth)

2011-03-24 Thread David Gibson
This patch implements the PAPR specified Inter Virtual Machine Logical LAN; that is the virtual hardware used by the Linux ibmveth driver. Signed-off-by: Paul Mackerras Signed-off-by: David Gibson Conflicts: Makefile.target --- Makefile.target |2 +- hw/spapr.c | 21 ++- hw

[Qemu-devel] [PATCH 19/27] Add PAPR H_VIO_SIGNAL hypercall and infrastructure for VIO interrupts

2011-03-24 Thread David Gibson
This patch adds infrastructure to support interrupts from PAPR virtual IO devices. This includes correctly advertising those interrupts in the device tree, and implementing the H_VIO_SIGNAL hypercall, used to enable and disable individual device interrupts. Signed-off-by: David Gibson --- hw/sp

[Qemu-devel] [PATCH 25/27] Add a PAPR TCE-bypass mechanism for the pSeries machine

2011-03-24 Thread David Gibson
From: Ben Herrenschmidt Usually, PAPR virtual IO devices use a virtual IOMMU mechanism, TCEs, to mediate all DMA transfers. While this is necessary for some sorts of operation, it can be complex to program and slow for others. This patch implements a mechanism for bypassing TCE translation, tre

[Qemu-devel] [PATCH 23/27] Implement PAPR CRQ hypercalls

2011-03-24 Thread David Gibson
This patch implements the infrastructure and hypercalls necessary for the PAPR specified CRQ (Command Request Queue) mechanism. This general request queueing system is used by many of the PAPR virtual IO devices, including the virtual scsi adapter. Signed-off-by: Ben Herrenschmidt Signed-off-by:

[Qemu-devel] [PATCH 24/27] Implement PAPR virtual SCSI interface (ibmvscsi)

2011-03-24 Thread David Gibson
This patch implements the infrastructure and hypercalls necessary for the PAPR specified Virtual SCSI interface. This is the normal method for providing (virtual) disks to PAPR partitions. Signed-off-by: Ben Herrenschmidt Signed-off-by: David Gibson Conflicts: Makefile.target --- Mak

[Qemu-devel] [PATCH 21/27] Implement TCE translation for sPAPR VIO

2011-03-24 Thread David Gibson
This patch implements the necessary infrastructure and hypercalls for sPAPR's TCE (Translation Control Entry) IOMMU mechanism. This is necessary for all virtual IO devices which do DMA (i.e. nearly all of them). Signed-off-by: Ben Herrenschmidt Signed-off-by: David Gibson --- hw/spapr.c |

[Qemu-devel] [PATCH 18/27] Implement the PAPR (pSeries) virtualized interrupt controller (xics)

2011-03-24 Thread David Gibson
PAPR defines an interrupt control architecture which is logically divided into ICS (Interrupt Control Presentation, each unit is responsible for presenting interrupts to a particular "interrupt server", i.e. CPU) and ICS (Interrupt Control Source, each unit responsible for one or more hardware inte

[Qemu-devel] [PATCH 17/27] Implement assorted pSeries hcalls and RTAS methods

2011-03-24 Thread David Gibson
This patch adds several small utility hypercalls and RTAS methods to the pSeries platform emulation. Specifically: * 'display-character' rtas call This just prints a character to the console, it's occasionally used for early debug of the OS. The support includes a hack to make this RTAS call re

[Qemu-devel] [PATCH 05/27] Implement missing parts of the logic for the POWER PURR

2011-03-24 Thread David Gibson
The PURR (Processor Utilization Resource Register) is a register found on recent POWER CPUs. The guts of implementing it at least enough to get by are already present in qemu, however some of the helper functions needed to actually wire it up are missing. This patch adds the necessary glue, so th

[Qemu-devel] [PATCH 10/27] Better factor the ppc hash translation path

2011-03-24 Thread David Gibson
Currently the path handling hash page table translation in get_segment() has a mix of common and 32 or 64 bit specific code. However the division is not done terribly well which results in a lot of messy code flipping between common and divided paths. This patch improves the organization, consoli

[Qemu-devel] [PATCH 09/27] Use "hash" more consistently in ppc mmu code

2011-03-24 Thread David Gibson
Currently, get_segment() has a variable called hash. However it doesn't (quite) get the hash value for the ppc hashed page table. Instead it gets the hash shifted - effectively the offset of the hash bucket within the hash page table. As well, as being different to the normal use of plain "hash"

[Qemu-devel] [PATCH 14/27] Implement the bus structure for PAPR virtual IO

2011-03-24 Thread David Gibson
This extends the "pseries" (PAPR) machine to include a virtual IO bus supporting the PAPR defined hypercall based virtual IO mechanisms. So far only one VIO device is provided, the vty / vterm, providing a full console (polled only, for now). Signed-off-by: David Gibson --- Makefile.target |

[Qemu-devel] [PATCH 26/27] Implement PAPR VPA functions for pSeries shared processor partitions

2011-03-24 Thread David Gibson
Shared-processor partitions are those where a CPU is time-sliced between partitions, rather than being permanently dedicated to a single partition. qemu emulated partitions, since they are just scheduled with the qemu user process, behave mostly like shared processor partitions. In order to bette

[Qemu-devel] [PATCH 07/27] Clean up slb_lookup() function

2011-03-24 Thread David Gibson
The slb_lookup() function, used in the ppc translation path returns a number of slb entry fields in reference parameters. However, only one of the two callers of slb_lookup() actually wants this information. This patch, therefore, makes slb_lookup() return a simple pointer to the located SLB entr

[Qemu-devel] [PATCH] virtio-serial: Print out reason for aborting before calling abort()

2011-03-24 Thread Amit Shah
When a port returns an error for not consuming data, we can only handle the -EAGAIN error type. Any other error isn't handled. Print out a message indicating this and the error returned. Signed-off-by: Amit Shah --- hw/virtio-serial-bus.c |1 + 1 files changed, 1 insertions(+), 0 deletions

  1   2   >