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

2011-08-09 Thread An-Cheng Huang
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 anch...@ubnt.com --- linux-user/main.c | 22 +- 1 files

[Qemu-devel] [PATCH 3/3] linux-user: Implement setxattr/getxattr/removexattr syscalls

2011-08-09 Thread An-Cheng Huang
This patch implements the setxattr, getxattr, and removexattr syscalls if CONFIG_ATTR is enabled. Note that since libattr uses indirect syscalls for these, this change depends on the fix for indirect syscall handling on MIPS. Signed-off-by: An-Cheng Huang anch...@ubnt.com ---

Re: [Qemu-devel] Safely reopening image files by stashing fds

2011-08-09 Thread Blue Swirl
On Tue, Aug 9, 2011 at 12:24 PM, Kevin Wolf kw...@redhat.com wrote: Am 09.08.2011 14:00, schrieb Stefan Hajnoczi: On Tue, Aug 09, 2011 at 01:39:13PM +0200, Kevin Wolf wrote: Am 09.08.2011 12:56, schrieb Stefan Hajnoczi: On Tue, Aug 9, 2011 at 11:50 AM, Stefan Hajnoczi stefa...@gmail.com

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

2011-08-09 Thread William Hahne
Hello, I am a Google Summer of Code student working on getting PowerPC Mac OS running on Qemu. While I am not finished I need to upstream what I currently have before the end of Summer of Code. My patch is for OpenBIOS but I am cross-posting to both Qemu and OpenBIOS mailing lists since it is

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 anch...@ubnt.com 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 anch...@ubnt.com Reviewed-by: Peter Maydell

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 anch...@ubnt.com 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

[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 al...@redhat.com --- hw/qxl.c |5 +++-- 1 files

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

2011-08-09 Thread Alon Levy
Signed-off-by: Alon Levy al...@redhat.com --- 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

[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

[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 mich...@walle.cc --- hw/usb-hid.c | 41 ++--- 1 files changed, 2 insertions(+), 39 deletions(-) diff --git a/hw/usb-hid.c

[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 mich...@walle.cc --- 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 +++

[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 peter.mayd...@linaro.org --- I note that this seems to have been present since the file was introduced, so presumably nobody up til now

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 mich...@walle.cc wrote: Register the keyboard event handler in hid's init() instead of its reset() function. Signed-off-by: Michael Walle mich...@walle.cc Reviewed-by: Peter Maydell peter.mayd...@linaro.org There's actually an equivalent patch to this

[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 mich...@walle.cc --- hw/hid.c | 58 ++ hw/hw.h | 20 2 files changed, 78 insertions(+), 0 deletions(-) diff

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 Filhomiguel.fi...@gmail.com This patch improves the resilience of the load_vmstate()

[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 mich...@walle.cc --- hw/milkymist-softusb.c | 122 +++- 1 files changed, 38 insertions(+), 84 deletions(-) diff --git

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 host

[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

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

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

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_inplace()

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

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

[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 stefa...@gmail.com wrote: On Tue, Aug 9, 2011 at 5:17 AM, Zhi Yong Wu wu...@linux.vnet.ibm.com wrote:  Makefile.objs     |    2 +-  block.c           |  347 +++--  block.h           |    6 +-  

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 safety

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 stefa...@gmail.com wrote: On Tue, Aug 9, 2011 at 5:17 AM, Zhi Yong Wu wu...@linux.vnet.ibm.com wrote: Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com ---  Makefile.objs   |    2 +-  blockdev.c      |   39

[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

[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 ha...@linux.vnet.ibm.com --- 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 +

[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

[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 ha...@linux.vnet.ibm.com --- hw/9pfs/virtio-9p-handle.c | 31 +++ 1 files changed, 31 insertions(+), 0 deletions(-) diff --git a/hw/9pfs/virtio-9p-handle.c

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 stefa...@gmail.com wrote: On Tue, Aug 9, 2011 at 5:17 AM, Zhi Yong Wu wu...@linux.vnet.ibm.com wrote: +/* The APIs for block request queue on qemu block layer. + */ + +static void qemu_block_queue_cancel(BlockDriverAIOCB *acb) +{ +    

<    1   2