[Qemu-devel] Did anybody study on the XEN-3.4.2 based on qemu for hardware virtualization machine?

2011-12-15 Thread ¤終於aware
Hi: Looking for the person who has the common goal. Looking forward to your reply!

Re: [Qemu-devel] multifunction pci virtio-blk devices

2011-12-15 Thread Hui Kai Ran
On 12/15/2011 04:18 PM, Stefan Hajnoczi wrote: On Thu, Dec 15, 2011 at 02:00:11PM +0800, Hui Kai Ran wrote: but for virtio blk device , how can i open multifunction ability? Please search the mailing list archives, Anthony has posted instructions in previous threads. Stefan I found it. than

Re: [Qemu-devel] [RFC] Device isolation infrastructure v2

2011-12-15 Thread David Gibson
On Thu, Dec 15, 2011 at 09:49:05PM -0700, Alex Williamson wrote: > On Fri, 2011-12-16 at 12:40 +1100, David Gibson wrote: > > On Thu, Dec 15, 2011 at 11:05:07AM -0700, Alex Williamson wrote: > > > On Thu, 2011-12-15 at 17:25 +1100, David Gibson wrote: > > > > Here's the second spin of my preferred

Re: [Qemu-devel] [RFC] Plan for moving forward with QOM

2011-12-15 Thread Paul Brook
> I also don't want the user to have to always make the decision about how to > hook up IRQs for every single device because in a lot of circumstances, > there's no point. How else are we going to figure out how the IRQ lines are wired up? > A basic premise for me is that simple things should be

Re: [Qemu-devel] [PATCH 2/4] docs: add build infrastructure for gtkdocs

2011-12-15 Thread Andreas Färber
Am 15.12.2011 14:30, schrieb Anthony Liguori: > On 12/15/2011 03:37 AM, Avi Kivity wrote: >> On 12/14/2011 06:20 PM, Anthony Liguori wrote: >>> By convention, documented headers now go in include/ >> >> Dislike. +1 > I've been planning on doing this for a while. I think it's a useful way > to he

Re: [Qemu-devel] [RFC] Device isolation infrastructure v2

2011-12-15 Thread Alex Williamson
On Fri, 2011-12-16 at 12:40 +1100, David Gibson wrote: > On Thu, Dec 15, 2011 at 11:05:07AM -0700, Alex Williamson wrote: > > On Thu, 2011-12-15 at 17:25 +1100, David Gibson wrote: > > > Here's the second spin of my preferred approach to handling grouping > > > of devices for safe assignment to gue

Re: [Qemu-devel] [BUG] [Seabios] PCI 64bit BARs on Win2008 - unable to start the device. (ACPI lacks the _DSM method)

2011-12-15 Thread Alexey Korolev
I wonder if there any particular reason to separate prefetchable a non-prefetchable memory regions in pciinit? Extra two more regions would make code more complex. Oh yes, there is. Which reminds me that the whole thing isn't that easy unfortunaly ... The reason are pci bridges. They have two

Re: [Qemu-devel] [PATCH v5 4/4] Add support for net bridge

2011-12-15 Thread Corey Bryant
On 12/15/2011 10:26 AM, Anthony Liguori wrote: On 11/13/2011 09:45 PM, Corey Bryant wrote: The most common use of -net tap is to connect a tap device to a bridge. This requires the use of a script and running qemu as root in order to allocate a tap device to pass to the script. This patch br

Re: [Qemu-devel] The reason behind block linking constraint? (Cont.)

2011-12-15 Thread 陳韋任
> Yes. Did you build one bzImage based on Linus kernel git tree, and > then use unmodified QEMU to boot it? Can it succeed to start up? Current buildroot (snapshot version) build linux 3.x by default, and unmodified QEMU can boot it. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab,

Re: [Qemu-devel] [PATCH] w32: QEMU applications with SDL are always GUI applications

2011-12-15 Thread TeLeMan
On Sun, Dec 4, 2011 at 05:32, Stefan Weil wrote: > Since commit 1d14ffa97eacd3cb722271eaf6f093038396eac4 (in 2005), > QEMU applications on W32 don't use the default SDL compiler flags: > > Instead of a GUI application, a console application is created. > > This has disadvantages (there is always a

[Qemu-devel] [PATCH] virtio-serial: Allow one MSI-X vector per virtqueue

2011-12-15 Thread zanghongyong
From: Hongyong Zang In pci_enable_msix(), the guest's virtio-serial driver tries to set msi-x with one vector per queue. But it fails and eventually all virtio-serial ports share one MSI-X vector. Because every virtio-serial port has *two* virtqueues, virtio-serial needs (port+1)*2 vectors other

Re: [Qemu-devel] [RFC] Plan for moving forward with QOM

2011-12-15 Thread Anthony Liguori
On 12/15/2011 03:28 PM, Paul Brook wrote: There is a second class of "user" that is doing very sophisticated things and cares about this information. But this sophisticated user (i.e. libvirt) wants to be able to probe QEMU to understand what features are probably available because it very likel

[Qemu-devel] New RC List

2011-12-15 Thread Jason Yin
Dear Sir, Nice day. We might have communicated before. It is Jason from PINIPOWER. We are professional manufactory for LIPO Batteries of RC market. We are capable of producing the LIPO batteries for brands like Align, Esky, Walkera, Futaba, JR, and all kinds. Guarantee:"A" grade of battery cell

Re: [Qemu-devel] [RFC] Device isolation infrastructure v2

2011-12-15 Thread David Gibson
On Thu, Dec 15, 2011 at 11:05:07AM -0700, Alex Williamson wrote: > On Thu, 2011-12-15 at 17:25 +1100, David Gibson wrote: > > Here's the second spin of my preferred approach to handling grouping > > of devices for safe assignment to guests. > > > > Changes since v1: > > * Many name changes and fi

[Qemu-devel] buildbot failure in qemu on block_mingw32

2011-12-15 Thread qemu
The Buildbot has detected a new failure on builder block_mingw32 while building qemu. Full details are available at: http://buildbot.b1-systems.de/qemu/builders/block_mingw32/builds/66 Buildbot URL: http://buildbot.b1-systems.de/qemu/ Buildslave for this Build: kraxel_rhel61 Build Reason: The

Re: [Qemu-devel] [PATCH 2/2] device_isolation: Support isolation on POWER p7ioc (IODA) bridges

2011-12-15 Thread David Gibson
On Thu, Dec 15, 2011 at 05:48:38PM +1100, Michael Ellerman wrote: > On Thu, 2011-12-15 at 17:08 +1100, David Gibson wrote: > > This patch adds code to the code for the powernv platform to create > > and populate isolation groups on hardware using the p7ioc (aka IODA) PCI > > host > > bridge used o

[Qemu-devel] [PATCH] kvm: Print something before calling abort() if KVM_RUN fails

2011-12-15 Thread Michael Ellerman
It's a little unfriendly to call abort() without printing any sort of error message. So turn the DPRINTK() into an fprintf(stderr, ...). Signed-off-by: Michael Ellerman --- kvm-all.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/kvm-all.c b/kvm-all.c index 4c466d6..a

[Qemu-devel] [Bug 823902] Re: multithreaded ARM seg/longjmp causes uninitialized stack frame due to0d10193870b5a81c3bce13a602a5403c3a55cf6c

2011-12-15 Thread Peter Maydell
** Changed in: qemu Status: Fix Committed => 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/823902 Title: multithreaded ARM seg/longjmp causes uninitialized stack frame due to0

[Qemu-devel] [Bug 883133] Re: qemu on ARM hosts asserts due to code buffer/libc heap conflict

2011-12-15 Thread Peter Maydell
** Changed in: qemu Status: New => Fix Committed -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/883133 Title: qemu on ARM hosts asserts due to code buffer/libc heap conflict Status in QEMU:

Re: [Qemu-devel] [RFC] Device isolation infrastructure v2

2011-12-15 Thread Alex Williamson
ike > suspend/resume will also require non-standard support. I really prefer > attaching individual bus drivers to devices using the standard > bind/unbind mechanisms. I have a hard time seeing how this is an > improvement from vfio. Thanks, I should also mention that I just pushe

[Qemu-devel] [PATCH v3 10/11] isa: always use provided ISA bus in isa_bus_irqs()

2011-12-15 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/isa-bus.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/isa-bus.c b/hw/isa-bus.c index 3207680..5af790b 100644 --- a/hw/isa-bus.c +++ b/hw/isa-bus.c @@ -53,8 +53,10 @@ ISABus *isa_bus_new(DeviceState *dev, MemoryRegion *a

[Qemu-devel] [PATCH v3 07/11] fulong2e: give ISA bus to ISA methods

2011-12-15 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/mips_fulong2e.c |6 ++ hw/vt82c686.c |4 ++-- hw/vt82c686.h |2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/hw/mips_fulong2e.c b/hw/mips_fulong2e.c index e6e120c..5e87665 100644 --- a/hw/mips_fulong2e.c +++ b/

[Qemu-devel] [PATCH v3 01/11] isa: give ISABus/ISADevice to isa_create(), isa_bus_irqs() and isa_get_irq() functions

2011-12-15 Thread Hervé Poussineau
NULL is a valid bus/device, so there is no change in behaviour. Signed-off-by: Hervé Poussineau --- arch_init.c|8 arch_init.h|2 +- hw/adlib.c |2 +- hw/alpha_dp264.c | 10 ++ hw/alpha_typhoon.c |7 --- hw/audiodev.h |8 +

[Qemu-devel] [PATCH v3 09/11] isa: always use provided ISA bus when creating an isa device

2011-12-15 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/isa-bus.c | 10 -- 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/hw/isa-bus.c b/hw/isa-bus.c index 7c94f0b..3207680 100644 --- a/hw/isa-bus.c +++ b/hw/isa-bus.c @@ -130,12 +130,11 @@ ISADevice *isa_create(ISABus *bus, const char *

Re: [Qemu-devel] [RFC] Plan for moving forward with QOM

2011-12-15 Thread Paul Brook
> But there are two distinct classes of user. One class of user really is > thinking: > > "I want a KVM virtual machine, with 3 disks and 2 network cards" > > They could give a flying hoot whether the i440fx inherits from pcidevice or > implements pcibus. > > We need to provide an obviously dis

[Qemu-devel] [PATCH v3 08/11] malta: give ISA bus to ISA methods

2011-12-15 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/mips_malta.c |3 +-- hw/pc.h |2 +- hw/piix4.c |3 ++- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/mips_malta.c b/hw/mips_malta.c index 621e661..330924e 100644 --- a/hw/mips_malta.c +++ b/hw/mips_malta.c @@ -94

[Qemu-devel] [PATCH v3 11/11] audio: remove unused parameter isa_pic

2011-12-15 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- arch_init.c | 10 +- arch_init.h |2 +- hw/adlib.c |2 +- hw/audiodev.h |8 hw/cs4231a.c|2 +- hw/gus.c|2 +- hw/mips_jazz.c |2 +- hw/mips_malta.c |2 +- hw/pc.h |2 +- hw/

[Qemu-devel] [PATCH v3 06/11] sun4u: give ISA bus to ISA methods

2011-12-15 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/sun4u.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/sun4u.c b/hw/sun4u.c index dfb81da..e3e8dde 100644 --- a/hw/sun4u.c +++ b/hw/sun4u.c @@ -530,10 +530,12 @@ static ISABus * pci_ebus_init(PCIBus *bus, int devfn) {

[Qemu-devel] [PATCH v3 04/11] pc: give ISA bus to ISA methods

2011-12-15 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/pc.h |2 +- hw/pc_piix.c |3 +-- hw/piix_pci.c |8 +--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/hw/pc.h b/hw/pc.h index afb7535..04e72cc 100644 --- a/hw/pc.h +++ b/hw/pc.h @@ -183,7 +183,7 @@ struct PCII440FXSta

[Qemu-devel] [PATCH v3 05/11] alpha: give ISA bus to ISA methods

2011-12-15 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/alpha_dp264.c |4 ++-- hw/alpha_sys.h |3 ++- hw/alpha_typhoon.c | 10 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/hw/alpha_dp264.c b/hw/alpha_dp264.c index a07a2ff..876335a 100644 --- a/hw/alpha_dp264.c +++ b/h

[Qemu-devel] [PATCH v3 02/11] isa: move ISABus structure definition to header file

2011-12-15 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/isa-bus.c |5 - hw/isa.h |6 ++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/hw/isa-bus.c b/hw/isa-bus.c index dcbb134..7c94f0b 100644 --- a/hw/isa-bus.c +++ b/hw/isa-bus.c @@ -22,11 +22,6 @@ #include "isa.h" #include

[Qemu-devel] [PATCH v3 03/11] i8259: give ISA device to isa_register_ioport()

2011-12-15 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau --- hw/i8259.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/i8259.c b/hw/i8259.c index 4446339..7331e0e 100644 --- a/hw/i8259.c +++ b/hw/i8259.c @@ -469,9 +469,9 @@ static int pic_initfn(ISADevice *dev) memory_region_init_io(

[Qemu-devel] [PATCH v3 00/11] isa: preliminary work for multiple buses

2011-12-15 Thread Hervé Poussineau
Current patches are a rework of my patches already available at [1]. They don't provide full support for multiple ISA buses (yet), but add a ISABus or ISADevice argument to all ISA functions. They are mostly mechanically touching every instanciation of ISA devices, so number of lines is quite high

Re: [Qemu-devel] [PATCH v9 0/3] PC system flash support

2011-12-15 Thread Jordan Justen
I verified that 'info mtree' and 'info qdev' are equivalent for pc-1.0 when using master and with my patches. However, I did discover that v1.0 seems to differ from master for this same test. I've attached the logs. --- v1.0-pc.log 2011-12-15 12:14:53.0 -0800 +++ master-pc-1.0.log 2011

[Qemu-devel] [PATCH v9 1/3] pc: Add pc-1.1 machine type

2011-12-15 Thread Jordan Justen
This machine type adds a new system_firmware_enabled parameter which is passed into pc_memory_init. This will be used by the system firmware support which enables a flash memory to be used with qemu. Signed-off-by: Jordan Justen Cc: Avi Kivity --- hw/pc.c |3 ++- hw/pc.h |3 +

[Qemu-devel] [PATCH v9 3/3] pc: Support system flash memory with pflash

2011-12-15 Thread Jordan Justen
If a pflash image is found, then it is used for the system firmware image. If a pflash image is not initially found, then a read-only pflash device is created using the -bios filename. KVM cannot execute from a pflash region currently. Therefore, when KVM is enabled, a (read-only) ram memory regi

[Qemu-devel] [PATCH v9 2/3] pflash: Support read-only mode

2011-12-15 Thread Jordan Justen
When read-only mode is enabled, no changes will be made to the flash image in memory, and no bdrv_write calls will be made. For pflash_cfi01 (Intel), if the flash is in read-only mode then the status register will signal block erase error or program error when these operations are attempted. For

[Qemu-devel] [PATCH v9 0/3] PC system flash support

2011-12-15 Thread Jordan Justen
Enable flash emulation in a PC system using pflash_cfi01. v9: * Add pc-1.1 * pc-1.0 uses previous rom firmware init code path v8: * Cleanup two chunks of debug code (printf messages) * Fix comment in pc.h (pcflash.c => pc_sysfw.c) v7: * Do not add system firmware to qemu roms * If kvm is enabled

[Qemu-devel] [Bug 749522] Re: qemu-system-arm reads wrong entry in L1 page table for cortex-a8

2011-12-15 Thread Peter Maydell
"(We do seem to not quite be getting the effect of TTBCR.N right, though: if N > 0 then although we correctly take more bits from TTBR0 (by adjusting c2_base_mask) we aren't masking out the high bits [31..32-N] of the MVA. But that's a different problem.)" Looking more closely, I was wrong here. I

[Qemu-devel] [Bug 889868] Re: CM_CTRL always reads as 0x00000000 (arm/integratorcp)

2011-12-15 Thread Peter Maydell
1.0 is out now, so let's call this bug fixed. ** 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/889868 Title: CM_CTRL always reads as 0x

Re: [Qemu-devel] [RFC] Plan for moving forward with QOM

2011-12-15 Thread Anthony Liguori
On 12/15/2011 12:59 PM, Paul Brook wrote: Do we have a user interface issue here? I want to separate backwards compatibility from ABI compatibility. We should provide nice high level interfaces that are forever backwards compatible. But when it comes to hooking up IRQs between devices, that i

[Qemu-devel] [Bug 696094] Re: TI Stellaris lm3s811evb (ARM Cortex-M3) : Systick interrupt not working

2011-12-15 Thread Peter Maydell
NB: the attached project fails for me like this: qemu: hardware error: gic_dist_writeb: Bad offset d23 CPU #0: R00= R01=e000ed00 R02=00e0 R03=e000ed0b R04= R05= R06= R07=24bb R08= R09= R10= R11= R12= R13=24bb R14=0

Re: [Qemu-devel] [RFC] Plan for moving forward with QOM

2011-12-15 Thread Paul Brook
> > Do we have a user interface issue here? > > I want to separate backwards compatibility from ABI compatibility. We > should provide nice high level interfaces that are forever backwards > compatible. But when it comes to hooking up IRQs between devices, that > interface should just be ABI com

[Qemu-devel] [PATCH] stellaris: Calculate system clock period on reset

2011-12-15 Thread Peter Maydell
Calculate the system clock period on reset; otherwise it remains set to the default value of zero and attempting to use it provokes a hang. This is one of the issues noted in LP:696094. Signed-off-by: Peter Maydell --- hw/stellaris.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) di

[Qemu-devel] [PATCH] Makefile.target: Remove unnecessary dependency rules

2011-12-15 Thread Peter Maydell
Remove some dependency rules which aren't necessary (the automatically generated .d files cover all these). These were leftovers from dyngen days, when the object files also had a dependency on some generated files. Signed-off-by: Peter Maydell --- Makefile.target |6 -- 1 files changed,

Re: [Qemu-devel] [PATCH v5 4/4] Add support for net bridge

2011-12-15 Thread Corey Bryant
On 12/15/2011 10:26 AM, Anthony Liguori wrote: On 11/13/2011 09:45 PM, Corey Bryant wrote: The most common use of -net tap is to connect a tap device to a bridge. This requires the use of a script and running qemu as root in order to allocate a tap device to pass to the script. This patch br

Re: [Qemu-devel] [PATCH] HACKING: clarify allocation/free recommendations

2011-12-15 Thread Anthony Liguori
On 12/15/2011 07:33 AM, Peter Maydell wrote: Clarify the allocation/free recommendations; this is mostly just tidying up following the global-search-and-replace done with the conversion to the GLib g_malloc and friends. Signed-off-by: Peter Maydell Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH] HACKING: clarify allocation/free recommendations

2011-12-15 Thread Anthony Liguori
On 12/15/2011 07:33 AM, Peter Maydell wrote: Clarify the allocation/free recommendations; this is mostly just tidying up following the global-search-and-replace done with the conversion to the GLib g_malloc and friends. Signed-off-by: Peter Maydell Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH] usb: fix usb_qdev_init() error handling again

2011-12-15 Thread Anthony Liguori
On 12/15/2011 04:05 AM, Stefan Hajnoczi wrote: Commit f462141f18ffdd75847f6459ef83d90b831d12c0 introduced clean up code when usb_qdev_init() fails. Unfortunately it calls .handle_destroy() when .init() was never invoked or failed. This can lead to crashes when .handle_destroy() tries to clean u

Re: [Qemu-devel] [PATCH] fix win32 build

2011-12-15 Thread Anthony Liguori
On 12/13/2011 06:43 AM, Paolo Bonzini wrote: On Windows, cpus.c needs access to the hThread. Add a Windows-specific function to grab it. This requires changing the CPU threads to joinable. There is no substantial change because the threads run in an infinite loop. Signed-off-by: Paolo Bonzini

Re: [Qemu-devel] [PATCH] phys_page_find_alloc: Use correct initial region_offset.

2011-12-15 Thread Anthony Liguori
On 12/13/2011 04:52 AM, alex_rozen...@mentor.com wrote: From: Alex Rozenman This fixes a common bug with initial region_offset value. Usually, the pages are re-assigned afterwards, so the bug has a very small effect on regular QEMU use flows. Signed-off-by: Alex Rozenman Applied. Thanks. Re

Re: [Qemu-devel] [PATCH 1/2] error: Add an accessor for progname

2011-12-15 Thread Anthony Liguori
On 12/12/2011 07:22 PM, mich...@ellerman.id.au wrote: We'd like to get the progname for help output, so add an accessor. Signed-off-by: Michael Ellerman Applied. Thanks. Regards, Anthony Liguori --- qemu-error.c |5 + qemu-error.h |1 + 2 files changed, 6 insertions(+), 0

Re: [Qemu-devel] [PATCH v3 00/20] qom: dynamic properties and composition tree

2011-12-15 Thread Anthony Liguori
On 12/12/2011 02:29 PM, Anthony Liguori wrote: This is a follow up to my previous series to get us started in the QOM direction. A few things are different this time around. Most notably: 1) Devices no longer have names. Instead, path names are always used to identify devices. 2) In

Re: [Qemu-devel] [PATCH v3] network scripts: don't block SIGCHLD before forking

2011-12-15 Thread Anthony Liguori
On 12/07/2011 09:48 PM, Michael Roth wrote: This patch fixes a bug where child processes of launch_script() can misbehave due to SIGCHLD being blocked. In the case of `sudo`, this causes a permanent hang. Previously a SIGCHLD handler was added to reap fork_exec()'d zombie processes by calling wa

Re: [Qemu-devel] [PATCH v2] exec.c: Fix subpage memory access to RAM MemoryRegion

2011-12-15 Thread Anthony Liguori
On 11/30/2011 09:26 AM, Andreas Färber wrote: Commit 95c318f5e1f88d7e5bcc6deac17330fd4806a2d3 (Fix segfault in mmio subpage handling code.) prevented a segfault by making all subpage registrations over an existing memory page perform an unassigned access. Symptoms were writes not taking effect an

Re: [Qemu-devel] [RFC] Device isolation infrastructure v2

2011-12-15 Thread Alex Williamson
On Thu, 2011-12-15 at 17:25 +1100, David Gibson wrote: > Here's the second spin of my preferred approach to handling grouping > of devices for safe assignment to guests. > > Changes since v1: > * Many name changes and file moves for improved consistency > * Bugfixes and cleanups > * The interfa

Re: [Qemu-devel] [Xen-devel] [PATCH] xen-qemu: register virtual iommu device on qemu pci bus

2011-12-15 Thread Ian Jackson
Wei Wang2 writes ("[Xen-devel] [PATCH] xen-qemu: register virtual iommu device on qemu pci bus"): > Attached patch is for qemu to register iommu device on pci bus. Guest OS > requires this to access iommu pci config space in some cases. Thanks for this submission. However, we are trying to focu

Re: [Qemu-devel] [Bug 899140] Re: Problem with Linux Kernel Traffic Control

2011-12-15 Thread Vincent Autefage
Here is the problem ! The Ubuntu version works only because it not uses an *Intel e1000* but a *rtl8139*. Therefore, the problem about the e1000 is present in *all* version (original or ubuntu ones). Thus, the file *e1000.c* must contain some instructions which imply the bad TC behavior. Vinc

Re: [Qemu-devel] [PATCH v3] qemu-ga: Add the guest-suspend command

2011-12-15 Thread Michael Roth
On 12/15/2011 09:09 AM, Luiz Capitulino wrote: It supports three modes: "hibernate" (suspend to disk), "sleep" (suspend to ram) and "hybrid" (save RAM contents to disk, but suspend instead of powering off). The command will try to execute the scripts provided by the pm-utils package. If that fai

Re: [Qemu-devel] [PATCH] usb-ohci: return USBBus in usb_ohci_init_pci

2011-12-15 Thread Anthony Liguori
On 12/15/2011 10:36 AM, Gerd Hoffmann wrote: Hi, Heh, awesome :-) Okay, I'll actually test it next time. Could you also add some justification for the change to the commit message please? Just for itself the change looks somewhat odd as there is no obvious reason for it ... Yup. Regar

Re: [Qemu-devel] [PATCH] usb-ohci: return USBBus in usb_ohci_init_pci

2011-12-15 Thread Gerd Hoffmann
Hi, > Heh, awesome :-) Okay, I'll actually test it next time. Could you also add some justification for the change to the commit message please? Just for itself the change looks somewhat odd as there is no obvious reason for it ... thanks, Gerd

Re: [Qemu-devel] [PATCH V2 3/5] Introduce premigrate RunState.

2011-12-15 Thread Luiz Capitulino
On Thu, 15 Dec 2011 09:14:00 -0600 Anthony Liguori wrote: > On 12/09/2011 03:54 PM, Anthony PERARD wrote: > > This new state will be used by Xen functions to know QEMU will wait for a > > migration. This is important to know for memory related function because the > > memory is already allocated

Re: [Qemu-devel] [PATCH v3 2/9] block: add BlockJob interface for long-running operations

2011-12-15 Thread Marcelo Tosatti
On Wed, Dec 14, 2011 at 02:51:47PM +0100, Kevin Wolf wrote: > Am 13.12.2011 14:52, schrieb Stefan Hajnoczi: > > Signed-off-by: Stefan Hajnoczi > > --- > > block_int.h | 83 > > +++ > > 1 files changed, 83 insertions(+), 0 deletions(-) >

Re: [Qemu-devel] [PATCH v2 0/3] remove sysbus_init_mmio_cb2 usage

2011-12-15 Thread Anthony Liguori
On 12/14/2011 08:32 AM, Benoît Canet wrote: These patches remove sysbus_init_mmio_cb2 usage from the codebase. Breaks the build: anthony@titi:~/build/qemu$ make CCppc-softmmu/ppce500_mpc8544ds.o cc1: warnings being treated as errors /home/anthony/git/qemu/hw/ppce500_mpc8544ds.c: In funct

Re: [Qemu-devel] [Bug 899140] Re: Problem with Linux Kernel Traffic Control

2011-12-15 Thread Stefan Hajnoczi
On Thu, Dec 15, 2011 at 4:09 PM, Stefan Hajnoczi wrote: > On Thu, Dec 15, 2011 at 3:03 PM, Vincent Autefage > <899...@bugs.launchpad.net> wrote: >> Ok, >> >> So the e1000.c and the e1000_hw.h have absolutely no difference between >> the original and the ubuntu version... >> The only differences wi

Re: [Qemu-devel] [Bug 899140] Re: Problem with Linux Kernel Traffic Control

2011-12-15 Thread Stefan Hajnoczi
On Thu, Dec 15, 2011 at 3:03 PM, Vincent Autefage <899...@bugs.launchpad.net> wrote: > Ok, > > So the e1000.c and the e1000_hw.h have absolutely no difference between > the original and the ubuntu version... > The only differences witch refers to the *Intel e1000* in the wall > sources is this one

Re: [Qemu-devel] [RFC] Device sandboxing

2011-12-15 Thread Serge Hallyn
Quoting Paul Moore (pmo...@redhat.com): > On Thursday, December 15, 2011 09:14:11 AM Serge Hallyn wrote: > > Quoting Corey Bryant (cor...@linux.vnet.ibm.com): > > > On 12/14/2011 06:56 PM, Paul Moore wrote: > > > >On Wednesday, December 14, 2011 11:15:58 AM Serge E. Hallyn wrote: > > > >>Hey Paul,

Re: [Qemu-devel] [libvirt] Modern CPU models cannot be used with libvirt

2011-12-15 Thread Daniel P. Berrange
On Thu, Dec 15, 2011 at 03:54:15PM +0100, Jiri Denemark wrote: > Hi, > > Recently I realized that all modern CPU models defined in > /etc/qemu/target-x86_64.conf are useless when qemu is used through libvirt. > That's because we start qemu with -nodefconfig which results in qemu ignoring > that fi

Re: [Qemu-devel] [RFC] Device sandboxing

2011-12-15 Thread Paul Moore
On Thursday, December 15, 2011 09:14:11 AM Serge Hallyn wrote: > Quoting Corey Bryant (cor...@linux.vnet.ibm.com): > > On 12/14/2011 06:56 PM, Paul Moore wrote: > > >On Wednesday, December 14, 2011 11:15:58 AM Serge E. Hallyn wrote: > > >>Hey Paul, > > >> > > >>just wondering, exactly which approac

[Qemu-devel] [PATCH 1/7] memory: introduce memory_region_set_enabled()

2011-12-15 Thread Avi Kivity
This allows users to disable a memory region without removing it from the hierarchy, simplifying the implementation of memory routers. Signed-off-by: Avi Kivity --- memory.c | 40 +--- memory.h | 17 + 2 files changed, 46 insertions(+), 11

Re: [Qemu-devel] Modern CPU models cannot be used with libvirt

2011-12-15 Thread Jiri Denemark
On Thu, Dec 15, 2011 at 08:58:55 -0600, Anthony Liguori wrote: > Pass '-readconfig /etc/qemu/target-x86_64.conf' to pick up those models and > if > you are absolutely insistent on not giving the user any ability to change > things > on their own, cp the file from qemu.git into libvirt.git and i

[Qemu-devel] [PATCH 7/7] docs: document memory API interaction with migration

2011-12-15 Thread Avi Kivity
Signed-off-by: Avi Kivity --- docs/migration.txt | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/docs/migration.txt b/docs/migration.txt index 4848c1e..f3ddd2f 100644 --- a/docs/migration.txt +++ b/docs/migration.txt @@ -219,6 +219,18 @@ The functions to do th

[Qemu-devel] [PATCH 3/7] memory: introduce memory_region_set_alias_offset()

2011-12-15 Thread Avi Kivity
Add an API to update an alias offset of an active alias. This can be used to simplify implementation of dynamic memory banks. Signed-off-by: Avi Kivity --- memory.c | 14 ++ memory.h | 12 2 files changed, 26 insertions(+), 0 deletions(-) diff --git a/memory.c b/me

[Qemu-devel] [PATCH 5/7] cirrus_vga: adapt to memory mutators API

2011-12-15 Thread Avi Kivity
Simplify the code by avoiding dynamic creation and destruction of memory regions. Signed-off-by: Avi Kivity --- hw/cirrus_vga.c | 50 +- 1 files changed, 17 insertions(+), 33 deletions(-) diff --git a/hw/cirrus_vga.c b/hw/cirrus_vga.c index c7e3

[Qemu-devel] [PATCH 6/7] piix_pci: adapt smram mapping to use memory mutators

2011-12-15 Thread Avi Kivity
Eliminates fake state ->smram_enabled. Signed-off-by: Avi Kivity --- hw/piix_pci.c | 20 ++-- 1 files changed, 6 insertions(+), 14 deletions(-) diff --git a/hw/piix_pci.c b/hw/piix_pci.c index d183443..ac3d898 100644 --- a/hw/piix_pci.c +++ b/hw/piix_pci.c @@ -81,7 +81,6 @@ st

Re: [Qemu-devel] [PATCH v5 4/4] Add support for net bridge

2011-12-15 Thread Anthony Liguori
On 11/13/2011 09:45 PM, Corey Bryant wrote: The most common use of -net tap is to connect a tap device to a bridge. This requires the use of a script and running qemu as root in order to allocate a tap device to pass to the script. This patch breaks the build: anthony@titi:~/build/qemu$ make

[Qemu-devel] [PATCH 4/7] memory: optimize empty transactions due to mutators

2011-12-15 Thread Avi Kivity
The mutating memory APIs can easily cause empty transactions, where the mutators don't actually change anything, or perhaps only modify disabled regions. Detect these conditions and avoid regenerating the memory topology. Signed-off-by: Avi Kivity --- memory.c |8 +++- 1 files changed,

[Qemu-devel] [PATCH 2/7] memory: introduce memory_region_set_address()

2011-12-15 Thread Avi Kivity
Allow changing the address of a memory region while it is in the memory hierarchy. Signed-off-by: Avi Kivity --- memory.c | 21 + memory.h | 11 +++ 2 files changed, 32 insertions(+), 0 deletions(-) diff --git a/memory.c b/memory.c index d0f90ca..a080d21 100644 -

[Qemu-devel] [PULL v3 0/7] Memory API mutators

2011-12-15 Thread Avi Kivity
[repost w/ qemu-devel copied this time] This patchset introduces memory_region_set_enabled() and memory_region_set_address() to avoid the requirement on memory routers to track the internal state of the memory API (so they know whether they need to add or remove a region). Instead, they can simpl

Re: [Qemu-devel] [Bug 899140] Re: Problem with Linux Kernel Traffic Control

2011-12-15 Thread Vincent Autefage
Ok, So the e1000.c and the e1000_hw.h have absolutely no difference between the original and the ubuntu version... The only differences witch refers to the *Intel e1000* in the wall sources is this one : diff -ru qemu//hw/pc_piix.c qemu-kvm-0.14.0+noroms//hw/pc_piix.c --- qemu//hw/pc_piix.c 2

[Qemu-devel] [PATCH 02/14] block: simplify failure handling for bdrv_aio_multiwrite

2011-12-15 Thread Kevin Wolf
From: Paolo Bonzini Now that early failure of bdrv_aio_writev is not possible anymore, mcb->num_requests can be set before the loop starts. Signed-off-by: Paolo Bonzini Signed-off-by: Kevin Wolf --- block.c | 28 ++-- 1 files changed, 2 insertions(+), 26 deletions(-)

Re: [Qemu-devel] [RFC] Device sandboxing

2011-12-15 Thread Serge Hallyn
Quoting Corey Bryant (cor...@linux.vnet.ibm.com): > > > On 12/14/2011 06:56 PM, Paul Moore wrote: > >On Wednesday, December 14, 2011 11:15:58 AM Serge E. Hallyn wrote: > >>Quoting Paul Moore (pmo...@redhat.com): > >>>On Wednesday, December 07, 2011 12:48:16 PM Anthony Liguori wrote: > On 12/0

Re: [Qemu-devel] [PATCH V2 3/5] Introduce premigrate RunState.

2011-12-15 Thread Anthony Liguori
On 12/09/2011 03:54 PM, Anthony PERARD wrote: This new state will be used by Xen functions to know QEMU will wait for a migration. This is important to know for memory related function because the memory is already allocated and reallocated them will not works. Signed-off-by: Anthony PERARD Lu

Re: [Qemu-devel] [PATCH] enable architectural PMU cpuid leaf for kvm

2011-12-15 Thread Gleb Natapov
On Thu, Dec 15, 2011 at 09:09:32AM -0600, Anthony Liguori wrote: > On 12/15/2011 04:44 AM, Gleb Natapov wrote: > > > >Signed-off-by: Gleb Natapov > > This should go in via uq/master. uq/master maintainers can you take it? > > Regards, > > Anthony Liguori > > >diff --git a/target-i386/cpuid.c b

Re: [Qemu-devel] [PATCH V2 1/5] vl.c: Do not save RAM state when Xen is used.

2011-12-15 Thread Anthony Liguori
On 12/09/2011 03:54 PM, Anthony PERARD wrote: In Xen case, the guest RAM is not handle by QEMU, and it is saved by Xen tools. So, we just avoid to register the RAM save state handler. Signed-off-by: Anthony PERARD --- vl.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff

Re: [Qemu-devel] [PATCH] usb-ohci: return USBBus in usb_ohci_init_pci

2011-12-15 Thread Anthony Liguori
On 12/15/2011 02:17 AM, Stefan Hajnoczi wrote: On Wed, Dec 14, 2011 at 06:10:17PM -0600, Anthony Liguori wrote: Untested, but seemingly obvious and hard to screw up.. Sounds like a challenge so let's take a look... -void usb_ohci_init_pci(struct PCIBus *bus, int devfn) +USBBus *usb_ohci_init

[Qemu-devel] [PATCH 05/14] block: dma_bdrv_* does not return NULL

2011-12-15 Thread Kevin Wolf
From: Paolo Bonzini Initially attempted with the following semantic patch: @ rule1 @ expression E; statement S; @@ E = ( dma_bdrv_io | dma_bdrv_read | dma_bdrv_write ) (...); ( - if (E == NULL) { ... } | - if (E) { <... S ...> } ) which however did not match anything. Signed-of

[Qemu-devel] [PATCH 06/14] block: avoid useless checks on acb->bh

2011-12-15 Thread Kevin Wolf
From: Paolo Bonzini Coverity is confused by this "if" and reports leaks on acb->bh. The bottom half is always deleted before releasing the AIOCB, in either bdrv_aio_cancel_em or bdrv_aio_bh_cb. Signed-off-by: Paolo Bonzini Signed-off-by: Kevin Wolf --- block.c |4 +--- 1 files changed, 1

[Qemu-devel] [PATCH 03/14] block: qemu_aio_get does not return NULL

2011-12-15 Thread Kevin Wolf
From: Paolo Bonzini Initially done with the following semantic patch: @ rule1 @ expression E; statement S; @@ E = qemu_aio_get (...); ( - if (E == NULL) { ... } | - if (E) { <... S ...> } ) which however missed occurrences in linux-aio.c and posix-aio-compat.c. Those were done by hand. T

[Qemu-devel] [PATCH v3] qemu-ga: Add the guest-suspend command

2011-12-15 Thread Luiz Capitulino
It supports three modes: "hibernate" (suspend to disk), "sleep" (suspend to ram) and "hybrid" (save RAM contents to disk, but suspend instead of powering off). The command will try to execute the scripts provided by the pm-utils package. If that fails, it will try to suspend manually by writing to

Re: [Qemu-devel] [PATCH] enable architectural PMU cpuid leaf for kvm

2011-12-15 Thread Anthony Liguori
On 12/15/2011 04:44 AM, Gleb Natapov wrote: Signed-off-by: Gleb Natapov This should go in via uq/master. Regards, Anthony Liguori diff --git a/target-i386/cpuid.c b/target-i386/cpuid.c index 0b3af90..91a104b 100644 --- a/target-i386/cpuid.c +++ b/target-i386/cpuid.c @@ -1180,10 +1180,19 @@

[Qemu-devel] [PATCH 08/14] rbd: always set out parameter in qemu_rbd_snap_list

2011-12-15 Thread Kevin Wolf
From: Josh Durgin The caller expects psn_tab to be NULL when there are no snapshots or an error occurs. This results in calling g_free on an invalid address. Reported-by: Oliver Francke Signed-off-by: Josh Durgin Signed-off-by: Kevin Wolf --- block/rbd.c |3 ++- 1 files changed, 2 insert

[Qemu-devel] [PATCH 07/14] block/qcow2.c: call qcow2_free_snapshots in the function of qcow2_close

2011-12-15 Thread Kevin Wolf
From: Li Zhi Hui Signed-off-by: Li Zhi Hui Reviewed-by: Stefan Hajnoczi Signed-off-by: Kevin Wolf --- block/qcow2.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/block/qcow2.c b/block/qcow2.c index 37cd442..aa32e8d 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -

Re: [Qemu-devel] Transitioning from HMP to QMP for QEMU

2011-12-15 Thread Luiz Capitulino
On Thu, 15 Dec 2011 14:57:51 +0100 Jan Kiszka wrote: > On 2011-12-15 14:53, Stefan Hajnoczi wrote: > > On Thu, Dec 15, 2011 at 1:49 PM, Kevin Wolf wrote: > >> Am 15.12.2011 14:39, schrieb Jan Kiszka: > >>> On 2011-12-15 14:38, Lucas Meneghel Rodrigues wrote: > On 12/15/2011 11:33 AM, Kevin

Re: [Qemu-devel] Modern CPU models cannot be used with libvirt

2011-12-15 Thread Anthony Liguori
On 12/15/2011 08:54 AM, Jiri Denemark wrote: Hi, Recently I realized that all modern CPU models defined in /etc/qemu/target-x86_64.conf are useless when qemu is used through libvirt. That's because we start qemu with -nodefconfig which results in qemu ignoring that file with CPU model definition

Re: [Qemu-devel] Transitioning from HMP to QMP for QEMU

2011-12-15 Thread Anthony Liguori
On 12/15/2011 08:52 AM, Luiz Capitulino wrote: On Thu, 15 Dec 2011 08:06:41 -0600 Anthony Liguori wrote: There are still a lot of HMP commands that don't have an QMP analog. Luiz, it might make sense to setup a wiki page which instructions on how to convert an HMP command to a QMP command usi

[Qemu-devel] [PULL 00/14] Block patches

2011-12-15 Thread Kevin Wolf
The following changes since commit 222f23f508a8d778f56eddef14752dfd26d225b4: tcg/arm: remove fixed map code buffer restriction (2011-12-14 21:58:18 +0100) are available in the git repository at: git://repo.or.cz/qemu/kevin.git for-anthony Avi Kivity (1): coroutine: switch per-thread fr

[Qemu-devel] Modern CPU models cannot be used with libvirt

2011-12-15 Thread Jiri Denemark
Hi, Recently I realized that all modern CPU models defined in /etc/qemu/target-x86_64.conf are useless when qemu is used through libvirt. That's because we start qemu with -nodefconfig which results in qemu ignoring that file with CPU model definitions. We have a very good reason for using -nodefc

Re: [Qemu-devel] Transitioning from HMP to QMP for QEMU

2011-12-15 Thread Luiz Capitulino
On Thu, 15 Dec 2011 08:06:41 -0600 Anthony Liguori wrote: > On 12/15/2011 07:57 AM, Luiz Capitulino wrote: > > On Thu, 15 Dec 2011 13:02:40 + > > Stefan Hajnoczi wrote: > > > >> What is the status of QEMU's transition from HMP to the QMP interface? > > > > Depends on what you consider the tr

[Qemu-devel] [PATCH 13/14] block/cow: Return real error code

2011-12-15 Thread Kevin Wolf
From: Li Zhi Hui Signed-off-by: Li Zhi Hui Signed-off-by: Kevin Wolf --- block/cow.c | 44 +--- 1 files changed, 29 insertions(+), 15 deletions(-) diff --git a/block/cow.c b/block/cow.c index 3c52735..bb5927c 100644 --- a/block/cow.c +++ b/block/cow.c

  1   2   3   >