Re: [Qemu-devel] [RFC] PowerPC Mac OS on Qemu

2011-08-09 Thread Natalia Portillo
Please, a) separate the patch in pieces, I suggest you checking how other patches are split, there have been a lot of patches today to get insight. b) use inline signed-by patch Regards, Natalia Portillo El 09/08/2011, a las 20:46, William Hahne escribió: > Hello, > > I am a Google Summer of

Re: [Qemu-devel] [PATCH 1/3] linux-user: Fix MIPS indirect syscall handling

2011-08-09 Thread Peter Maydell
On 9 August 2011 20:31, An-Cheng Huang wrote: > Change the number of argument for MIPS sys_syscall from 0 to 8. This > allows arguments for indirect syscalls to be processed correctly. > > Signed-off-by: An-Cheng Huang Reviewed-by: Peter Maydell -- PMM

Re: [Qemu-devel] [PATCH 2/3] linux-user: Verify MIPS syscall arguments

2011-08-09 Thread Peter Maydell
On 9 August 2011 20:32, An-Cheng Huang wrote: > On MIPS, some syscall arguments are taken from the stack. This patch adds > verification such that do_syscall() is only invoked if all arguments > have been successfully taken from the stack. > > Signed-off-by: An-Cheng Huang Reviewed-by: Peter May

[Qemu-devel] [PATCH 1/2] qxl: unbreak after memory API conversion

2011-08-09 Thread Alon Levy
Break is only noticable with newer spice-server library (0.8.2 release or 0.9.0 and newer on master branch). ioport_write's val was changed from uint32_t to uint64_t, this broke two printfs. Use PRId64 instead of %d. Signed-off-by: Alon Levy --- hw/qxl.c |5 +++-- 1 files changed, 3 inserti

[Qemu-devel] [PATCH 2/2] ui/spice-core: report version in 'info spice'

2011-08-09 Thread Alon Levy
Signed-off-by: Alon Levy --- ui/spice-core.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/ui/spice-core.c b/ui/spice-core.c index 3d77c01..342ed6c 100644 --- a/ui/spice-core.c +++ b/ui/spice-core.c @@ -372,6 +372,10 @@ void do_info_spice_print(Monitor *mon, const QO

[Qemu-devel] [PATCH v2 0/4] usb/hid: bugfixes, more on usb and hid split

2011-08-09 Thread Michael Walle
This USB patchset moves the HID VM state stuff from usb-hid.c to hid.c, so it can be reused by other devices. changes v1->v2: - don't reorder vmstate field to be backward compatible Michael Walle (4): hid: register kbd hander in init() hid: introduce hid vmstate macros usb-hid: use hid vm

[Qemu-devel] [PATCH 3/4] usb-hid: use hid vmstate macro

2011-08-09 Thread Michael Walle
Use new hid vmstate macro. Version stays the same, because there is no reordering of the fields. Signed-off-by: Michael Walle --- hw/usb-hid.c | 41 ++--- 1 files changed, 2 insertions(+), 39 deletions(-) diff --git a/hw/usb-hid.c b/hw/usb-hid.c index e5d57

[Qemu-devel] [PATCH 1/4] hid: register kbd hander in init()

2011-08-09 Thread Michael Walle
Register the keyboard event handler in hid's init() instead of its reset() function. Signed-off-by: Michael Walle --- hw/hid.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/hid.c b/hw/hid.c index 7b5ef5f..6934f05 100644 --- a/hw/hid.c +++ b/hw/hid.c @@ -359,7 +3

[Qemu-devel] [PATCH] spice-qemu-char.c: Use correct printf format char for ssize_t

2011-08-09 Thread Peter Maydell
Use the correct printf format string character (%z) for ssize_t. This fixes a compile failure on 32 bit Linux with spice enabled. Signed-off-by: Peter Maydell --- I note that this seems to have been present since the file was introduced, so presumably nobody up til now has attempted to compile q

Re: [Qemu-devel] [PATCH 1/4] hid: register kbd hander in init()

2011-08-09 Thread Peter Maydell
On 9 August 2011 22:54, Michael Walle wrote: > Register the keyboard event handler in hid's init() instead of its reset() > function. > > Signed-off-by: Michael Walle Reviewed-by: Peter Maydell There's actually an equivalent patch to this lurking in the qemu-linaro patch stack (inherited from

[Qemu-devel] [PATCH 2/4] hid: introduce hid vmstate macros

2011-08-09 Thread Michael Walle
Add VMSTATE macros to describe a HIDState. Based on usb-hid.c descriptions. Signed-off-by: Michael Walle --- hw/hid.c | 58 ++ hw/hw.h | 20 2 files changed, 78 insertions(+), 0 deletions(-) diff --git a/hw/hid.c

Re: [Qemu-devel] [libvirt] [BUG] Re: [2/6] loadvm: improve tests before bdrv_snapshot_goto()

2011-08-09 Thread Eric Blake
On 04/14/2011 03:29 AM, Kevin Wolf wrote: Am 14.04.2011 11:10, schrieb Philipp Hahn: Reviving an old thread... Hello, Am Dienstag 03 August 2010 06:44:26 schrieb Kevin Wolf: From: Miguel Di Ciurcio Filho This patch improves the resilience of the load_vmstate() function, doing further and b

[Qemu-devel] [PATCH 4/4] milkymist-softusb: use hid code directly

2011-08-09 Thread Michael Walle
Remove the dummy USB device and use the HID code directly. Use the HID code for the mouse support, too. Signed-off-by: Michael Walle --- hw/milkymist-softusb.c | 122 +++- 1 files changed, 38 insertions(+), 84 deletions(-) diff --git a/hw/milkymist-s

Re: [Qemu-devel] kvm PCI assignment & VFIO ramblings

2011-08-09 Thread Alex Williamson
On Mon, 2011-08-08 at 11:28 +0300, Avi Kivity wrote: > On 08/03/2011 05:04 AM, David Gibson wrote: > > I still don't understand the distinction you're making. We're saying > > the group is "owned" by a given user or guest in the sense that no-one > > else may use anything in the group (including h

[Qemu-devel] [RFC] Incorrect CPU timebase-frequency and clock-frequency in OpenBIOS

2011-08-09 Thread William Hahne
Hello, I would like to apologize for not splitting up my last post. I am a Google Summer of Code student working on getting Mac OS X to work in Qemu. Currently the cpu device in OpenBIOS has incorrect timebase-frequency and clock-frequency properties. The Mac OS X scheduler relies on these values

Re: [Qemu-devel] [ANNOUNCE] QEMU 0.15.0 Release

2011-08-09 Thread Natalia Portillo
Hi, El 08/08/2011, a las 20:16, Anthony Liguori escribió: > Hi, > > On behalf of the entire QEMU team, I'm please to announce the release of QEMU > 0.15.0. This is the first release of the 0.15 branch and is intended for > production usage. QEMU Official OS Support List on http://www.claunia

Re: [Qemu-devel] kvm PCI assignment & VFIO ramblings

2011-08-09 Thread Benjamin Herrenschmidt
> Mostly correct, yes. x86 isn't immune to the group problem, it shows up > for us any time there's a PCIe-to-PCI bridge in the device hierarchy. > We lose resolution of devices behind the bridge. As you state though, I > think of this as only a constraint on what we're able to do with those > d

Re: [Qemu-devel] [PATCH] Correctly assign PCI domain numbers

2011-08-09 Thread David Gibson
On Mon, Aug 01, 2011 at 01:10:38PM +0300, Michael S. Tsirkin wrote: > On Mon, Aug 01, 2011 at 04:51:02PM +1000, David Gibson wrote: > > qemu already almost supports PCI domains; that is, several entirely > > independent PCI host bridges on the same machine. However, a bug in > > pci_bus_new_inplac

Re: [Qemu-devel] [PATCH 2/3] PPC: Enable to use PAPR with PR style KVM

2011-08-09 Thread David Gibson
On Tue, Aug 09, 2011 at 06:39:29PM +0200, Alexander Graf wrote: > When running PR style KVM, we need to tell the kernel that we want > to run in PAPR mode now. This means that we need to pass some more > register information down and enable papr mode. We also need to align > the HTAB to htab_size b

Re: [Qemu-devel] [PATCH 3/3] PPC: SPAPR: Use KVM function for time info

2011-08-09 Thread David Gibson
On Tue, Aug 09, 2011 at 06:39:30PM +0200, Alexander Graf wrote: > One of the things we can't fake on PPC is the timer speed. So > we need to extract the frequency information from the host and > put it back into the guest device tree. > > Luckily, we already have functions for that from the non-ps

[Qemu-devel] Question about adding IBTC (Indirect Branch Translation Cache) into QEMU

2011-08-09 Thread 陳韋任
Hi, all I want to add a binary tranlation optimization, called IBTC (Indirect Branch Translation Cache) to QEMU. IBTC is a data structure used to cache the mapping between guest IB (indirect branch) and its corresponding translated code cache address. If IBTC get a hit, then there is no need to

Re: [Qemu-devel] [PATCH v5 0/4] The intro of QEMU block I/O throttling

2011-08-09 Thread Zhi Yong Wu
On Tue, Aug 9, 2011 at 8:08 PM, Stefan Hajnoczi wrote: > On Tue, Aug 9, 2011 at 5:17 AM, Zhi Yong Wu wrote: >>  Makefile.objs     |    2 +- >>  block.c           |  347 >> +++-- >>  block.h           |    6 +- >>  block/blk-queue.c |  141 +

Re: [Qemu-devel] [PATCH] Permit -mem-path without sync mmu

2011-08-09 Thread David Gibson
On Mon, Aug 08, 2011 at 11:24:09AM +0300, Avi Kivity wrote: > On 08/08/2011 09:03 AM, David Gibson wrote: > >Second, if userspace qemu passing hugepages to kvm can cause (host) > >kernel memory corruption, that is clearly a host kernel bug. So am I > >correct in thinking this is basically just a s

Re: [Qemu-devel] [PATCH v5 1/4] block: add the command line support

2011-08-09 Thread Zhi Yong Wu
On Tue, Aug 9, 2011 at 8:25 PM, Stefan Hajnoczi wrote: > On Tue, Aug 9, 2011 at 5:17 AM, Zhi Yong Wu wrote: >> Signed-off-by: Zhi Yong Wu >> --- >>  Makefile.objs   |    2 +- >>  blockdev.c      |   39 +++ >>  qemu-config.c   |   24 >>

[Qemu-devel] Bug in recent CFAR patch

2011-08-09 Thread David Gibson
Hi Alex, I realised there was a bug in the CFAR patch in my recent qemu patch series which breaks the build for ppc32 targets. There is a patch to fix it below, but I'm not sure if you want this standalone, or if you'd prefer I fold it into the CFAR patch replacing the one you have now. Please a

[Qemu-devel] [PATCH v2 1/2] i_generation / st_gen support for local fs type

2011-08-09 Thread Harsh Prateek Bora
v2: - close fd after use in local_ioc_getversion Signed-off-by: Harsh Prateek Bora --- fsdev/file-op-9p.h |7 +++ hw/9pfs/cofile.c | 22 ++ hw/9pfs/virtio-9p-coth.h |2 ++ hw/9pfs/virtio-9p-device.c |1 + hw/9pfs/virtio-9p-local.c | 33

[Qemu-devel] [PATCH v2 0/2] Support for i_generation / st_gen in 9p server

2011-08-09 Thread Harsh Prateek Bora
This patch series provide support for i_generation / st_gen in 9p server. First patch provide support for local fs type, second patch adds support for handle based fs driver. Harsh Prateek Bora (2): i_generation / st_gen support for local fs type i_generation / st_gen support for handle based

[Qemu-devel] [Bug 823733] [NEW] Soloaris can't be poweroff

2011-08-09 Thread showrun
Public bug reported: Thank you forgive my poor English. It seems KVM can’t poweroff solairs 10 or sloalrs 11 VM. I have created solaris 10 and 11 as usual. Everything in VM is running OK, but finally I use shell command ‘poweroff’ or ‘init 5’, the solaris VM (both 10 & 11) system could’t be pow

[Qemu-devel] [PATCH v2 2/2] i_generation / st_gen support for handle based fs driver

2011-08-09 Thread Harsh Prateek Bora
v2: - close fd after use in handle_ioc_getversion Signed-off-by: Harsh Prateek Bora --- hw/9pfs/virtio-9p-handle.c | 31 +++ 1 files changed, 31 insertions(+), 0 deletions(-) diff --git a/hw/9pfs/virtio-9p-handle.c b/hw/9pfs/virtio-9p-handle.c index 548a841..98178e

Re: [Qemu-devel] [PATCH v5 2/4] block: add the block queue support

2011-08-09 Thread Zhi Yong Wu
On Tue, Aug 9, 2011 at 8:49 PM, Stefan Hajnoczi wrote: > On Tue, Aug 9, 2011 at 5:17 AM, Zhi Yong Wu wrote: >> +/* The APIs for block request queue on qemu block layer. >> + */ >> + >> +static void qemu_block_queue_cancel(BlockDriverAIOCB *acb) >> +{ >> +    qemu_aio_release(acb); >> +} >> + >> +

Re: [Qemu-devel] [PATCH 2/2] ui/spice-core: report version in 'info spice'

2011-08-09 Thread Gerd Hoffmann
On 08/09/11 22:53, Alon Levy wrote: Signed-off-by: Alon Levy --- ui/spice-core.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/ui/spice-core.c b/ui/spice-core.c index 3d77c01..342ed6c 100644 --- a/ui/spice-core.c +++ b/ui/spice-core.c @@ -372,6 +372,10 @@ void do_

Re: [Qemu-devel] [PATCH v5 3/4] block: add block timer and block throttling algorithm

2011-08-09 Thread Zhi Yong Wu
On Tue, Aug 9, 2011 at 11:19 PM, Stefan Hajnoczi wrote: > On Tue, Aug 9, 2011 at 5:17 AM, Zhi Yong Wu wrote: >> Note: >>      1.) When bps/iops limits are specified to a small value such as 511 >> bytes/s, this VM will hang up. We are considering how to handle this senario. > > If an I/O request

<    1   2