[Qemu-devel] [PATCH] qemu msi/msix: added functions to API to set up message address and data

2012-05-12 Thread Alexey Kardashevskiy
Added msi_set_address_data and msix_set_address_data in order to support sPAPR-specific implementation of MSI/MSIX configuration mechanism. POWER guest does not initialize these fields, it expects a supervisor to get them initialized. Required for VFIO on POWER. Signed-off-by: Alexey

[Qemu-devel] [PATCH] kernel vfio: PCI ROM size calculation

2012-05-12 Thread Alexey Kardashevskiy
The original code calculated the real size of the ROM and passed it to QEMU which tried to do pci_register_bar and failed with error message ERROR: PCI region size must be pow2. The example card is PCIe Intel E1000E with the ROM size 0x9c00. pci_resource_len seems to be a proper solution.

[Qemu-devel] [PATCH 1.1] qemu-timer: Fix wrong error message

2012-05-12 Thread Stefan Weil
Function timeSetEvent returns 0 when it fails, but it does not set an error code which can be retrieved by GetLastError. Therefore calling GetLastError is useless. Signed-off-by: Stefan Weil s...@weilnetz.de --- qemu-timer.c |7 ++- 1 files changed, 2 insertions(+), 5 deletions(-) diff

[Qemu-devel] [RFC PATCH] qemu spapr-pci: added IRQ list to PCIBus

2012-05-12 Thread Alexey Kardashevskiy
There is a need for a mechanism to obtain an IRQ line number to initialize End-Of-Interrupt handler. There is another proposed solution (commit b7790763828b732059ad24ba0e64ce327563fe1a pci: Add callbacks to support retrieving and updating interrupts) which adds pci_get_irq callback to every PCI

[Qemu-devel] [RFC PATCH] kernel vfio: enabled and supported on power

2012-05-12 Thread Alexey Kardashevskiy
The idea of the patch is to demonstrate what POWER needs to support VFIO. Added support on POWER. Than includes: 1) IOMMU API driver for POWER. It also includes subsys_initcall_sync(power_pci_iommu_init) which walks through all PCI devices and creates IOMMU groups and adds devices to these

[Qemu-devel] vfio with iommu groups

2012-05-12 Thread Alexey Kardashevskiy
Hi! I pulled new VFIO from github, ported to POWER and got some issues/thoughts which I post as patches. However PCI bridges handling is an open question to discuss. My test setup includes PCIe card Intel E1000E which looks in the host like this (cut device names in the tree below as they were

[Qemu-devel] [RFC PATCH] qemu vfio-powerpc: added initial support

2012-05-12 Thread Alexey Kardashevskiy
The idea of the patch is to demonstrate what POWER needs to support VFIO. It will not compile as many other patches are needed and they are not posted anywhere yet. The patch includes: 1) sPAPR PCI bus got an additional flag is_vfio which defines IOMMU behavior 2) Added POWER-specific IOMMU

[Qemu-devel] [PATCH 1.1] Fix new spelling bugs detected by codespell

2012-05-12 Thread Stefan Weil
These new bugs were detected in comments and in an error message: addres-address arithmentic-arithmetic explictly-explicitly neccessary-necessary preceeding-preceding unecessary-unnecessary Signed-off-by: Stefan Weil s...@weilnetz.de --- coroutine-sigaltstack.c |2 +- qapi-schema-guest.json

[Qemu-devel] [PATCH 0/4, master+QEMU 1.1] sparc64: let's boot Linux!

2012-05-12 Thread Artyom Tarasenko
This small patch series fixes two bugs (patches 1 and 3), one reggression (patch 2) and and adds two missing registers to apb_pci (patch 4). The most visible effect: it makes possible booting Linux/sparc64! Currently not from an IDE disk, but virtio is working just fine:

[Qemu-devel] [PATCH 1/4] Implement address masking for SPARC v9 CPUs

2012-05-12 Thread Artyom Tarasenko
According to UltraSPARC - IIi User's manual: 14.1.11 Address Masking (Impdep #125) When PSTATE.AM=1, the CALL, JMPL, and RDPC instructions and all traps transmit zero in the high-order 32-bits of the PC to their specified destination registers. Signed-off-by: Artyom Tarasenko atar4q...@gmail.com

[Qemu-devel] [PATCH 2/4, master+QEMU 1.1] fix block loads broken in commit 30038fd818

2012-05-12 Thread Artyom Tarasenko
Fix UltraSPARC/JPS1/UA2007 VIS block load instructions broken in 30038fd81808f7c3bca92be2369e74c8ca7b3d69 Conflicts: target-sparc/ldst_helper.c Signed-off-by: Artyom Tarasenko atar4q...@gmail.com --- target-sparc/ldst_helper.c |4 ++-- 1 files changed, 2 insertions(+), 2

[Qemu-devel] [PATCH 3/4, master+QEMU 1.1] sun4u: initialize OBIO interrupt mappings

2012-05-12 Thread Artyom Tarasenko
Similarly to PCI interrupt mappings, the OBIO ones have to be initialized. Signed-off-by: Artyom Tarasenko atar4q...@gmail.com --- hw/apb_pci.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/hw/apb_pci.c b/hw/apb_pci.c index 7e28808..d4e11bc 100644 ---

[Qemu-devel] [PATCH 4/4, master+QEMU 1.1] sun4u: implement interrupt clearing registers

2012-05-12 Thread Artyom Tarasenko
Implement registers for clearing OBIO and PCI interrupts Signed-off-by: Artyom Tarasenko atar4q...@gmail.com --- hw/apb_pci.c | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/hw/apb_pci.c b/hw/apb_pci.c index d4e11bc..c28411a 100644 --- a/hw/apb_pci.c +++

Re: [Qemu-devel] [PATCH 1/4] Implement address masking for SPARC v9 CPUs

2012-05-12 Thread Artyom Tarasenko
Ups, the subject line was supposed to be [PATCH 1/4, master+QEMU 1.1] ... Should I resend? On Sat, May 12, 2012 at 11:15 AM, Artyom Tarasenko atar4q...@gmail.com wrote: According to UltraSPARC - IIi User's manual: 14.1.11 Address Masking (Impdep #125) When PSTATE.AM=1, the CALL, JMPL, and

Re: [Qemu-devel] [PULL 1.1 0/2] target-arm queue

2012-05-12 Thread Blue Swirl
On Thu, May 10, 2012 at 1:00 PM, Peter Maydell peter.mayd...@linaro.org wrote: Another pullreq for 1.1 -- this is an update of the previous one to add the patch fixing the -cpu foo segfault. Please pull in time for 1.1-rc2 :-) Thanks, pulled. thanks -- PMM The following changes since

Re: [Qemu-devel] [PATCH] cputlb: fix watchpoints handling

2012-05-12 Thread Blue Swirl
Thanks, applied. On Sat, May 5, 2012 at 9:44 PM, Max Filippov jcmvb...@gmail.com wrote: Cleanup commit e554861766d9ae84dd5720baa4869f4ed711506f have changed code_address calculation in the tlb_set_page function in case of access to a page with a watchpoint. This caused QEMU segfault in the

Re: [Qemu-devel] [PATCH 1.1] vga: disable default VGA if appropriate -device is used

2012-05-12 Thread Blue Swirl
Thanks, applied. On Thu, May 10, 2012 at 7:39 AM, Paolo Bonzini pbonz...@redhat.com wrote: This is a partial revert of commits a369da5 (vga: improve VGA logic, committed 2012-01-22) and c5bd4f3 (vga: fix -nodefaults -device VGA, 2012-01-24) which broke command-line option parsing in different

Re: [Qemu-devel] [PATCH 0/4, master+QEMU 1.1] sparc64: let's boot Linux!

2012-05-12 Thread Blue Swirl
On Sat, May 12, 2012 at 9:15 AM, Artyom Tarasenko atar4q...@gmail.com wrote: This small patch series fixes two bugs (patches 1 and 3), one reggression (patch 2) and and adds two missing registers to apb_pci (patch 4). Thanks, applied all. I trimmed the patch descriptions (too long lines or

Re: [Qemu-devel] [PATCH 0/4, master+QEMU 1.1] sparc64: let's boot Linux!

2012-05-12 Thread Artyom Tarasenko
On Sat, May 12, 2012 at 12:01 PM, Blue Swirl blauwir...@gmail.com wrote: On Sat, May 12, 2012 at 9:15 AM, Artyom Tarasenko atar4q...@gmail.com wrote: This small patch series fixes two bugs (patches 1 and 3), one reggression (patch 2) and and adds two missing registers to apb_pci (patch 4).

Re: [Qemu-devel] [PATCH 1.1] Fix new spelling bugs detected by codespell

2012-05-12 Thread Peter Maydell
On 12 May 2012 08:52, Stefan Weil s...@weilnetz.de wrote: These new bugs were detected in comments and in an error message: There's already a patch on the list to fix at least some of these: http://patchwork.ozlabs.org/patch/157992/ including the error message one which is the most important to

Re: [Qemu-devel] [PATCH 1.1] Fix new spelling bugs detected by codespell

2012-05-12 Thread Stefan Weil
Am 12.05.2012 13:21, schrieb Peter Maydell: On 12 May 2012 08:52, Stefan Weil s...@weilnetz.de wrote: These new bugs were detected in comments and in an error message: There's already a patch on the list to fix at least some of these: http://patchwork.ozlabs.org/patch/157992/ including the

Re: [Qemu-devel] [PATCH 4/4, master+QEMU 1.1] sun4u: implement interrupt clearing registers

2012-05-12 Thread Andreas Färber
Am 12.05.2012 11:15, schrieb Artyom Tarasenko: Implement registers for clearing OBIO and PCI interrupts Signed-off-by: Artyom Tarasenko atar4q...@gmail.com Implementing new registers is a feature, not a 1.1 bugfix... Many of us would like to get patches committed and have to wait. /-F --

Re: [Qemu-devel] [PATCH 4/4, master+QEMU 1.1] sun4u: implement interrupt clearing registers

2012-05-12 Thread Blue Swirl
On Sat, May 12, 2012 at 11:56 AM, Andreas Färber afaer...@suse.de wrote: Am 12.05.2012 11:15, schrieb Artyom Tarasenko: Implement registers for clearing OBIO and PCI interrupts Signed-off-by: Artyom Tarasenko atar4q...@gmail.com Implementing new registers is a feature, not a 1.1 bugfix...

Re: [Qemu-devel] [PATCH 15/21] qdev: fix adding of ptr properties

2012-05-12 Thread Andreas Färber
Am 02.05.2012 13:31, schrieb Paolo Bonzini: From: Anthony Liguori aligu...@us.ibm.com ptr properties have neither a get/set or a print/parse which means that when they're added they aren't treated as static or legacy properties. Just assume properties like this are legacy properties and

Re: [Qemu-devel] [PATCH 1.1] sdl: Disable broken scaling

2012-05-12 Thread Stefan Weil
Am 30.04.2012 18:55, schrieb Stefan Weil: SDL scaling uses a broken version of SDL_rotozoom which does out-of-bounds memory access. Disable it for QEMU 1.1 until a better solution is found. Cc: Anthony Liguorialigu...@us.ibm.com Signed-off-by: Stefan Weils...@weilnetz.de --- qemu-doc.texi |

Re: [Qemu-devel] [PATCH 4/4, master+QEMU 1.1] sun4u: implement interrupt clearing registers

2012-05-12 Thread Andreas Färber
Am 12.05.2012 14:32, schrieb Blue Swirl: On Sat, May 12, 2012 at 11:56 AM, Andreas Färber afaer...@suse.de wrote: Am 12.05.2012 11:15, schrieb Artyom Tarasenko: Implement registers for clearing OBIO and PCI interrupts Signed-off-by: Artyom Tarasenko atar4q...@gmail.com Implementing new

Re: [Qemu-devel] [PATCH 4/4, master+QEMU 1.1] sun4u: implement interrupt clearing registers

2012-05-12 Thread Artyom Tarasenko
On Sat, May 12, 2012 at 1:56 PM, Andreas Färber afaer...@suse.de wrote: Am 12.05.2012 11:15, schrieb Artyom Tarasenko: Implement registers for clearing OBIO and PCI interrupts Signed-off-by: Artyom Tarasenko atar4q...@gmail.com Implementing new registers is a feature, not a 1.1 bugfix...

Re: [Qemu-devel] [PATCH 4/4, master+QEMU 1.1] sun4u: implement interrupt clearing registers

2012-05-12 Thread Blue Swirl
On Sat, May 12, 2012 at 12:38 PM, Andreas Färber afaer...@suse.de wrote: Am 12.05.2012 14:32, schrieb Blue Swirl: On Sat, May 12, 2012 at 11:56 AM, Andreas Färber afaer...@suse.de wrote: Am 12.05.2012 11:15, schrieb Artyom Tarasenko: Implement registers for clearing OBIO and PCI interrupts

Re: [Qemu-devel] [PATCH 4/4, master+QEMU 1.1] sun4u: implement interrupt clearing registers

2012-05-12 Thread Andreas Färber
Am 12.05.2012 15:08, schrieb Blue Swirl: On Sat, May 12, 2012 at 12:38 PM, Andreas Färber afaer...@suse.de wrote: Am 12.05.2012 14:32, schrieb Blue Swirl: On Sat, May 12, 2012 at 11:56 AM, Andreas Färber afaer...@suse.de wrote: Am 12.05.2012 11:15, schrieb Artyom Tarasenko: Implement

[Qemu-devel] [PATCH for-1.1 v2] pc: Add back PCI.rombar compat property

2012-05-12 Thread Andreas Färber
From: Paolo Bonzini pbonz...@redhat.com This was erroneously dropped in d6c730086cbf24382eb8cff25551798769edfd84 (pc: reduce duplication in compat machine types). Cc: Michael S. Tsirkin m...@redhat.com Signed-off-by: Paolo Bonzini pbonz...@redhat.com Signed-off-by: Andreas Färber

Re: [Qemu-devel] [PATCH 4/4, master+QEMU 1.1] sun4u: implement interrupt clearing registers

2012-05-12 Thread Artyom Tarasenko
On Sat, May 12, 2012 at 3:57 PM, Andreas Färber afaer...@suse.de wrote: Am 12.05.2012 15:08, schrieb Blue Swirl: On Sat, May 12, 2012 at 12:38 PM, Andreas Färber afaer...@suse.de wrote: Am 12.05.2012 14:32, schrieb Blue Swirl: On Sat, May 12, 2012 at 11:56 AM, Andreas Färber afaer...@suse.de

Re: [Qemu-devel] [Xen-devel] [PATCH V8 RESEND 2/8] configure: Introduce --enable-xen-pci-passthrough.

2012-05-12 Thread Konrad Rzeszutek Wilk
On Fri, Mar 16, 2012 at 12:54 PM, Anthony PERARD anthony.per...@citrix.com wrote: Signed-off-by: Anthony PERARD anthony.per...@citrix.com I thought I reviewed this last time? Is there a reason for not attaching 'Reviewed-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com' on this patch?

Re: [Qemu-devel] [Xen-devel] [PATCH V8 RESEND 1/8] pci_ids: Add INTEL_82599_VF id.

2012-05-12 Thread Konrad Rzeszutek Wilk
On Mon, Mar 19, 2012 at 12:54 PM, Anthony PERARD anthony.per...@citrix.com wrote: On 19/03/12 11:50, Stefano Stabellini wrote: On Fri, 16 Mar 2012, Anthony PERARD wrote: Signed-off-by: Anthony PERARDanthony.per...@citrix.com ---  hw/pci_ids.h |    1 +  1 files changed, 1 insertions(+), 0

[Qemu-devel] usb descriptor parsing, why bother?

2012-05-12 Thread David Fries
I was bit in kvm-qemu (Debian qemu-kvm-1.0+dfsg-11) with the usb descriptor parsing code. I was enhancing a driver in the guest and found that I could talk to usb alt 0, but not alt 3, I made a local fix and I see there is an upstream fix (listed below) in qemu. commit

[Qemu-devel] Failed when install Solaris 10 on Qemu

2012-05-12 Thread liujunwei1234
I'm trying to run Solaris 10 on sparc 64 under qemu 1.0. But unfortunately it‘s failed. The steps and errors as follows: Steps: qemu-1.0.1/sparc64-softmmu/qemu-system-sparc64 -hda solaris.img -cdrom /media/Expansion\ Drive/iso/solaris/sol-10-u10-ga2-sparc-dvd.iso -boot d --nographic Errors:

[Qemu-devel] [Bug 998435] Re: qemu-kvm-spice doesn't support spice/qxl installs

2012-05-12 Thread Boris Derzhavets
Spice/VGA install doesn't work as well . It's not duplicate https://bugs.launchpad.net/ubuntu/+source/seabios/+bug/823494 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/998435 Title:

[Qemu-devel] [Bug 998435] Re: qemu-kvm-spice doesn't support spice/qxl installs

2012-05-12 Thread Boris Derzhavets
Samples of working PPAs may be viewed at :- https://launchpad.net/~bderzhavets/+archive/lib-usbredir67 - spice-gtk 0.9 https://launchpad.net/~bderzhavets/+archive/lib-usbredir71 - spice-gtk 0.11 https://launchpad.net/~bderzhavets/+archive/lib-usbredir73 - spice-gtk 0.12 -- You received this bug

Re: [Qemu-devel] [Xen-devel] [PATCH V8 RESEND 5/8] Introduce Xen PCI Passthrough, qdevice (1/3)

2012-05-12 Thread Konrad Rzeszutek Wilk
+void pt_log(const PCIDevice *d, const char *f, ...) +{ +    va_list ap; + +    va_start(ap, f); +    if (d) { +        fprintf(stderr, [%02x:%02x.%x] , pci_bus_num(d-bus), %02x.%d +                PCI_SLOT(d-devfn), PCI_FUNC(d-devfn)); +    } +    vfprintf(stderr, f, ap); +    

[Qemu-devel] [Bug 998435] [NEW] qemu-kvm-spice doesn't support spice/qxl installs

2012-05-12 Thread Boris Derzhavets
Public bug reported: Been setup as follows :- boris@boris-P5Q-E:~$ dpkg -l | grep spice ii gir1.2-spice-client-glib-2.0 0.9-0ubuntu1 GObject for communicating with Spice servers (GObject-Introspection) ii gir1.2-spice-client-gtk-2.00.9-0ubuntu1

[Qemu-devel] [PATCH 1.1] sparc64: fix initrd loading

2012-05-12 Thread Blue Swirl
Initrd load address is too low, it conflicts with kernel load address: rom: requested regions overlap (rom phdr #0: /tmp/vmlinux-debian-6.0.4-sparc64. free=0x00742519, addr=0x0040) rom loading failed Fix by making the initrd address variable, load initrd after kernel image.

Re: [Qemu-devel] [SeaBIOS] [seabios patch 1/5] pci: init all devices

2012-05-12 Thread Kevin O'Connor
On Fri, May 04, 2012 at 05:35:10PM +0200, Gerd Hoffmann wrote: On 05/04/12 15:15, Kevin O'Connor wrote: On Fri, May 04, 2012 at 10:21:23AM +0200, Gerd Hoffmann wrote: seabios used to initialize root bus devices only, with this patch devices behind pci bridges are initialized too. This

Re: [Qemu-devel] [PATCH 12/12] Fix 64bit PCI issues on Windows

2012-05-12 Thread Kevin O'Connor
On Tue, Apr 24, 2012 at 06:26:30PM +1200, Alexey Korolev wrote: This patch solves issues on Windows guests, when 64bit BAR's are present. It is also helpful on Linux guests when use_crs kernel boot option is set. Unfortunately, this patch causes problems for WinXP, so I reverted it. -Kevin

Re: [Qemu-devel] [PATCH 1.1] sparc64: fix initrd loading

2012-05-12 Thread Artyom Tarasenko
This was an annoying bug, thanks for fixing it! Tested-by: Artyom Tarasenko atar4q...@gmail.com On Sat, May 12, 2012 at 7:30 PM, Blue Swirl blauwir...@gmail.com wrote: Initrd load address is too low, it conflicts with kernel load address: rom: requested regions overlap (rom phdr #0:

[Qemu-devel] [PATCH] virtio-pci: add missing 'static'

2012-05-12 Thread Blue Swirl
There are no outside references to virtio_portio. Add missing 'static' specifier. Signed-off-by: Blue Swirl blauwir...@gmail.com --- hw/virtio-pci.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c index 4a4413d..8a931ce 100644 ---

Re: [Qemu-devel] [PATCH] virtio-pci: add missing 'static'

2012-05-12 Thread Stefan Weil
Am 12.05.2012 21:47, schrieb Blue Swirl: There are no outside references to virtio_portio. Add missing 'static' specifier. Signed-off-by: Blue Swirl blauwir...@gmail.com --- hw/virtio-pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/virtio-pci.c b/hw/virtio-pci.c

Re: [Qemu-devel] [PATCH] virtio-pci: add missing 'static'

2012-05-12 Thread Blue Swirl
On Sat, May 12, 2012 at 9:04 PM, Stefan Weil s...@weilnetz.de wrote: Am 12.05.2012 21:47, schrieb Blue Swirl: There are no outside references to virtio_portio. Add missing 'static' specifier. Signed-off-by: Blue Swirl blauwir...@gmail.com --- hw/virtio-pci.c | 2 +- 1 file changed, 1

Re: [Qemu-devel] [RFC PATCH] kernel vfio: enabled and supported on power

2012-05-12 Thread Benjamin Herrenschmidt
On Sat, 2012-05-12 at 17:31 +1000, Alexey Kardashevskiy wrote: And drivers/vfio/vfio_iommu_x86.c works perfect for POWER except a DMA window setup which I dropped for now and simply use quite popular configuration on power (1Gb DMA window starting from 0x0). As for me, it is too

Re: [Qemu-devel] [PATCH] pci: unplug all devs of same slot once

2012-05-12 Thread Amos Kong
On Fri, May 11, 2012 at 10:57 PM, Amos Kong ak...@redhat.com wrote: The whole PCI slot should be removed once. Currently only one func is cleaned in pci_unplug_device(), if you try to remove a single func by monitor cmd. Start VM with 8 multiple-function block devs, hot-removing those block

Re: [Qemu-devel] [PATCH for-1.1 0/2] tcg/ppc64: AREG0 support

2012-05-12 Thread malc
On Sat, 12 May 2012, Andreas F?rber wrote: Hello malc and Alex, Here's patches to optimize and fix potential AREG0 issues on ppc64. So far I've only tested on Darwin/ppc64 - Debian/sparc, HelenOS/sparc64, Haiku/i386, Haiku/x86_64 guests work. Still TODO: testing on Linux and testing

Re: [Qemu-devel] PCI: Hot-removing a virtio-blk causes guest panic

2012-05-12 Thread Amos Kong
On Sat, May 12, 2012 at 12:30 AM, Michael S. Tsirkin m...@redhat.com wrote: On Fri, May 11, 2012 at 12:37:49PM +0800, Amos Kong wrote: good: 3.3.0 guest kernel qemu-kvm-rhel6 guest panic:  3.3.0 guest kernel qemu-upstream (contains fix [1]) I didn't change anything of guest kernel,