Re: [Qemu-devel] [v2][PATCH 4/8] xen, gfx passthrough: reserve 00:02.0 for INTEL IGD

2014-05-21 Thread Chen, Tiejun
> -Original Message- > From: Gerd Hoffmann [mailto:kra...@redhat.com] > Sent: Monday, May 19, 2014 9:51 PM > To: Chen, Tiejun > Cc: anthony.per...@citrix.com; stefano.stabell...@eu.citrix.com; > m...@redhat.com; kelly.zyta...@amd.com; peter.mayd...@linaro.org; > xen-de...@lists.xensource.co

Re: [Qemu-devel] [RFC PATCH v2 0/7] qapi: Specify default value for optional argument in schema json

2014-05-21 Thread Fam Zheng
On Wed, 05/21 07:54, Markus Armbruster wrote: > Fam Zheng writes: > > > On Tue, 05/20 13:13, Eric Blake wrote: > >> On 05/20/2014 03:07 AM, Fam Zheng wrote: > >> > Please first take a look at patch 7 to see what is supported by this > >> > series. > >> > > >> > Patch 1 ~ 3 allows some useful ba

[Qemu-devel] [Bug 1320030] Re: Qemu 2.0.0 with display=gtk hangs

2014-05-21 Thread tadawson
Testing on other systems reveals that this is solid on Slackware14.1, with it's associated libraries. Interestingly, the more heavily the machine is loaded, the further the emulator runs prior to hanging . . . The 1.7.1 code, compiled on an older Slackware (loosely based on 12, but has evolved, bu

Re: [Qemu-devel] [PATCH 4/9] target-ppc: Implement "compat" CPU option

2014-05-21 Thread Alexander Graf
On 21.05.14 08:57, Alexey Kardashevskiy wrote: On 05/17/2014 06:47 AM, Alexander Graf wrote: On 16.05.14 17:17, Alexey Kardashevskiy wrote: On 05/17/2014 12:05 AM, Alexander Graf wrote: On 15.05.14 13:28, Alexey Kardashevskiy wrote: This adds basic support for the "compat" CPU option. By spe

Re: [Qemu-devel] [PATCH v2 06/31] pc: create custom generic PC machine type

2014-05-21 Thread Igor Mammedov
On Tue, 20 May 2014 18:55:32 +0300 Marcel Apfelbaum wrote: > On Tue, 2014-05-20 at 17:15 +0200, Igor Mammedov wrote: > > it will be used for PC specific options/variables > > > > Signed-off-by: Igor Mammedov > > --- > > hw/i386/pc.c | 57 > > +

[Qemu-devel] [RFC] How to deal with the conflict between DE keymap and qemu console ?

2014-05-21 Thread Gonglei (Arei)
Hi, Gerd The issues has been reported a few months ago. The previous mail: https://lists.gnu.org/archive/html/qemu-devel/2014-01/msg01600.html Any ideas? Thanks! Best regards, -Gonglei

Re: [Qemu-devel] [PATCH v4 1/4] vl.c: extend -m option to support options for memory hotplug

2014-05-21 Thread Igor Mammedov
On Tue, 20 May 2014 12:26:25 -0400 Matthew Rosato wrote: > From: Igor Mammedov > > From: Igor Mammedov > > Add following parameters: > "slots" - total number of hotplug memory slots > "maxmem" - maximum possible memory > > "slots" and "maxmem" should go in pair and "maxmem" should be gre

Re: [Qemu-devel] [RFC PATCH v2 0/7] qapi: Specify default value for optional argument in schema json

2014-05-21 Thread Markus Armbruster
Fam Zheng writes: > On Wed, 05/21 07:54, Markus Armbruster wrote: >> Fam Zheng writes: >> >> > On Tue, 05/20 13:13, Eric Blake wrote: >> >> On 05/20/2014 03:07 AM, Fam Zheng wrote: >> >> > Please first take a look at patch 7 to see what is supported by this >> >> > series. >> >> > >> >> > Pat

Re: [Qemu-devel] [PATCH v4 2/4] sclp-s390: Add device to manage s390 memory hotplug

2014-05-21 Thread Igor Mammedov
On Tue, 20 May 2014 12:26:26 -0400 Matthew Rosato wrote: > Add sclpMemoryHotplugDev to contain associated data structures, etc. > > Signed-off-by: Matthew Rosato > --- > hw/s390x/sclp.c | 38 ++ > include/hw/s390x/sclp.h | 20

Re: [Qemu-devel] [PATCH v3] Add remove_boot_device_path() function for hot-unplug device

2014-05-21 Thread Jun Li
Hi Andreas, On 05/19/2014 11:31 PM, Andreas Färber wrote: Hi, Am 19.05.2014 17:03, schrieb Jun Li: Add remove_boot_device_path() function to remove bootindex when hot-unplug a device. This patch fixed virtio-blk/virtio-net/scsi-disk/scsi-generic device. Signed-off-by: Jun Li --- This patch

Re: [Qemu-devel] fpu/softfloat.c licensing

2014-05-21 Thread Paolo Bonzini
Il 21/05/2014 05:54, Alexey Kardashevskiy ha scritto: Hi! We recently discovered that not entire QEMU is GPL2-compatible, the fpu emulation has a different license (copied below) which might create legal problems because of that "INDEMNIFY" statement. Does anyone else care (except IBM)? What w

Re: [Qemu-devel] fpu/softfloat.c licensing

2014-05-21 Thread Alexander Graf
On 21.05.14 09:51, Paolo Bonzini wrote: Il 21/05/2014 05:54, Alexey Kardashevskiy ha scritto: Hi! We recently discovered that not entire QEMU is GPL2-compatible, the fpu emulation has a different license (copied below) which might create legal problems because of that "INDEMNIFY" statement.

Re: [Qemu-devel] [PATCH v2 30/31] pc: ACPI BIOS: reserve SRAT entry for hotplug mem hole

2014-05-21 Thread Igor Mammedov
On Tue, 20 May 2014 18:38:15 +0300 "Michael S. Tsirkin" wrote: > On Tue, May 20, 2014 at 05:15:33PM +0200, Igor Mammedov wrote: > > Needed for Windows to use hotplugged memory device, otherwise > > it complains that server is not configured for memory hotplug. > > Tests shows that aftewards it us

Re: [Qemu-devel] [PATCH 4/9] target-ppc: Implement "compat" CPU option

2014-05-21 Thread Alexey Kardashevskiy
On 05/21/2014 05:29 PM, Alexander Graf wrote: > > On 21.05.14 08:57, Alexey Kardashevskiy wrote: >> On 05/17/2014 06:47 AM, Alexander Graf wrote: >>> On 16.05.14 17:17, Alexey Kardashevskiy wrote: On 05/17/2014 12:05 AM, Alexander Graf wrote: > On 15.05.14 13:28, Alexey Kardashevskiy wrot

Re: [Qemu-devel] [PATCH 4/9] target-ppc: Implement "compat" CPU option

2014-05-21 Thread Alexander Graf
On 21.05.14 09:59, Alexey Kardashevskiy wrote: On 05/21/2014 05:29 PM, Alexander Graf wrote: On 21.05.14 08:57, Alexey Kardashevskiy wrote: On 05/17/2014 06:47 AM, Alexander Graf wrote: On 16.05.14 17:17, Alexey Kardashevskiy wrote: On 05/17/2014 12:05 AM, Alexander Graf wrote: On 15.05.14

Re: [Qemu-devel] [PATCH v2 30/31] pc: ACPI BIOS: reserve SRAT entry for hotplug mem hole

2014-05-21 Thread Michael S. Tsirkin
On Wed, May 21, 2014 at 09:56:13AM +0200, Igor Mammedov wrote: > On Tue, 20 May 2014 18:38:15 +0300 > "Michael S. Tsirkin" wrote: > > > On Tue, May 20, 2014 at 05:15:33PM +0200, Igor Mammedov wrote: > > > Needed for Windows to use hotplugged memory device, otherwise > > > it complains that server

Re: [Qemu-devel] [PATCH 1/2] arch_init: replace fprintf(stderr, ...) with error_report()

2014-05-21 Thread Andreas Färber
Am 21.05.2014 02:10, schrieb Le Tan: > Replace fprintf(stderr,...) with error_report() in the file > arch_init.c. The trailing "\n"s of the @fmt argument have been removed > because @fmt of error_report() should not contain newline. > > Signed-off-by: Le Tan > --- > arch_init.c | 32 ++

Re: [Qemu-devel] [PATCH v2 30/31] pc: ACPI BIOS: reserve SRAT entry for hotplug mem hole

2014-05-21 Thread Michael S. Tsirkin
On Tue, May 20, 2014 at 05:15:33PM +0200, Igor Mammedov wrote: > Needed for Windows to use hotplugged memory device, otherwise > it complains that server is not configured for memory hotplug. > Tests shows that aftewards it uses dynamically provided > proximity value from _PXM() method if available

Re: [Qemu-devel] [PATCH 4/9] target-ppc: Implement "compat" CPU option

2014-05-21 Thread Alexey Kardashevskiy
On 05/21/2014 06:00 PM, Alexander Graf wrote: > > On 21.05.14 09:59, Alexey Kardashevskiy wrote: >> On 05/21/2014 05:29 PM, Alexander Graf wrote: >>> On 21.05.14 08:57, Alexey Kardashevskiy wrote: On 05/17/2014 06:47 AM, Alexander Graf wrote: > On 16.05.14 17:17, Alexey Kardashevskiy wrot

Re: [Qemu-devel] [PATCH v2 05/31] vl.c: extend -m option to support options for memory hotplug

2014-05-21 Thread Michael S. Tsirkin
On Tue, May 20, 2014 at 05:15:08PM +0200, Igor Mammedov wrote: > Add following parameters: > "slots" - total number of hotplug memory slots > "maxmem" - maximum possible memory > > "slots" and "maxmem" should go in pair and "maxmem" should be greater > than "mem" for memory hotplug to be enabl

Re: [Qemu-devel] [PATCH v3] Add remove_boot_device_path() function for hot-unplug device

2014-05-21 Thread Andreas Färber
Am 19.05.2014 17:57, schrieb Michael S. Tsirkin: > On Mon, May 19, 2014 at 05:31:43PM +0200, Andreas Färber wrote: >> Hi, >> >> Am 19.05.2014 17:03, schrieb Jun Li: >>> Add remove_boot_device_path() function to remove bootindex when hot-unplug >>> a device. This patch fixed virtio-blk/virtio-net/sc

[Qemu-devel] [RFC PATCH] trace: Replace error with warning if event is not defined

2014-05-21 Thread Alexey Kardashevskiy
At the moment QEMU exits if trace point is not defined which makes a developer life harder if he has to switch between branches with different traces implemented. This replaces error+exit wit WARNING if the tracepoint does not exist or not traceable. Signed-off-by: Alexey Kardashevskiy --- Tha

Re: [Qemu-devel] [RFC PATCH v2 0/7] qapi: Specify default value for optional argument in schema json

2014-05-21 Thread Kevin Wolf
Am 21.05.2014 um 09:46 hat Markus Armbruster geschrieben: > Fam Zheng writes: > > > On Wed, 05/21 07:54, Markus Armbruster wrote: > >> Fam Zheng writes: > >> > >> > On Tue, 05/20 13:13, Eric Blake wrote: > >> >> On 05/20/2014 03:07 AM, Fam Zheng wrote: > >> >> > Please first take a look at patc

Re: [Qemu-devel] [PATCH v2 05/31] vl.c: extend -m option to support options for memory hotplug

2014-05-21 Thread Andrey Korolyov
On Wed, May 21, 2014 at 12:10 PM, Michael S. Tsirkin wrote: > On Tue, May 20, 2014 at 05:15:08PM +0200, Igor Mammedov wrote: >> Add following parameters: >> "slots" - total number of hotplug memory slots >> "maxmem" - maximum possible memory >> >> "slots" and "maxmem" should go in pair and "ma

Re: [Qemu-devel] [PATCH v2 05/31] vl.c: extend -m option to support options for memory hotplug

2014-05-21 Thread Igor Mammedov
On Wed, 21 May 2014 11:10:28 +0300 "Michael S. Tsirkin" wrote: > On Tue, May 20, 2014 at 05:15:08PM +0200, Igor Mammedov wrote: > > Add following parameters: > > "slots" - total number of hotplug memory slots > > "maxmem" - maximum possible memory > > > > "slots" and "maxmem" should go in pa

[Qemu-devel] [PATCH v2 6/9] spapr: Rework spapr_fixup_cpu_dt()

2014-05-21 Thread Alexey Kardashevskiy
In PPC code we usually use the "cs" name for a CPUState* variables and "cpu" for PowerPCCPU. So let's change spapr_fixup_cpu_dt() to use same rules as spapr_create_fdt_skel() does. This adds missing nodes creation if they do not already exist in the current device tree, this is going to be used fr

[Qemu-devel] [PATCH v2 4/9] target-ppc: Define Processor Compatibility Masks

2014-05-21 Thread Alexey Kardashevskiy
This introduces PCR mask for supported compatibility modes. This will be used later by the ibm,client-architecture-support call. Signed-off-by: Alexey Kardashevskiy --- target-ppc/cpu-qom.h| 1 + target-ppc/translate_init.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/target-p

[Qemu-devel] [PATCH v2 0/9] spapr: Enable ibm, client-architecture-support

2014-05-21 Thread Alexey Kardashevskiy
This enables a ibm,client-architecture-support RTAS call. This allows older distros (such as SLES11 or RHEL6) to work on modern POWERPC hardware (such as POWER8) in "architected" mode. There is no change log as the changes are mostly about readbility, code design style and commit logs. Please co

[Qemu-devel] [PATCH v2 2/9] spapr: Move SMT-related properties out of skeleton fdt

2014-05-21 Thread Alexey Kardashevskiy
The upcoming support of the "ibm,client-architecture-support" reconfiguration call will be able to change dynamically the number of threads per core (SMT mode). From the device tree prospective this does not change the number of CPU nodes (as it is one node per a CPU core) but affects content and s

[Qemu-devel] [PATCH v2 5/9] spapr: Add ibm, client-architecture-support call

2014-05-21 Thread Alexey Kardashevskiy
The PAPR+ specification defines a ibm,client-architecture-support (CAS) RTAS call which purpose is to provide a negotiation mechanism for the guest and the hypervisor to work out the best compatibility parameters. During the negotiation process, the guest provides an array of various options and ca

[Qemu-devel] [PATCH v2 3/9] target-ppc: Implement "compat" CPU option

2014-05-21 Thread Alexey Kardashevskiy
This adds basic support for the "compat" CPU option. By specifying the compat property, the user can manually switch guest CPU mode from "raw" to "architected". This defines feature disable bits which are not used yet as, for example, PowerISA 2.07 says if 2.06 mode is selected, the TM bit does no

[Qemu-devel] [PATCH v2 9/9] KVM: PPC: Enable compatibility mode

2014-05-21 Thread Alexey Kardashevskiy
The host kernel implements a KVM_REG_PPC_ARCH_COMPAT register which this uses to enable a compatibility mode if any chosen. This sets the KVM_REG_PPC_ARCH_COMPAT register in KVM. ppc_set_compat() signals the caller if the mode cannot be enabled by the host kernel. Signed-off-by: Alexey Kardashevs

[Qemu-devel] [PATCH v2 8/9] spapr: Implement processor compatibility in ibm, client-architecture-support

2014-05-21 Thread Alexey Kardashevskiy
Modern Linux kernels support last POWERPC CPUs so when a kernel boots, in most cases it can find a matching cpu_spec in the kernel's cpu_specs list. However if the kernel is quite old, it may be missing a definition of the actual CPU. To provide an ability for old kernels to work on modern hardware

[Qemu-devel] [PATCH v2 7/9] spapr: Limit threads per core according to current compatibility mode

2014-05-21 Thread Alexey Kardashevskiy
This puts a limit to the number of threads per core based on the current compatibility mode. Although PowerISA specs do not specify the maximum threads per core number, the linux guest still expects that PowerISA2.05-compatible CPU supports only 2 threads per core as this is what POWER6 (2.05 compl

Re: [Qemu-devel] [PATCH v2 4/8] spapr: Move interrupt allocator to xics

2014-05-21 Thread Alexander Graf
On 15.05.14 11:59, Alexey Kardashevskiy wrote: The current allocator returns IRQ numbers from a pool and does not support IRQs reuse in any form as it did not keep track of what it previously returned, it only keeps the last returned IRQ. Some use cases such as PCI hot(un)plug may require IRQ re

Re: [Qemu-devel] [PATCH 6/6] docs: add multiseat.txt

2014-05-21 Thread Gerd Hoffmann
On Di, 2014-05-20 at 20:08 +0200, Paolo Bonzini wrote: > Il 20/05/2014 16:00, Gerd Hoffmann ha scritto: > > + -device pci-bridge,addr=12.0,chassis_nr=2,id=head.2 \ > > + -device secondary-vga,bus=head.2,addr=02.0,id=video.2 \ > > + -device nec-usb-xhci,bus=head.2,addr=0f.0,id=usb.2 \ > > +

Re: [Qemu-devel] [PATCH v2 8/8] spapr_pci: Use XICS interrupt allocator and do not cache interrupts in PHB

2014-05-21 Thread Alexander Graf
On 15.05.14 11:59, Alexey Kardashevskiy wrote: Currently SPAPR PHB keeps track of all allocated MSI/MISX interrupt as XICS used to be unable to reuse interrupts which becomes a problem for dynamic MSI reconfiguration which is happening on guest driver reload or PCI hot (un)plug. Another problem

Re: [Qemu-devel] [PATCH] e1000: allow command-line selection of card model

2014-05-21 Thread Andreas Färber
Hi, Am 20.05.2014 17:05, schrieb Gabriel L. Somlo: > Allow selection of different card models from the qemu > command line, to better accomodate a wider range of guests. > > Based-on-patch-by: Romain Dolbeau If that patch carried a Signed-off-by line, you should retain it. Your From: line alrea

Re: [Qemu-devel] [PATCH v2 1/8] xics: Add flags for interrupts

2014-05-21 Thread Alexander Graf
On 21.05.14 08:30, Alexey Kardashevskiy wrote: On 05/15/2014 07:59 PM, Alexey Kardashevskiy wrote: The existing interrupt allocation scheme in SPAPR assumes that interrupts are allocated at the start time, continously and the config will not change. However, there are cases when this is not goi

Re: [Qemu-devel] [RFC PATCH v2 0/7] qapi: Specify default value for optional argument in schema json

2014-05-21 Thread Fam Zheng
On Wed, 05/21 10:23, Kevin Wolf wrote: > Am 21.05.2014 um 09:46 hat Markus Armbruster geschrieben: > > Fam Zheng writes: > > > > > On Wed, 05/21 07:54, Markus Armbruster wrote: > > >> Fam Zheng writes: > > >> > > >> > On Tue, 05/20 13:13, Eric Blake wrote: > > >> >> On 05/20/2014 03:07 AM, Fam

Re: [Qemu-devel] fpu/softfloat.c licensing

2014-05-21 Thread Alexey Kardashevskiy
On 05/21/2014 05:51 PM, Paolo Bonzini wrote: > Il 21/05/2014 05:54, Alexey Kardashevskiy ha scritto: >> Hi! >> >> We recently discovered that not entire QEMU is GPL2-compatible, the fpu >> emulation has a different license (copied below) which might create legal >> problems because of that "INDEMNI

[Qemu-devel] [PATCH 09/25] gtk: use device type as label

2014-05-21 Thread Gerd Hoffmann
IMO useful than showing VGA for any graphic device even in case it is something completely different. Signed-off-by: Gerd Hoffmann --- ui/gtk.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/ui/gtk.c b/ui/gtk.c index 0756432..a8393dd 100644 --- a/ui/gtk.c +++

[Qemu-devel] [PATCH 15/25] gtk: skip keyboard grab when hover autograb is active

2014-05-21 Thread Gerd Hoffmann
It's pointless. With grab on hover enabled the keyboard grab is already active when you press Ctrl-Alt-G ;) Signed-off-by: Gerd Hoffmann --- ui/gtk.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/gtk.c b/ui/gtk.c index d87bd1b..f804813 100644 --- a/ui/gtk.c +++ b/ui/

[Qemu-devel] [PATCH 08/25] gtk: support multiple gfx displays

2014-05-21 Thread Gerd Hoffmann
Each display gets its own tab. Tab switching continues to work like it did, just the hotkeys of the vte consoles changes in case a secondary display is present as it will get ctrl-alt-2 assigned and the vtes are shifted by one. Signed-off-by: Gerd Hoffmann --- ui/gtk.c | 80

[Qemu-devel] [PATCH 18/25] gtk: update all windows on mouse mode changes

2014-05-21 Thread Gerd Hoffmann
We might have multiple graphic displays now which all need a cursor update. Signed-off-by: Gerd Hoffmann --- ui/gtk.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/gtk.c b/ui/gtk.c index 91b6824..8215841 100644 --- a/ui/gtk.c +++ b/ui/gtk.c @@ -553,6 +553,7 @@ stati

[Qemu-devel] [PATCH 14/25] gtk: keep track of grab owner

2014-05-21 Thread Gerd Hoffmann
Simplifies grab state tracking and makes ungrab more reliable. Signed-off-by: Gerd Hoffmann --- ui/gtk.c | 28 +++- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/ui/gtk.c b/ui/gtk.c index 0e35abf..d87bd1b 100644 --- a/ui/gtk.c +++ b/ui/gtk.c @@ -185,6 +18

[Qemu-devel] [PATCH 01/25] gtk: zap scrolled_window

2014-05-21 Thread Gerd Hoffmann
The vte widget implements the scrollable interface, placing it into a scrolled window is pointless and creates a bunch of strange effects. Zap it. Signed-off-by: Gerd Hoffmann --- ui/gtk.c | 19 ++- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/ui/gtk.c b/ui/gtk.

[Qemu-devel] [PATCH 05/25] gtk: remove page numbering assumtions from the code

2014-05-21 Thread Gerd Hoffmann
Lookup page numbers using gtk_notebook_page_num() instead. Signed-off-by: Gerd Hoffmann --- ui/gtk.c | 40 ++-- 1 file changed, 30 insertions(+), 10 deletions(-) diff --git a/ui/gtk.c b/ui/gtk.c index 6a3fe00..49753ef 100644 --- a/ui/gtk.c +++ b/ui/gtk.c @@ -

[Qemu-devel] [PATCH 17/25] gtk: fix grab checks

2014-05-21 Thread Gerd Hoffmann
Make it handle multiple windows case correctly. Signed-off-by: Gerd Hoffmann --- ui/gtk.c | 35 +++ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/ui/gtk.c b/ui/gtk.c index 7d6a20d..91b6824 100644 --- a/ui/gtk.c +++ b/ui/gtk.c @@ -201,6 +201,9 @@

[Qemu-devel] [PATCH 25/25] gtk: factor out gtk3 grab into the new gd_grab_devices function

2014-05-21 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- ui/gtk.c | 100 +++ 1 file changed, 36 insertions(+), 64 deletions(-) diff --git a/ui/gtk.c b/ui/gtk.c index b908936..bc33a2f 100644 --- a/ui/gtk.c +++ b/ui/gtk.c @@ -1141,28 +1141,39 @@ static void gd_m

[Qemu-devel] [PATCH 06/25] gtk: VirtualConsole restruction

2014-05-21 Thread Gerd Hoffmann
Move all vte-related items into VirtualVteConsole substruct. Signed-off-by: Gerd Hoffmann --- ui/gtk.c | 119 +++ 1 file changed, 73 insertions(+), 46 deletions(-) diff --git a/ui/gtk.c b/ui/gtk.c index 49753ef..78f6ccc 100644 --- a/ui

[Qemu-devel] [PATCH 22/25] gtk: zap unused global_state

2014-05-21 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- ui/gtk.c | 4 1 file changed, 4 deletions(-) diff --git a/ui/gtk.c b/ui/gtk.c index a55ceb4..0d86025 100644 --- a/ui/gtk.c +++ b/ui/gtk.c @@ -204,8 +204,6 @@ struct GtkDisplayState { bool has_evdev; }; -static GtkDisplayState *global_state; - static

[Qemu-devel] [PATCH 20/25] gtk: enable untabify for gfx

2014-05-21 Thread Gerd Hoffmann
Now we have all grab fixes in place, so we can allow detaching graphic display tabs too. Signed-off-by: Gerd Hoffmann --- ui/gtk.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ui/gtk.c b/ui/gtk.c index 298419b..79dc8db 100644 --- a/ui/gtk.c +++ b/ui/gtk.c @@ -33

[Qemu-devel] [PATCH 16/25] gtk: update gd_update_caption

2014-05-21 Thread Gerd Hoffmann
Adapt to recent changes, handle multiple windows. Signed-off-by: Gerd Hoffmann --- ui/gtk.c | 45 - 1 file changed, 28 insertions(+), 17 deletions(-) diff --git a/ui/gtk.c b/ui/gtk.c index f804813..7d6a20d 100644 --- a/ui/gtk.c +++ b/ui/gtk.c @@ -271,

Re: [Qemu-devel] [PATCH v2 0/9] spapr: Enable ibm, client-architecture-support

2014-05-21 Thread Alexander Graf
On 21.05.14 10:27, Alexey Kardashevskiy wrote: This enables a ibm,client-architecture-support RTAS call. This allows older distros (such as SLES11 or RHEL6) to work on modern POWERPC hardware (such as POWER8) in "architected" mode. There is no change log as the changes are mostly about readbil

[Qemu-devel] [PATCH 19/25] gtk: detached window pointer grabs

2014-05-21 Thread Gerd Hoffmann
Make ungrab hotkey work with detached windows. Enable pointer grabs for detached windows. Signed-off-by: Gerd Hoffmann --- ui/gtk.c | 24 +--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/ui/gtk.c b/ui/gtk.c index 8215841..298419b 100644 --- a/ui/gtk.c +++ b

Re: [Qemu-devel] [PATCH v2 4/8] spapr: Move interrupt allocator to xics

2014-05-21 Thread Alexey Kardashevskiy
On 05/21/2014 06:34 PM, Alexander Graf wrote: > > On 15.05.14 11:59, Alexey Kardashevskiy wrote: >> The current allocator returns IRQ numbers from a pool and does not >> support IRQs reuse in any form as it did not keep track of what it >> previously returned, it only keeps the last returned IRQ.

[Qemu-devel] [PATCH 24/25] gtk: workaround gtk2 vte resize issue

2014-05-21 Thread Gerd Hoffmann
Hack isn't pretty, but gets the job done. See source code comment for details. Signed-off-by: Gerd Hoffmann --- ui/gtk.c | 40 1 file changed, 40 insertions(+) diff --git a/ui/gtk.c b/ui/gtk.c index ac5dbe0..b908936 100644 --- a/ui/gtk.c +++ b/ui/gtk.c @

[Qemu-devel] [PATCH 07/25] gtk: move vga state into VirtualGfxConsole

2014-05-21 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- ui/gtk.c | 615 ++- 1 file changed, 337 insertions(+), 278 deletions(-) diff --git a/ui/gtk.c b/ui/gtk.c index 78f6ccc..bc42f68 100644 --- a/ui/gtk.c +++ b/ui/gtk.c @@ -105,6 +105,18 @@ static const int

Re: [Qemu-devel] [PATCH v2 05/31] vl.c: extend -m option to support options for memory hotplug

2014-05-21 Thread Igor Mammedov
On Wed, 21 May 2014 12:27:05 +0400 Andrey Korolyov wrote: > On Wed, May 21, 2014 at 12:10 PM, Michael S. Tsirkin wrote: > > On Tue, May 20, 2014 at 05:15:08PM +0200, Igor Mammedov wrote: > >> Add following parameters: > >> "slots" - total number of hotplug memory slots > >> "maxmem" - maximu

[Qemu-devel] [PULL 2/2] hw/audio/intel-hda: Avoid shift into sign bit

2014-05-21 Thread Gerd Hoffmann
From: Peter Maydell Add a U suffix to avoid shifting into the sign bit (which is undefined behaviour in C). Signed-off-by: Peter Maydell Signed-off-by: Gerd Hoffmann --- hw/audio/intel-hda.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/audio/intel-hda.c b/hw/audi

[Qemu-devel] [PATCH 23/25] gtk: window sizing overhaul

2014-05-21 Thread Gerd Hoffmann
Major overhaul for window size handling. This basically switches qemu over to use geometry hints for the window manager instead of trying to get the job done with widget resize requests. This allows to specify better what we need and also avoids window resizes. FIXME: on gtk2 someone overwrites

Re: [Qemu-devel] [PATCH v2 4/8] spapr: Move interrupt allocator to xics

2014-05-21 Thread Alexander Graf
On 21.05.14 10:46, Alexey Kardashevskiy wrote: On 05/21/2014 06:34 PM, Alexander Graf wrote: On 15.05.14 11:59, Alexey Kardashevskiy wrote: The current allocator returns IRQ numbers from a pool and does not support IRQs reuse in any form as it did not keep track of what it previously returned,

[Qemu-devel] [PULL 1/2] audio/intel-hda: support FIFORDY

2014-05-21 Thread Gerd Hoffmann
From: Stanislav Vorobiov linux kernel 3.12 has changed intel-hda driver to always check for FIFORDY, this causes long hangs in guest since QEMU always has this bit set to 0. We now simply set it to 1 always, since we're synchronous anyway and always ready to receive the stream Signed-off-by: Sta

Re: [Qemu-devel] [PATCH v2 8/8] spapr_pci: Use XICS interrupt allocator and do not cache interrupts in PHB

2014-05-21 Thread Alexey Kardashevskiy
On 05/21/2014 06:40 PM, Alexander Graf wrote: > > On 15.05.14 11:59, Alexey Kardashevskiy wrote: >> Currently SPAPR PHB keeps track of all allocated MSI/MISX interrupt as >> XICS used to be unable to reuse interrupts which becomes a problem for >> dynamic MSI reconfiguration which is happening on

[Qemu-devel] [PATCH v2] virtio-balloon: return empty data when no stats are available

2014-05-21 Thread Ján Tomko
If the guest hasn't updated the stats yet, instead of returning an error, return '-1' for the stats and '0' as 'last-update'. This lets applications ignore this without parsing the error message. Related libvirt patch and discussion: https://www.redhat.com/archives/libvir-list/2014-May/msg00460.h

[Qemu-devel] [PATCH 04/25] gtk: Add a scrollbar for text consoles

2014-05-21 Thread Gerd Hoffmann
From: Cole Robinson Only show the scrollbar if the content doesn't fit on the visible space. [ kraxel: fix box packing ] Signed-off-by: Cole Robinson Signed-off-by: Gerd Hoffmann --- ui/gtk.c | 42 -- 1 file changed, 40 insertions(+), 2 deletions(-) d

Re: [Qemu-devel] [PATCH] e1000: allow command-line selection of card model

2014-05-21 Thread Michael S. Tsirkin
On Wed, May 21, 2014 at 10:40:54AM +0200, Andreas Färber wrote: > Hi, > > Am 20.05.2014 17:05, schrieb Gabriel L. Somlo: > > Allow selection of different card models from the qemu > > command line, to better accomodate a wider range of guests. > > > > Based-on-patch-by: Romain Dolbeau > > If th

Re: [Qemu-devel] [PATCH v2 8/8] spapr_pci: Use XICS interrupt allocator and do not cache interrupts in PHB

2014-05-21 Thread Alexander Graf
On 21.05.14 10:52, Alexey Kardashevskiy wrote: On 05/21/2014 06:40 PM, Alexander Graf wrote: On 15.05.14 11:59, Alexey Kardashevskiy wrote: Currently SPAPR PHB keeps track of all allocated MSI/MISX interrupt as XICS used to be unable to reuse interrupts which becomes a problem for dynamic MSI

[Qemu-devel] [PATCH 02/25] gtk: zap vte size requests

2014-05-21 Thread Gerd Hoffmann
The vte tabs simply get the size of the vga tab then, with whatever cols and lines are fitting in. I find this bahavior more useful than resizing the qemu window all day long. YMMV. Comments are welcome. Signed-off-by: Gerd Hoffmann --- ui/gtk.c | 14 -- 1 file changed, 14 deletio

[Qemu-devel] [PULL 0/2] audio: two intel-hda fixes.

2014-05-21 Thread Gerd Hoffmann
Hi, $sibject says all. please pull, Gerd The following changes since commit c5fa6c86d0765f837515d1c10654c621724a77e0: Merge remote-tracking branch 'remotes/qmp-unstable/queue/qmp' into staging (2014-05-19 14:10:01 +0100) are available in the git repository at: git://git.kraxel.org/q

Re: [Qemu-devel] [PATCH v2 8/8] spapr_pci: Use XICS interrupt allocator and do not cache interrupts in PHB

2014-05-21 Thread Michael S. Tsirkin
On Wed, May 21, 2014 at 11:06:09AM +0200, Alexander Graf wrote: > > On 21.05.14 10:52, Alexey Kardashevskiy wrote: > >On 05/21/2014 06:40 PM, Alexander Graf wrote: > >>On 15.05.14 11:59, Alexey Kardashevskiy wrote: > >>>Currently SPAPR PHB keeps track of all allocated MSI/MISX interrupt as > >>>XI

Re: [Qemu-devel] [PATCH v2 05/31] vl.c: extend -m option to support options for memory hotplug

2014-05-21 Thread Andrey Korolyov
On Wed, May 21, 2014 at 12:55 PM, Igor Mammedov wrote: > On Wed, 21 May 2014 12:27:05 +0400 > Andrey Korolyov wrote: > >> On Wed, May 21, 2014 at 12:10 PM, Michael S. Tsirkin wrote: >> > On Tue, May 20, 2014 at 05:15:08PM +0200, Igor Mammedov wrote: >> >> Add following parameters: >> >> "slots

Re: [Qemu-devel] [PATCH v2 8/8] spapr_pci: Use XICS interrupt allocator and do not cache interrupts in PHB

2014-05-21 Thread Alexander Graf
On 21.05.14 11:11, Michael S. Tsirkin wrote: On Wed, May 21, 2014 at 11:06:09AM +0200, Alexander Graf wrote: On 21.05.14 10:52, Alexey Kardashevskiy wrote: On 05/21/2014 06:40 PM, Alexander Graf wrote: On 15.05.14 11:59, Alexey Kardashevskiy wrote: Currently SPAPR PHB keeps track of all allo

[Qemu-devel] [PATCH 11/25] gtk: allow moving tabs to windows and back.

2014-05-21 Thread Gerd Hoffmann
"View->Detach tab" will move to tab to a new window. Simply closing the window will move it back into a notebook tab. The label will be permamently stored in VirtualConsole->label, so it can easily be reused to (re-)label tabs and windows. Works for vte tabs only for now. pointer/kbd grab code nee

Re: [Qemu-devel] [PATCH] e1000: allow command-line selection of card model

2014-05-21 Thread Andreas Färber
Am 21.05.2014 11:04, schrieb Michael S. Tsirkin: > On Wed, May 21, 2014 at 10:40:54AM +0200, Andreas Färber wrote: >> Hi, >> >> Am 20.05.2014 17:05, schrieb Gabriel L. Somlo: >>> Allow selection of different card models from the qemu >>> command line, to better accomodate a wider range of guests. >

Re: [Qemu-devel] fpu/softfloat.c licensing

2014-05-21 Thread Peter Maydell
On 21 May 2014 08:51, Paolo Bonzini wrote: > Il 21/05/2014 05:54, Alexey Kardashevskiy ha scritto: > >> Hi! >> >> We recently discovered that not entire QEMU is GPL2-compatible, the fpu >> emulation has a different license (copied below) which might create legal >> problems because of that "INDEMN

[Qemu-devel] [PATCH 13/25] gtk: add gd_grab trace event

2014-05-21 Thread Gerd Hoffmann
Input grab code is tricky, add some debug & trouble shooting aid. Signed-off-by: Gerd Hoffmann --- trace-events | 1 + ui/gtk.c | 4 2 files changed, 5 insertions(+) diff --git a/trace-events b/trace-events index 3a41abf..e42 100644 --- a/trace-events +++ b/trace-events @@ -1048,6

Re: [Qemu-devel] [PATCH 6/6] docs: add multiseat.txt

2014-05-21 Thread Paolo Bonzini
Il 21/05/2014 10:38, Gerd Hoffmann ha scritto: On Di, 2014-05-20 at 20:08 +0200, Paolo Bonzini wrote: Is there anything about the window that we would like to configure? If so, should this be something like -object window,id=window.2 \ -device pci-bridge,addr=12.0,chassis_nr=2,

Re: [Qemu-devel] [PATCH] pcie_host: Turn pcie_host_init() into an instance_init

2014-05-21 Thread Andreas Färber
Am 24.04.2014 17:26, schrieb Andreas Färber: > This assures the trivial field initialization is applied for any derived > type - currently only Q35PCIHost. > > Signed-off-by: Andreas Färber > --- > Michael, I've had this preparation lying around for a while but didn't > get further yet. Can yo

Re: [Qemu-devel] [PATCH v2 8/9] spapr: Implement processor compatibility in ibm, client-architecture-support

2014-05-21 Thread Alexander Graf
On 21.05.14 10:27, Alexey Kardashevskiy wrote: Modern Linux kernels support last POWERPC CPUs so when a kernel boots, in most cases it can find a matching cpu_spec in the kernel's cpu_specs list. However if the kernel is quite old, it may be missing a definition of the actual CPU. To provide an

Re: [Qemu-devel] [RFC PATCH v2 0/7] qapi: Specify default value for optional argument in schema json

2014-05-21 Thread Kevin Wolf
Am 21.05.2014 um 10:42 hat Fam Zheng geschrieben: > On Wed, 05/21 10:23, Kevin Wolf wrote: > > Am 21.05.2014 um 09:46 hat Markus Armbruster geschrieben: > > > Fam Zheng writes: > > > > > > > On Wed, 05/21 07:54, Markus Armbruster wrote: > > > >> Fam Zheng writes: > > > >> > > > >> > On Tue, 05/

Re: [Qemu-devel] [PATCH] qga: Fix handle fd leak in acquire_privilege()

2014-05-21 Thread Yan Vugenfirer
On May 20, 2014, at 10:46 PM, Michael Roth wrote: > Quoting Luiz Capitulino (2014-05-20 14:17:42) >> On Mon, 19 May 2014 15:26:03 +0800 >> wrote: >> >>> From: Gonglei >>> >>> token should be closed in all conditions. >>> So move CloseHandle(token) to "out" branch. >> >> Looks good to me. Mi

[Qemu-devel] [PATCH 00/25] qemu gtk ui overhaul

2014-05-21 Thread Gerd Hoffmann
Hi, I'm trying to put the qemu gtk ui into shape. Fixing a bunch of issues we have, and also make it ready for multihead support. Git tree is here: git://git.kraxel.org/qemu rebase/ui-gtk-next please review, Gerd Bruce Rogers (1): gtk: Add handling for the xfree86 keycodes Cole Robi

Re: [Qemu-devel] fpu/softfloat.c licensing

2014-05-21 Thread Alexander Graf
On 21.05.14 11:17, Peter Maydell wrote: On 21 May 2014 08:51, Paolo Bonzini wrote: Il 21/05/2014 05:54, Alexey Kardashevskiy ha scritto: Hi! We recently discovered that not entire QEMU is GPL2-compatible, the fpu emulation has a different license (copied below) which might create legal prob

Re: [Qemu-devel] [PATCH] e1000: allow command-line selection of card model

2014-05-21 Thread Michael S. Tsirkin
On Wed, May 21, 2014 at 11:12:42AM +0200, Andreas Färber wrote: > Am 21.05.2014 11:04, schrieb Michael S. Tsirkin: > > On Wed, May 21, 2014 at 10:40:54AM +0200, Andreas Färber wrote: > >> Hi, > >> > >> Am 20.05.2014 17:05, schrieb Gabriel L. Somlo: > >>> Allow selection of different card models fro

Re: [Qemu-devel] [PATCH] pcie_host: Turn pcie_host_init() into an instance_init

2014-05-21 Thread Michael S. Tsirkin
On Thu, Apr 24, 2014 at 05:26:51PM +0200, Andreas Färber wrote: > This assures the trivial field initialization is applied for any derived > type - currently only Q35PCIHost. > > Signed-off-by: Andreas Färber > --- > Michael, I've had this preparation lying around for a while but didn't > get

[Qemu-devel] [PATCH 03/25] gtk: cleanup CONFIG_VTE ifdef a bit.

2014-05-21 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- ui/gtk.c | 45 ++--- 1 file changed, 26 insertions(+), 19 deletions(-) diff --git a/ui/gtk.c b/ui/gtk.c index 776e72d..068a39b 100644 --- a/ui/gtk.c +++ b/ui/gtk.c @@ -108,8 +108,8 @@ static const int modifier_keycode[] = {

[Qemu-devel] [PATCH 21/25] gtk: Add handling for the xfree86 keycodes

2014-05-21 Thread Gerd Hoffmann
From: Bruce Rogers Currently only evdev keycodes are handled by the gtk-ui. SDL has code to handle both. This patch adds similar processing so that both keycode types will be handled via the gtk-ui. Signed-off-by: Bruce Rogers Signed-off-by: Gerd Hoffmann --- ui/gtk.c | 36 +++

Re: [Qemu-devel] [PATCH v2 8/8] spapr_pci: Use XICS interrupt allocator and do not cache interrupts in PHB

2014-05-21 Thread Alexey Kardashevskiy
On 05/21/2014 07:13 PM, Alexander Graf wrote: > > On 21.05.14 11:11, Michael S. Tsirkin wrote: >> On Wed, May 21, 2014 at 11:06:09AM +0200, Alexander Graf wrote: >>> On 21.05.14 10:52, Alexey Kardashevskiy wrote: On 05/21/2014 06:40 PM, Alexander Graf wrote: > On 15.05.14 11:59, Alexey Ka

Re: [Qemu-devel] [RFC PATCH v2 0/7] qapi: Specify default value for optional argument in schema json

2014-05-21 Thread Markus Armbruster
Kevin Wolf writes: > Am 21.05.2014 um 09:46 hat Markus Armbruster geschrieben: >> Fam Zheng writes: >> >> > On Wed, 05/21 07:54, Markus Armbruster wrote: >> >> Fam Zheng writes: >> >> >> >> > On Tue, 05/20 13:13, Eric Blake wrote: >> >> >> On 05/20/2014 03:07 AM, Fam Zheng wrote: >> >> >> > P

Re: [Qemu-devel] [PATCH v2 8/9] spapr: Implement processor compatibility in ibm, client-architecture-support

2014-05-21 Thread Alexey Kardashevskiy
On 05/21/2014 07:21 PM, Alexander Graf wrote: > > On 21.05.14 10:27, Alexey Kardashevskiy wrote: >> Modern Linux kernels support last POWERPC CPUs so when a kernel boots, >> in most cases it can find a matching cpu_spec in the kernel's cpu_specs >> list. However if the kernel is quite old, it may

[Qemu-devel] [PATCH 10/25] gtk: simplify resize

2014-05-21 Thread Gerd Hoffmann
Simply ask for a small window size. When the widgets don't fit in gtk will automatically make the window large enougth to make things fit, no need to try (and fail) duplicate that logic in qemu. Signed-off-by: Gerd Hoffmann --- ui/gtk.c | 40 ++-- 1 file chan

Re: [Qemu-devel] [PATCH v2 8/8] spapr_pci: Use XICS interrupt allocator and do not cache interrupts in PHB

2014-05-21 Thread Michael S. Tsirkin
On Wed, May 21, 2014 at 07:33:36PM +1000, Alexey Kardashevskiy wrote: > On 05/21/2014 07:13 PM, Alexander Graf wrote: > > > > On 21.05.14 11:11, Michael S. Tsirkin wrote: > >> On Wed, May 21, 2014 at 11:06:09AM +0200, Alexander Graf wrote: > >>> On 21.05.14 10:52, Alexey Kardashevskiy wrote: > >>>

Re: [Qemu-devel] fpu/softfloat.c licensing

2014-05-21 Thread Markus Armbruster
Alexander Graf writes: > On 21.05.14 09:51, Paolo Bonzini wrote: >> Il 21/05/2014 05:54, Alexey Kardashevskiy ha scritto: >>> Hi! >>> >>> We recently discovered that not entire QEMU is GPL2-compatible, the fpu >>> emulation has a different license (copied below) which might create >>> legal >>> p

Re: [Qemu-devel] [PATCH 01/18] migration: dump vmstate info as a json file for static analysis

2014-05-21 Thread Dr. David Alan Gilbert
* Amit Shah (amit.s...@redhat.com) wrote: > This commit adds a new command, '-dump-vmstate', that takes a filename > as a parameter. When executed, QEMU will dump the vmstate information > for the machine type it's invoked with to the file, and quit. > > The JSON-format output can then be used to

[Qemu-devel] [PATCH 12/25] gtk: add tab to trace events

2014-05-21 Thread Gerd Hoffmann
So you can see which of multiple displays (if present) was resized ;) Signed-off-by: Gerd Hoffmann --- trace-events | 6 +++--- ui/gtk.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/trace-events b/trace-events index b6d289d..3a41abf 100644 --- a/trace-events +++

Re: [Qemu-devel] fpu/softfloat.c licensing

2014-05-21 Thread Peter Maydell
On 21 May 2014 10:43, Markus Armbruster wrote: > Alexander Graf writes: >> How many % of the overall commits does that make? IIRC you can >> relicense source code if the "majority of authors" agrees and nobody >> actively disagrees - or so. But IANAL :) > > You can get away with infringing copyri

Re: [Qemu-devel] [PATCH] e1000: allow command-line selection of card model

2014-05-21 Thread Andreas Färber
Am 21.05.2014 11:25, schrieb Michael S. Tsirkin: > On Wed, May 21, 2014 at 11:12:42AM +0200, Andreas Färber wrote: >> Am 21.05.2014 11:04, schrieb Michael S. Tsirkin: >>> On Wed, May 21, 2014 at 10:40:54AM +0200, Andreas Färber wrote: Hi, Am 20.05.2014 17:05, schrieb Gabriel L. Somlo

[Qemu-devel] [PATCH v2 1/9] target-ppc: Add "compat" CPU option

2014-05-21 Thread Alexey Kardashevskiy
PowerISA defines a compatibility mode for server POWERPC CPUs which is supported by the PCR special register which is hypervisor privileged. To support this mode for guests, SPAPR defines a set of virtual PVRs, one per PowerISA spec version. When a hypervisor needs a guest to work in a compatibilit

  1   2   3   4   >