[Qemu-devel] [PATCH v2 9/9] target-microblaze: Remove dead code

2015-06-05 Thread Alistair Francis
This code is already being run in the mb_cpu_realizefn() function. As PVR registers are preserved on reset this code is not required. Signed-off-by: Alistair Francis alistair.fran...@xilinx.com Reviewed-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-microblaze/cpu.c |4 1

[Qemu-devel] [PATCH v2 8/9] s3adsp1800: Remove the hardcoded values from the reset

2015-06-05 Thread Alistair Francis
Remove the hardcoded values from the machine specific reset function, as the same values are already set in the standard MicroBlaze reset. This also allows the entire reset function to be deleted, as PVR registers are now preserved on reset. Signed-off-by: Alistair Francis

[Qemu-devel] [v8][PATCH 01/10] i440fx: make types configurable at run-time

2015-06-05 Thread Tiejun Chen
From: Michael S. Tsirkin m...@redhat.com IGD passthrough wants to supply a different pci and host devices, inheriting i440fx devices. Make types configurable. Signed-off-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Tiejun Chen tiejun.c...@intel.com --- hw/i386/pc_piix.c| 4 +++-

Re: [Qemu-devel] [PATCH v4 8/8] xics_kvm: Add cpu_destroy method to XICS

2015-06-05 Thread Bharata B Rao
On Fri, Jun 05, 2015 at 06:09:38PM +1000, Alexey Kardashevskiy wrote: On 06/05/2015 02:25 PM, Bharata B Rao wrote: XICS is setup for each CPU during initialization. Provide a routine to undo the same when CPU is unplugged. Also ensure xics reset doesn't set irq for CPUs that are already

[Qemu-devel] [PATCH v2 5/9] target-microblaze: Convert version_mask to a CPU property

2015-06-05 Thread Alistair Francis
Originally the version_mask PVR bits were manually set for each machine. This is a hassle and difficult to read, instead set them based on the CPU properties. Signed-off-by: Alistair Francis alistair.fran...@xilinx.com --- V2: - Convert version_mask to a string instead of a bool

[Qemu-devel] [PATCH v2 4/9] target-microblaze: Convert endi to a CPU property

2015-06-05 Thread Alistair Francis
Originally the endi PVR bits were manually set for each machine. This is a hassle and difficult to read, instead set them based on the CPU properties. Signed-off-by: Alistair Francis alistair.fran...@xilinx.com Reviewed-by: Edgar E. Iglesias edgar.igles...@xilinx.com ---

[Qemu-devel] [v8][PATCH 06/10] xen, gfx passthrough: retrieve VGA BIOS to work

2015-06-05 Thread Tiejun Chen
Now we retrieve VGA bios like kvm stuff in qemu but we need to fix Device Identification in case if its not matched with the real IGD device since Seabios is always trying to compare this ID to work out VGA BIOS. Signed-off-by: Tiejun Chen tiejun.c...@intel.com --- hw/xen/xen_pt.c | 10

[Qemu-devel] [v8][PATCH 04/10] hw/pci-assign: split pci-assign.c

2015-06-05 Thread Tiejun Chen
We will try to reuse assign_dev_load_option_rom in xen side, and especially its a good beginning to unify pci assign codes both on kvm and xen in the future. Signed-off-by: Tiejun Chen tiejun.c...@intel.com --- hw/i386/Makefile.objs | 1 + hw/i386/kvm/pci-assign.c | 82

[Qemu-devel] [v8][RESEND][PATCH 01/10] i440fx: make types configurable at run-time

2015-06-05 Thread Tiejun Chen
From: Michael S. Tsirkin m...@redhat.com IGD passthrough wants to supply a different pci and host devices, inheriting i440fx devices. Make types configurable. Signed-off-by: Michael S. Tsirkin m...@redhat.com Signed-off-by: Tiejun Chen tiejun.c...@intel.com --- hw/i386/pc_piix.c| 4 +++-

[Qemu-devel] [v8][PATCH 07/10] igd gfx passthrough: create a isa bridge

2015-06-05 Thread Tiejun Chen
Currently IGD drivers always need to access PCH by 1f.0. But we don't want to poke that directly to get ID, and although in real world different GPU should have different PCH. But actually the different PCH DIDs likely map to different PCH SKUs. We do the same thing for the GPU. For PCH, the

[Qemu-devel] [v8][PATCH 00/10] xen: add Intel IGD passthrough

2015-06-05 Thread Tiejun Chen
v8: * Rebase on the latest qemu tree * Cleanup one xen leftover in patch #3 v7: * Instead of -gfx_passthru we'd like to make that a machine option, -machine xxx,igd-passthru=on * try to make something as common shared by others like KvmGT in the future * Just read those real value from

[Qemu-devel] [v8][PATCH 05/10] xen, gfx passthrough: basic graphics passthrough support

2015-06-05 Thread Tiejun Chen
basic gfx passthrough support: - add a vga type for gfx passthrough - register/unregister legacy VGA I/O ports and MMIOs for passthrough GFX Signed-off-by: Tiejun Chen tiejun.c...@intel.com Signed-off-by: Yang Zhang yang.z.zh...@intel.com --- hw/core/machine.c| 20

Re: [Qemu-devel] [v7][PATCH 03/10] piix: create host bridge to passthrough

2015-06-05 Thread Chen, Tiejun
On 2015/6/2 17:17, Michael S. Tsirkin wrote: On Tue, Jun 02, 2015 at 08:50:58AM +0800, Chen, Tiejun wrote: On 2015/6/1 2:11, Michael S. Tsirkin wrote: On Thu, Mar 19, 2015 at 09:01:27AM +0800, Chen, Tiejun wrote: On 2015/3/18 18:21, Gerd Hoffmann wrote: On Mi, 2015-03-18 at 17:06 +0800,

[Qemu-devel] [v8][RESEND][PATCH 02/10] pc_init1: pass parameters just with types

2015-06-05 Thread Tiejun Chen
Pass types to configure pc_init1(). Signed-off-by: Tiejun Chen tiejun.c...@intel.com --- hw/i386/pc_piix.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index c05b7c7..3e2fc04 100644 --- a/hw/i386/pc_piix.c +++

[Qemu-devel] [PATCH v2 6/9] target-microblaze: Convert pvr-full to a CPU property

2015-06-05 Thread Alistair Francis
Originally the pvr-full PVR bits were manually set for each machine. This is a hassle and difficult to read, instead set them based on the CPU properties. Signed-off-by: Alistair Francis alistair.fran...@xilinx.com --- V2: - Rename DTS mapping target-microblaze/cpu-qom.h |1 +

[Qemu-devel] [PATCH v2 7/9] ml605_mmu: Move the hardcoded values to the init function

2015-06-05 Thread Alistair Francis
Move the hard coded register values to the init function. This also allows the entire reset function to be deleted, as PVR registers are now preserved on reset. The hardcoded PVR0 values can be removed as they are setting the endianness and stack protection, which is already done or invalid.

Re: [Qemu-devel] [PATCH v4 1/8] spapr: Consider max_cpus during xics initialization

2015-06-05 Thread Bharata B Rao
On Fri, Jun 05, 2015 at 03:30:24PM +1000, Alexey Kardashevskiy wrote: On 06/05/2015 02:25 PM, Bharata B Rao wrote: Use max_cpus instead of smp_cpus when intializating xics system. Also report max_cpus in ibm,interrupt-server-ranges device tree property of interrupt controller node.

Re: [Qemu-devel] [PATCH v4 4/8] spapr: Reorganize CPU dt generation code

2015-06-05 Thread Bharata B Rao
On Fri, Jun 05, 2015 at 04:09:48PM +1000, Alexey Kardashevskiy wrote: -ret = fdt_setprop(fdt, offset, ibm,pft-size, - pft_size_prop, sizeof(pft_size_prop)); You broke formatting here, above 8 lines should not be in the patch. You mean above 80 chars ? It is

Re: [Qemu-devel] [PATCH v2 1/9] target-microblaze: Rename the usefpu variable

2015-06-05 Thread Peter Crosthwaite
On Thu, Jun 4, 2015 at 11:39 PM, Alistair Francis alistair.fran...@xilinx.com wrote: Rename the usefpu variable to use_fpu. Signed-off-by: Alistair Francis alistair.fran...@xilinx.com Reviewed-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- target-microblaze/cpu-qom.h |2 +-

[Qemu-devel] [v8][RESEND][PATCH 10/10] xen, gfx passthrough: add opregion mapping

2015-06-05 Thread Tiejun Chen
The OpRegion shouldn't be mapped 1:1 because the address in the host can't be used in the guest directly. This patch traps read and write access to the opregion of the Intel GPU config space (offset 0xfc). The original patch is from Jean Guyader jean.guya...@eu.citrix.com Signed-off-by: Tiejun

[Qemu-devel] [v8][RESEND][PATCH 06/10] xen, gfx passthrough: retrieve VGA BIOS to work

2015-06-05 Thread Tiejun Chen
Now we retrieve VGA bios like kvm stuff in qemu but we need to fix Device Identification in case if its not matched with the real IGD device since Seabios is always trying to compare this ID to work out VGA BIOS. Signed-off-by: Tiejun Chen tiejun.c...@intel.com --- hw/xen/xen_pt.c | 10

[Qemu-devel] [v8][RESEND][PATCH 05/10] xen, gfx passthrough: basic graphics passthrough support

2015-06-05 Thread Tiejun Chen
basic gfx passthrough support: - add a vga type for gfx passthrough - register/unregister legacy VGA I/O ports and MMIOs for passthrough GFX Signed-off-by: Tiejun Chen tiejun.c...@intel.com Signed-off-by: Yang Zhang yang.z.zh...@intel.com --- hw/core/machine.c| 20

[Qemu-devel] [v8][RESEND][PATCH 08/10] xen, gfx passthrough: register a isa bridge

2015-06-05 Thread Tiejun Chen
Currently we just register this isa bridge when we use IGD passthrough in Xen side. Signed-off-by: Tiejun Chen tiejun.c...@intel.com --- hw/xen/xen_pt.c | 18 ++ include/hw/xen/xen.h | 1 + 2 files changed, 19 insertions(+) diff --git a/hw/xen/xen_pt.c b/hw/xen/xen_pt.c

[Qemu-devel] [v8][RESEND][PATCH 03/10] piix: create host bridge to passthrough

2015-06-05 Thread Tiejun Chen
Implement a pci host bridge specific to passthrough. Actually this just inherits the standard one. And we also just expose a minimal real host bridge pci configuration subset. Signed-off-by: Tiejun Chen tiejun.c...@intel.com --- hw/pci-host/piix.c | 82

Re: [Qemu-devel] [PATCH v4 4/8] spapr: Reorganize CPU dt generation code

2015-06-05 Thread Alexey Kardashevskiy
On 06/05/2015 02:25 PM, Bharata B Rao wrote: Reorganize CPU device tree generation code so that it be reused from hotplug path. CPU dt entries are now generated from spapr_finalize_fdt() instead of spapr_create_fdt_skel(). Note: This is how the split-up looks like now: Boot path -

[Qemu-devel] [Bug 1462131] Re: qemu mainline regression with xen-unstable: unable to start QMP

2015-06-05 Thread Fantu
** Changed in: qemu Status: New = Confirmed -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1462131 Title: qemu mainline regression with xen-unstable: unable to start QMP Status in QEMU:

Re: [Qemu-devel] [PATCH v4 1/8] spapr: Consider max_cpus during xics initialization

2015-06-05 Thread Alexey Kardashevskiy
On 06/05/2015 05:07 PM, Bharata B Rao wrote: On Fri, Jun 05, 2015 at 03:30:24PM +1000, Alexey Kardashevskiy wrote: On 06/05/2015 02:25 PM, Bharata B Rao wrote: Use max_cpus instead of smp_cpus when intializating xics system. Also report max_cpus in ibm,interrupt-server-ranges device tree

Re: [Qemu-devel] [PATCH v4 8/8] xics_kvm: Add cpu_destroy method to XICS

2015-06-05 Thread Alexey Kardashevskiy
On 06/05/2015 02:25 PM, Bharata B Rao wrote: XICS is setup for each CPU during initialization. Provide a routine to undo the same when CPU is unplugged. Also ensure xics reset doesn't set irq for CPUs that are already unplugged. This allows reboot of a VM that has undergone CPU hotplug and

[Qemu-devel] [v8][PATCH 02/10] pc_init1: pass parameters just with types

2015-06-05 Thread Tiejun Chen
Pass types to configure pc_init1(). Signed-off-by: Tiejun Chen tiejun.c...@intel.com --- hw/i386/pc_piix.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index c05b7c7..3e2fc04 100644 --- a/hw/i386/pc_piix.c +++

[Qemu-devel] [v8][PATCH 03/10] piix: create host bridge to passthrough

2015-06-05 Thread Tiejun Chen
Implement a pci host bridge specific to passthrough. Actually this just inherits the standard one. And we also just expose a minimal real host bridge pci configuration subset. Signed-off-by: Tiejun Chen tiejun.c...@intel.com --- hw/pci-host/piix.c | 82

[Qemu-devel] [v8][RESEND][PATCH 04/10] hw/pci-assign: split pci-assign.c

2015-06-05 Thread Tiejun Chen
We will try to reuse assign_dev_load_option_rom in xen side, and especially its a good beginning to unify pci assign codes both on kvm and xen in the future. Signed-off-by: Tiejun Chen tiejun.c...@intel.com --- hw/i386/Makefile.objs | 1 + hw/i386/kvm/pci-assign.c | 82

Re: [Qemu-devel] [PATCH] machine: Drop use of DEFAULT_RAM_SIZE in help text

2015-06-05 Thread Laurent Desnogues
On Fri, Jun 5, 2015 at 11:05 AM, Alexander Graf ag...@suse.de wrote: As of commit 076b35b5a (machine: add default_ram_size to machine class) we no longer have a global default ram size, but instead machine specific defaults. When invoking qemu --help we don't know which machine you selected,

[Qemu-devel] [PATCH v2] tcg/optimize: fold constant test in tcg_opt_gen_mov

2015-06-05 Thread Aurelien Jarno
Most of the calls to tcg_opt_gen_mov are preceeded by a test to check if the source temp is a constant. Fold that into the tcg_opt_gen_mov function. Cc: Richard Henderson r...@twiddle.net Signed-off-by: Aurelien Jarno aurel...@aurel32.net --- tcg/optimize.c | 89

Re: [Qemu-devel] [PATCH] target-mips: add ERETNC instruction and Config5.LLB bit

2015-06-05 Thread Aurelien Jarno
On 2015-06-04 17:00, Leon Alrae wrote: ERETNC is identical to ERET except that an ERETNC will not clear the LLbit that is set by execution of an LL instruction, and thus when placed between an LL and SC sequence, will never cause the SC to fail. Presence of ERETNC is denoted by the

Re: [Qemu-devel] [PULL 34/40] machine: add default_ram_size to machine class

2015-06-05 Thread Laurent Desnogues
Hello, On Wed, Jun 3, 2015 at 11:45 PM, Alexander Graf ag...@suse.de wrote: From: Nikunj A Dadhania nik...@linux.vnet.ibm.com Machines types can have different requirement for default ram size. Introduce a member in the machine class and set the current default_ram_size to 128MB. For

Re: [Qemu-devel] [PATCH v4 4/8] spapr: Reorganize CPU dt generation code

2015-06-05 Thread Alexey Kardashevskiy
On 06/05/2015 05:06 PM, Bharata B Rao wrote: On Fri, Jun 05, 2015 at 04:09:48PM +1000, Alexey Kardashevskiy wrote: -ret = fdt_setprop(fdt, offset, ibm,pft-size, - pft_size_prop, sizeof(pft_size_prop)); You broke formatting here, above 8 lines should not be in

[Qemu-devel] [v8][RESEND][PATCH 00/10] xen: add Intel IGD passthrough

2015-06-05 Thread Tiejun Chen
v8: * Rebase on the latest qemu tree * Cleanup one xen leftover in patch #3 v7: * Instead of -gfx_passthru we'd like to make that a machine option, -machine xxx,igd-passthru=on * try to make something as common shared by others like KvmGT in the future * Just read those real value from

[Qemu-devel] [v8][RESEND][PATCH 07/10] igd gfx passthrough: create a isa bridge

2015-06-05 Thread Tiejun Chen
Currently IGD drivers always need to access PCH by 1f.0. But we don't want to poke that directly to get ID, and although in real world different GPU should have different PCH. But actually the different PCH DIDs likely map to different PCH SKUs. We do the same thing for the GPU. For PCH, the

[Qemu-devel] [v8][RESEND][PATCH 09/10] xen, gfx passthrough: register host bridge specific to passthrough

2015-06-05 Thread Tiejun Chen
Just register that pci host bridge specific to passthrough. Signed-off-by: Tiejun Chen tiejun.c...@intel.com --- hw/i386/pc_piix.c | 27 +-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index 6054b5a..938b1be 100644

[Qemu-devel] [PATCH] machine: Drop use of DEFAULT_RAM_SIZE in help text

2015-06-05 Thread Alexander Graf
As of commit 076b35b5a (machine: add default_ram_size to machine class) we no longer have a global default ram size, but instead machine specific defaults. When invoking qemu --help we don't know which machine you selected, so we can't tell the user the default RAM size in the help text anymore

[Qemu-devel] [PATCH v2 1/9] target-microblaze: Rename the usefpu variable

2015-06-05 Thread Alistair Francis
Rename the usefpu variable to use_fpu. Signed-off-by: Alistair Francis alistair.fran...@xilinx.com --- target-microblaze/cpu-qom.h |2 +- target-microblaze/cpu.c |8 target-microblaze/translate.c |6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git

[Qemu-devel] [PATCH v2 0/9] Extend Microblaze Properties

2015-06-05 Thread Alistair Francis
This patch series extends the MicroBlaze properties that I have been working on. It applies on top of my original work: 'Add Microblaze configuration options'. This patch series converts various MicroBlaze PVR registers to properties. This then allows the individual Microblaze machine reset

Re: [Qemu-devel] [PATCH v16 0/9] KVM platform device passthrough

2015-06-05 Thread Eric Auger
Hi Alex, On 06/04/2015 08:11 PM, Alex Williamson wrote: On Wed, 2015-05-27 at 10:11 +0100, Eric Auger wrote: This series aims at enabling KVM platform device passthrough. On kernel side, the vfio platform driver is needed, available from 4.1-rc1 onwards. This series now only relies on the

Re: [Qemu-devel] [Bug 1462131] [NEW] qemu mainline regression with xen-unstable: unable to start QMP

2015-06-05 Thread Wen Congyang
On 06/05/2015 06:09 AM, Don Slutz wrote: Public bug reported: On 06/04/15 11:04, Fabio Fantoni wrote: Today after trying xen-unstable build (tested many hours) of some days ago I tried update qemu to latest development version (from git master commit

Re: [Qemu-devel] [v8][PATCH 00/10] xen: add Intel IGD passthrough

2015-06-05 Thread Chen, Tiejun
Sorry, just please ignore this series because looks some patches are not sent out. Tiejun On 2015/6/5 16:31, Tiejun Chen wrote: v8: * Rebase on the latest qemu tree * Cleanup one xen leftover in patch #3 v7: * Instead of -gfx_passthru we'd like to make that a machine option, -machine

Re: [Qemu-devel] [PATCH] machine: Drop use of DEFAULT_RAM_SIZE in help text

2015-06-05 Thread Nikunj A Dadhania
Alexander Graf ag...@suse.de writes: As of commit 076b35b5a (machine: add default_ram_size to machine class) we no longer have a global default ram size, but instead machine specific defaults. When invoking qemu --help we don't know which machine you selected, so we can't tell the user the

[Qemu-devel] [PULL 2/4] rocker: update tests using hw-derived interface names

2015-06-05 Thread Stefan Hajnoczi
From: Scott Feldman sfel...@gmail.com With previous patch to support phy name attribute for each port, the OS can name port interfaces using the hw-derived name. So update rocker tests to use the new hw-derived interface names. Signed-off-by: Scott Feldman sfel...@gmail.com Reviewed-by: Stefan

Re: [Qemu-devel] Announcing qboot, a minimal x86 firmware for QEMU

2015-06-05 Thread Stefan Hajnoczi
On Tue, May 26, 2015 at 9:47 AM, Stefan Hajnoczi stefa...@gmail.com wrote: On Fri, May 22, 2015 at 10:53:54AM +0800, Yong Wang wrote: On Thu, May 21, 2015 at 03:51:43PM +0200, Paolo Bonzini wrote: On the QEMU side, there is no support yet for persistent memory and the NFIT tables from ACPI

Re: [Qemu-devel] [PULL 4/5] gtk: add opengl support, using egl

2015-06-05 Thread Gerd Hoffmann
On Fr, 2015-06-05 at 12:20 +0200, Paolo Bonzini wrote: On 29/05/2015 12:07, Gerd Hoffmann wrote: This adds opengl rendering support to the gtk ui, using egl. It's off by default for now, use 'qemu -display gtk,gl=on' to play with this. Note that gtk got native opengl support with

Re: [Qemu-devel] [PATCH] xen/pass-through: fold host PCI command register writes

2015-06-05 Thread Stefano Stabellini
On Fri, 15 May 2015, Jan Beulich wrote: The code introduced to address XSA-126 allows simplification of other code in xen_pt_initfn(): All we need to do is update cmd suitably, as it'll be written back to the host register near the end of the function anyway. Signed-off-by: Jan Beulich

[Qemu-devel] [PATCH v4 6/6] hw/arm/virt: Connect the Hypervisor timer

2015-06-05 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- hw/arm/virt.c | 4 1 file changed, 4 insertions(+) diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 4fa2265..70678f7 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -407,6

Re: [Qemu-devel] [PULL 4/5] gtk: add opengl support, using egl

2015-06-05 Thread Gerd Hoffmann
This unfortunately breaks -device help if you do not have an X11 connection. gtk_init exits the program. Ah, *this* is where the libvirt breakage comes from. Was about to bisect that one, can stop now ;) Hmm, no, there seems to be more. Patch sent for the gtk breakage. cheers, Gerd

[Qemu-devel] [PULL 1/4] rocker: Add support for phys name

2015-06-05 Thread Stefan Hajnoczi
From: David Ahern dsah...@gmail.com v2: Review comment from Stefan Hajnoczi: - use private ROCKER_IFNAMSIZ = 16 to avoid breaking Windows build as Windows does not include net/if.h v1: Add ROCKER_TLV_CMD_PORT_SETTINGS_PHYS_NAME to port settings. This attribute exports the port name to the

Re: [Qemu-devel] [PATCH] xen/pass-through: ROM BAR handling adjustments

2015-06-05 Thread Jan Beulich
On 05.06.15 at 13:32, stefano.stabell...@eu.citrix.com wrote: --- a/hw/xen/xen_pt.c +++ b/hw/xen/xen_pt.c @@ -248,7 +248,9 @@ static void xen_pt_pci_write_config(PCID /* check unused BAR register */ index = xen_pt_bar_offset_to_index(addr); -if ((index = 0) (val 0 val

[Qemu-devel] [PULL 04/17] block: Fix dirty bitmap in bdrv_co_discard

2015-06-05 Thread Stefan Hajnoczi
From: Fam Zheng f...@redhat.com Unsetting dirty globally with discard is not very correct. The discard may zero out sectors (depending on can_write_zeroes_with_unmap), we should replicate this change to destination side to make sure that the guest sees the same data. Calling bdrv_reset_dirty

[Qemu-devel] [PATCH 5/6] xen/pass-through: log errno values rather than function return ones

2015-06-05 Thread Jan Beulich
Functions setting errno commonly return just -1, which is of no particular use in the log file. Signed-off-by: Jan Beulich jbeul...@suse.com --- a/qemu/upstream/hw/xen/xen_pt.c +++ b/qemu/upstream/hw/xen/xen_pt.c @@ -609,8 +609,8 @@ static void xen_pt_region_update(XenPCIP

[Qemu-devel] [PATCH 2/6] xen/MSI-X: drive maskall and enable bits through hypercalls

2015-06-05 Thread Jan Beulich
Particularly the maskall bit has to be under exclusive hypervisor control (and since they live in the same config space field, the enable bit has to follow suit). Use the replacement hypercall interfaces. Signed-off-by: Jan Beulich jbeul...@suse.com --- a/qemu/upstream/hw/xen/xen_pt.h +++

[Qemu-devel] [PULL 16/17] throttle: Update throttle infrastructure copyright

2015-06-05 Thread Stefan Hajnoczi
From: Alberto Garcia be...@igalia.com Signed-off-by: Alberto Garcia be...@igalia.com Reviewed-by: Stefan Hajnoczi stefa...@redhat.com Message-id: 44ae278a9fb498be955774a545009a854b404392.1432037840.git.be...@igalia.com Signed-off-by: Stefan Hajnoczi stefa...@redhat.com ---

[Qemu-devel] [PATCH 1/6] xen/MSI-X: latch MSI-X table writes

2015-06-05 Thread Jan Beulich
The remaining log message in pci_msix_write() is wrong, as there guest behavior may only appear to be wrong: For one, the old logic didn't take the mask-all bit into account. And then this shouldn't depend on host device state (i.e. the host may have masked the entry without the guest having done

[Qemu-devel] [PATCH 6/6] xen/pass-through: constify some static data

2015-06-05 Thread Jan Beulich
This is done indirectly by adjusting two typedefs and helps emphasizing that the respective tables aren't supposed to be modified at runtime (as they may be shared between devices). Signed-off-by: Jan Beulich jbeul...@suse.com --- a/qemu/upstream/hw/xen/xen_pt.h +++

Re: [Qemu-devel] [PATCH v5 01/10] qapi: Add transaction support to block-dirty-bitmap operations

2015-06-05 Thread Stefan Hajnoczi
On Thu, Jun 04, 2015 at 05:46:03PM -0400, John Snow wrote: This adds two qmp commands to transactions. block-dirty-bitmap-add allows you to create a bitmap simultaneously alongside a new full backup to accomplish a clean synchronization point. block-dirty-bitmap-clear allows you to reset

Re: [Qemu-devel] [PATCH v3 14/38] block: Move BlockAcctStats into BlockBackend

2015-06-05 Thread Alberto Garcia
On Wed 03 Jun 2015 10:52:34 PM CEST, Eric Blake wrote: As the comment above bdrv_get_stats() says, BlockAcctStats is something which belongs to the device instead of each BlockDriverState. This patch therefore moves it into the BlockBackend. Again, Berto may want to eventually report stats

Re: [Qemu-devel] [RFC PATCH v2] qapi for audio backends

2015-06-05 Thread Gerd Hoffmann
Hi, Plus currently only alsa an oss seem to care about this option, so even if we keep it, we should probably move it into alsa's and oss's backend options. Makes sense. Looks good to me as draft to start working with. I expect we'll find some details which need tweeking when

Re: [Qemu-devel] [Qemu-block] [PATCH v3 14/38] block: Move BlockAcctStats into BlockBackend

2015-06-05 Thread Alberto Garcia
On Wed 03 Jun 2015 09:43:55 PM CEST, Max Reitz wrote: As the comment above bdrv_get_stats() says, BlockAcctStats is something which belongs to the device instead of each BlockDriverState. This patch therefore moves it into the BlockBackend. Signed-off-by: Max Reitz mre...@redhat.com

[Qemu-devel] [PULL 11/17] throttle: Add throttle group infrastructure

2015-06-05 Thread Stefan Hajnoczi
From: Alberto Garcia be...@igalia.com Signed-off-by: Alberto Garcia be...@igalia.com Reviewed-by: Stefan Hajnoczi stefa...@redhat.com Message-id: 8b3b38890977b0a0363c6b82c4ee5545fcf0ba83.1432037840.git.be...@igalia.com Signed-off-by: Stefan Hajnoczi stefa...@redhat.com --- block/Makefile.objs

[Qemu-devel] [PULL 14/17] throttle: acquire the ThrottleGroup lock in bdrv_swap()

2015-06-05 Thread Stefan Hajnoczi
From: Alberto Garcia be...@igalia.com bdrv_swap() touches the fields of a BlockDriverState that are protected by the ThrottleGroup lock. Although those fields end up in their original place, they are temporarily swapped in the process, so there's a chance that an operation on a member of the same

[Qemu-devel] [PULL 05/17] block: Remove bdrv_reset_dirty

2015-06-05 Thread Stefan Hajnoczi
From: Fam Zheng f...@redhat.com Using this function would always be wrong because a dirty bitmap must have a specific owner that consumes the dirty bits and calls bdrv_reset_dirty_bitmap(). Remove the unused function to avoid future misuse. Reviewed-by: Eric Blake ebl...@redhat.com

[Qemu-devel] [PULL 07/17] qemu-iotests: Add test case for mirror with unmap

2015-06-05 Thread Stefan Hajnoczi
From: Fam Zheng f...@redhat.com This checks that the discard on mirror source that effectively zeroes data is also reflected by the data of target. Signed-off-by: Fam Zheng f...@redhat.com Reviewed-by: John Snow js...@redhat.com Reviewed-by: Paolo Bonzini pbonz...@redhat.com Message-id:

Re: [Qemu-devel] [PULL 00/34] s390 patch queue 2015-06-05

2015-06-05 Thread Peter Maydell
On 5 June 2015 at 00:41, Alexander Graf ag...@suse.de wrote: Hi Peter, This is my current patch queue for s390. Please pull. Alex The following changes since commit 3b730f570c5872ceea2137848f1d4554d4847441: Merge remote-tracking branch 'remotes/agraf/tags/signed-ppc-for-upstream'

Re: [Qemu-devel] [Qemu-block] [PATCH v3 03/38] iotests: Only create BB if necessary

2015-06-05 Thread Alberto Garcia
On Wed 03 Jun 2015 09:43:44 PM CEST, Max Reitz mre...@redhat.com wrote: Tests 071 and 081 test giving references in blockdev-add. It is not necessary to create a BlockBackend here, so omit it. Signed-off-by: Max Reitz mre...@redhat.com Reviewed-by: Eric Blake ebl...@redhat.com Reviewed-by:

Re: [Qemu-devel] [Xen-devel] qemu mainline regression with xen-unstable: unable to start QMP

2015-06-05 Thread Stefano Stabellini
On Thu, 4 Jun 2015, Don Slutz wrote: - Topal: Output generated on Fri Jun 5 11:09:19 BST 2015 - Topal: GPG output starts - gpg: Signature made Thu 04 Jun 2015 23:20:41 BST using RSA key ID F1ABD29C gpg: Can't check signature: public key not found - Topal: GPG output ends

Re: [Qemu-devel] [Qemu-block] [PATCH v3 13/38] block: Remove wr_highest_sector from BlockAcctStats

2015-06-05 Thread Alberto Garcia
On Wed 03 Jun 2015 09:43:54 PM CEST, Max Reitz wrote: BlockAcctStats contains statistics about the data transferred from and to the device; wr_highest_sector does not fit in with the rest. Furthermore, those statistics are supposed to be specific for a certain device and not necessarily for a

[Qemu-devel] [PULL 4/4] qmp/hmp: add rocker device support

2015-06-05 Thread Stefan Hajnoczi
From: Scott Feldman sfel...@gmail.com v3: Address review comments from Stefan Hajnoczi: - Add missing hw/net/rocker/qmp-norocker.c file. - Add missing curly brackets to a for loop v2: Address review comments from Stefan Hajnoczi: - Add missing qapi/rocker.json file. - Use PRIx64 for

[Qemu-devel] [PATCH v4 2/6] target-arm: Add CNTHCTL_EL2

2015-06-05 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com Adds control for trapping selected timer and counter accesses to EL2. Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/cpu.h| 1 + target-arm/helper.c | 30 -- 2 files changed, 29

[Qemu-devel] [PATCH v4 1/6] target-arm: Add CNTVOFF_EL2

2015-06-05 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com Adds support for the virtual timer offset controlled by EL2. Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/cpu.h| 1 + target-arm/helper.c | 58 ++--- 2 files

Re: [Qemu-devel] [Xen-devel] qemu mainline regression with xen-unstable: unable to start QMP

2015-06-05 Thread Fabio Fantoni
Il 05/06/2015 00:20, Don Slutz ha scritto: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/04/15 18:10, Eric Blake wrote: [adding Markus, as author of the regression] On 06/04/2015 03:59 PM, Don Slutz wrote: On 06/04/15 11:04, Fabio Fantoni wrote: Today after trying xen-unstable build

[Qemu-devel] [PULL 12/17] throttle: Add throttle group infrastructure tests

2015-06-05 Thread Stefan Hajnoczi
From: Alberto Garcia be...@igalia.com Signed-off-by: Alberto Garcia be...@igalia.com Reviewed-by: Stefan Hajnoczi stefa...@redhat.com Message-id: 863922756a1f0d94f697d3ed67bc7c1e4bac3eb0.1432037840.git.be...@igalia.com Signed-off-by: Stefan Hajnoczi stefa...@redhat.com --- tests/test-throttle.c

[Qemu-devel] [PULL 03/17] mirror: Do zero write on target if sectors not allocated

2015-06-05 Thread Stefan Hajnoczi
From: Fam Zheng f...@redhat.com If guest discards a source cluster, mirroring with bdrv_aio_readv is overkill. Some protocols do zero upon discard, where it's best to use bdrv_aio_write_zeroes, otherwise, bdrv_aio_discard will be enough. Signed-off-by: Fam Zheng f...@redhat.com Reviewed-by:

[Qemu-devel] [PULL 0/4] Net patches

2015-06-05 Thread Stefan Hajnoczi
The following changes since commit 3b730f570c5872ceea2137848f1d4554d4847441: Merge remote-tracking branch 'remotes/agraf/tags/signed-ppc-for-upstream' into staging (2015-06-04 14:04:14 +0100) are available in the git repository at: git://github.com/stefanha/qemu.git tags/net-pull-request

[Qemu-devel] [PATCH v4 0/6] arm: Steps towards EL2 support round 3

2015-06-05 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com Hi, This is what is left of round 3 of our series towards support for EL2 for AArch64. Comments welcome! Best regards, Edgar v3 - v4: * Add comment clarifing the unsigned/signed timer hit arithmetics * Replace GIC magic constants with macros *

Re: [Qemu-devel] [Xen-devel] qemu mainline regression with xen-unstable: unable to start QMP

2015-06-05 Thread Paolo Bonzini
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 05/06/2015 12:11, Stefano Stabellini wrote: Hopefully I will get to a change to Xen. However getting the Xen change back-ported to enough version(s) will not be quick... Yeah, this is basically an ABI breakage. We have been trying to

[Qemu-devel] [PATCH v4 3/6] target-arm: Pass timeridx as argument to various timer functions

2015-06-05 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com Prepare for adding the Hypervisor timer, no functional change. Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/helper.c | 98 + 1 file changed, 76 insertions(+), 22

Re: [Qemu-devel] [PATCH] xen/pass-through: ROM BAR handling adjustments

2015-06-05 Thread Stefano Stabellini
On Fri, 15 May 2015, Jan Beulich wrote: Expecting the ROM BAR to be written with an all ones value when sizing the region is wrong - the low bit has another meaning (enable/disable) and bits 1..10 are reserved. The PCI spec also mandates writing all ones to just the address portion of the

[Qemu-devel] [PULL 08/17] iotests: Use event_wait in wait_ready

2015-06-05 Thread Stefan Hajnoczi
From: Fam Zheng f...@redhat.com Only poll the specific type of event we are interested in, to avoid stealing events that should be consumed by someone else. Suggested-by: John Snow js...@redhat.com Signed-off-by: Fam Zheng f...@redhat.com Reviewed-by: John Snow js...@redhat.com Reviewed-by:

[Qemu-devel] [PULL 06/17] qemu-iotests: Make block job methods common

2015-06-05 Thread Stefan Hajnoczi
From: Fam Zheng f...@redhat.com Signed-off-by: Fam Zheng f...@redhat.com Reviewed-by: John Snow js...@redhat.com Reviewed-by: Paolo Bonzini pbonz...@redhat.com Message-id: 1432790990-25383-7-git-send-email-f...@redhat.com Signed-off-by: Stefan Hajnoczi stefa...@redhat.com ---

[Qemu-devel] [PULL 10/17] throttle: Extract timers from ThrottleState into a separate structure

2015-06-05 Thread Stefan Hajnoczi
From: BenoƮt Canet benoit.ca...@nodalink.com Group throttling will share ThrottleState between multiple bs. As a consequence the ThrottleState will be accessed by multiple aio context. Timers are tied to their aio context so they must go out of the ThrottleState structure. This commit paves the

[Qemu-devel] [PULL 17/17] qemu-iotests: expand test 093 to support group throttling

2015-06-05 Thread Stefan Hajnoczi
From: Alberto Garcia be...@igalia.com This patch improves the test by attaching a different number of drives to the VM and putting them in the same throttling group. The test verifies that the I/O is evenly distributed among all members of the group, and that the limits are enforced. By default

[Qemu-devel] [PATCH 3/6] xen/MSI-X: really enforce alignment

2015-06-05 Thread Jan Beulich
The way the generic infrastructure works the intention of not allowing unaligned accesses can't be achieved by simply setting .unaligned to false. The benefit is that we can now replace the conditionals in {get,set}_entry_value() by assert()-s. Signed-off-by: Jan Beulich jbeul...@suse.com ---

[Qemu-devel] Adding new migration-parameters - any easier way?

2015-06-05 Thread Dr. David Alan Gilbert
Hi, Is there any way that we could make it easier to add new migration parameters? The current way is complicated and error prone; as far as I can tell, to add a new parameter we need to: 1) qapi-schema.json a) Add to 'MigrationParameter' enum, include comment b) Add to

Re: [Qemu-devel] [Bug 1462131] Re: qemu mainline regression with xen-unstable: unable to start QMP

2015-06-05 Thread Paolo Bonzini
On 05/06/2015 00:15, Don Slutz wrote: QMP also uses id, but apparently removes it up front before calling into this function; so another fix would be having xen remove it up front. No, we don't break users. This patch fixes Xen but not virt-test, which relies on ids. It greps the QMP output

Re: [Qemu-devel] [Xen-devel] qemu mainline regression with xen-unstable: unable to start QMP

2015-06-05 Thread Stefano Stabellini
On Fri, 5 Jun 2015, Paolo Bonzini wrote: - Topal: Using cache file `/home/sstabellini/.topal/cache/c86c5929de7d6c8599f3cb59b3e02e5b'- - Topal: Output generated on Fri Jun 5 11:25:25 BST 2015 - Topal: GPG output starts - gpg: Signature made Fri 05 Jun 2015 11:25:03 BST

Re: [Qemu-devel] Adding new migration-parameters - any easier way?

2015-06-05 Thread Dr. David Alan Gilbert
* Dr. David Alan Gilbert (dgilb...@redhat.com) wrote: Hi, Is there any way that we could make it easier to add new migration parameters? The current way is complicated and error prone; as far as I can tell, to add a new parameter we need to: 1) qapi-schema.json a) Add to

[Qemu-devel] [PATCH v4 4/6] target-arm: Add the Hypervisor timer

2015-06-05 Thread Edgar E. Iglesias
From: Edgar E. Iglesias edgar.igles...@xilinx.com Signed-off-by: Edgar E. Iglesias edgar.igles...@xilinx.com --- target-arm/cpu-qom.h | 1 + target-arm/cpu.c | 2 ++ target-arm/cpu.h | 3 ++- target-arm/helper.c | 64 4 files

Re: [Qemu-devel] [Qemu-block] [PATCH v3 02/38] blockdev: Allow creation of BDS trees without BB

2015-06-05 Thread Alberto Garcia
On Wed 03 Jun 2015 09:43:43 PM CEST, Max Reitz wrote: If the id field is missing from the options given to blockdev-add, just omit the BlockBackend and create the BlockDriverState tree alone. However, if id is missing, node-name must be specified; otherwise, the BDS tree would no longer be

Re: [Qemu-devel] [PULL 00/28] pc, acpi, virtio, tpm

2015-06-05 Thread Peter Maydell
On 4 June 2015 at 12:10, Michael S. Tsirkin m...@redhat.com wrote: Sending earlier than usual because the suspend states patches block Paolo. The following changes since commit b821cbe274c5a5cacf1a7b28360d869ae1e6e0c3: Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into

[Qemu-devel] OpenBSD sched_yield() calls increase

2015-06-05 Thread Sai Prajeeth
Hi list, When running OpenBSD on QEMU without KVM, I see an increase in the number of sched_yield() system calls in certain multi-threaded benchmarks (sysbench). However while using KVM accelerator, the number of this system calls is minimal. Does any have any insight why this is happening? The

Re: [Qemu-devel] [PATCH] gtk: don't exit early in case gtk init fails

2015-06-05 Thread Daniel P. Berrange
On Fri, Jun 05, 2015 at 01:08:09PM +0200, Gerd Hoffmann wrote: Signed-off-by: Gerd Hoffmann kra...@redhat.com --- ui/gtk.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) Reviewed-by: Daniel P. Berrange berra...@redhat.com Regards, Daniel -- |: http://berrange.com

[Qemu-devel] [PULL 02/17] qmp: Add optional bool unmap to drive-mirror

2015-06-05 Thread Stefan Hajnoczi
From: Fam Zheng f...@redhat.com If specified as true, it allows discarding on target sectors where source is not allocated. Signed-off-by: Fam Zheng f...@redhat.com Reviewed-by: Paolo Bonzini pbonz...@redhat.com Message-id: 1432790990-25383-3-git-send-email-f...@redhat.com Signed-off-by: Stefan

[Qemu-devel] [PULL 01/17] block: Add bdrv_get_block_status_above

2015-06-05 Thread Stefan Hajnoczi
From: Fam Zheng f...@redhat.com Like bdrv_is_allocated_above, this function follows the backing chain until seeing BDRV_BLOCK_ALLOCATED. Base is not included. Reimplement bdrv_get_block_status on top. [s/bdrv_is_allocated/bdrv_get_block_status/ in commit message as suggested by Paolo.

[Qemu-devel] [PULL 09/17] Revert iothread: release iothread around aio_poll

2015-06-05 Thread Stefan Hajnoczi
This reverts commit a0710f7995f914e3044e5899bd8ff6c43c62f916. In qemu-devel email message 556dbf87.2020...@de.ibm.com, Christian Borntraeger writes: Having many guests all with a kernel/ramdisk (via -kernel) and several null block devices will result in hangs. All hanging guests are in

  1   2   3   4   >