[Qemu-devel] [PATCH V9 1/5] target-ppc: Update external_htab even when HTAB is managed by kernel

2014-01-28 Thread Aneesh Kumar K.V
We will use this in later patches to make sure we use the right load functions when copying hpte entries. Signed-off-by: Aneesh Kumar K.V --- hw/ppc/spapr.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 1b4e38f50a8d..ac62c8f9294b 100644 --- a/hw

[Qemu-devel] [PATCH V9 3/5] target-ppc: Fix page table lookup with kvm enabled

2014-01-28 Thread Aneesh Kumar K.V
With kvm enabled, we store the hash page table information in the hypervisor. Use ioctl to read the htab contents. Without this we get the below error when trying to read the guest address (gdb) x/10 do_fork 0xc0098660 : Cannot access memory at address 0xc0098660 (gdb) Signe

[Qemu-devel] [PATCH V9 0/5] target-ppc: Add support for dumping guest memory using qemu gdb server

2014-01-28 Thread Aneesh Kumar K.V
Hi, This patch series implement support for dumping guest memory using qemu gdb server. The last patch also enable qemu monitor command dump-guest-memory With this patch series we can now do (gdb) x/4i htab_call_hpte_insert1 0xc00470d8 <.htab_call_hpte_insert1>:bl 0xc0

[Qemu-devel] [PATCH V9 2/5] target-ppc: Fix htab_mask calculation

2014-01-28 Thread Aneesh Kumar K.V
Correctly update the htab_mask using the return value of KVM_PPC_ALLOCATE_HTAB ioctl. Also we don't update sdr1 on GET_SREGS for HV. We check for external htab and if found true, we don't need to update sdr1 Signed-off-by: Aneesh Kumar K.V --- hw/ppc/spapr.c | 8 +++- target-ppc/c

[Qemu-devel] [PATCH V9 5/5] target-ppc: Update ppc_hash64_store_hpte to support updating in-kernel htab

2014-01-28 Thread Aneesh Kumar K.V
This support updating htab managed by the hypervisor. Currently we don't have any user for this feature. This actually bring the store_hpte interface in-line with the load_hpte one. We may want to use this when we want to emulate henter hcall in qemu for HV kvm. Signed-off-by: Aneesh Kumar K.V --

[Qemu-devel] [PATCH V9 4/5] target-ppc: Change the hpte sore API

2014-01-28 Thread Aneesh Kumar K.V
For updating in kernel htab we need to provide both pte0 and pte1, hence update the interface to take pte0 and pte1 together Signed-off-by: Aneesh Kumar K.V --- hw/ppc/spapr_hcall.c| 20 ++-- target-ppc/mmu-hash64.c | 3 ++- target-ppc/mmu-hash64.h | 22 -

[Qemu-devel] [PATCH RFC] target-ppc: support ibm, pa-features device property

2014-01-28 Thread Aneesh Kumar K.V
We will use this later to disable Transactional memory in case of PR KVM Signed-off-by: Aneesh Kumar K.V --- NOTE: PPC2_TM value may need update before merging this. hw/ppc/spapr.c | 42 ++ target-ppc/cpu.h| 2 ++ target-ppc/kvm_

Re: [Qemu-devel] [PATCH] vnc: Fix qemu crashed when vnc client disconnect suddenly

2014-01-28 Thread Gonglei (Arei)
Ping... Best regards, -Gonglei > -Original Message- > From: Gonglei (Arei) > Sent: Thursday, January 23, 2014 9:31 PM > To: qemu-devel@nongnu.org > Cc: 'aligu...@amazon.com'; Luonengjun; Huangweidong (Hardware); 'Gerd > Hoffmann' > Subject: [PATCH] vnc: Fix qemu crashed when vnc clien

Re: [Qemu-devel] [PATCH v3] migration:fix free XBZRLE decoded_buf wrong

2014-01-28 Thread Gonglei (Arei)
Ping... Best regards, -Gonglei > -Original Message- > From: Gonglei (Arei) > Sent: Thursday, January 23, 2014 3:47 PM > To: qemu-devel@nongnu.org > Cc: 'Orit Wasserman'; qemu-devel@nongnu.org; Peter Maydell; > anth...@codemonkey.ws; pbonz...@redhat.com; Luonengjun; chenliang (T); > Huan

Re: [Qemu-devel] [PATCH 05/24] target-arm: Add exception level to the AArch64 TB flags

2014-01-28 Thread Peter Maydell
On 28 January 2014 01:28, Peter Crosthwaite wrote: > On Wed, Jan 22, 2014 at 6:12 AM, Peter Maydell > wrote: >> We already implicitly rely on the exception level being >> part of the TB flags for coprocessor access, > > Maybe that's the issue? Why not just treat the exception level as > state li

Re: [Qemu-devel] [PATCH 07/24] target-arm: A64: Make cache ID registers visible to AArch64

2014-01-28 Thread Peter Maydell
On 28 January 2014 01:46, Peter Crosthwaite wrote: > There seem to be multiple instances in this series where you fallback > to open coded R/W accessor functions for the sake of access checks. Is > it better to define a bool check_access() fn hook in ARMCPRegInfo and > leave the actual write/read

Re: [Qemu-devel] [PATCH 11/24] target-arm: Implement AArch64 DAIF system register

2014-01-28 Thread Peter Maydell
On 28 January 2014 01:54, Peter Crosthwaite wrote: > On Wed, Jan 22, 2014 at 6:12 AM, Peter Maydell > wrote: >> Implement the DAIF system register which is a view of the >> DAIF bits in PSTATE. >> >> TODO: include support for the MSR_i encodings? >> > > Isn't this already separately handled by t

[Qemu-devel] [PATCH] vfio: correct debug macro typo

2014-01-28 Thread Bandan Das
Change to VFIO_DEBUG in vfio_msi_interrupt() for debug messages to get printed Signed-off-by: Bandan Das --- hw/misc/vfio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c index 9aecaa8..a87078c 100644 --- a/hw/misc/vfio.c +++ b/hw/misc/vfio.c

Re: [Qemu-devel] [PATCH 19/24] target-arm: Implement AArch64 TTBR*

2014-01-28 Thread Peter Maydell
On 28 January 2014 02:07, Peter Crosthwaite wrote: > On Sat, Jan 25, 2014 at 10:09 AM, Peter Maydell > wrote: >> On 24 January 2014 23:44, Peter Crosthwaite >> wrote: >>> On Wed, Jan 22, 2014 at 6:12 AM, Peter Maydell >>> wrote: +static int vmsa_ttbr_write(CPUARMState *env, const ARMCPReg

Re: [Qemu-devel] [RFC PATCH v4 3/8] arm_gic: Fix GIC pending behavior

2014-01-28 Thread Peter Maydell
On 28 January 2014 02:09, Christoffer Dall wrote: > On Sun, Jan 19, 2014 at 07:49:58PM +, Peter Maydell wrote: >> So this means we now have two lots of pending state, the pending >> and sw_pending fields. I think this is not in fact correct, and there >> is only one lot of state in a real h/w

Re: [Qemu-devel] KVM and variable-endianness guest CPUs

2014-01-28 Thread Avi Kivity
On 01/22/2014 12:22 PM, Peter Maydell wrote: On 22 January 2014 05:39, Victor Kamensky wrote: Hi Guys, Christoffer and I had a bit heated chat :) on this subject last night. Christoffer, really appreciate your time! We did not really reach agreement during the chat and Christoffer asked me to

Re: [Qemu-devel] [Qemu-ppc] KVM and variable-endianness guest CPUs

2014-01-28 Thread Avi Kivity
On 01/28/2014 01:27 AM, Benjamin Herrenschmidt wrote: On Wed, 2014-01-22 at 17:29 +, Peter Maydell wrote: Basically if it would be on real bus, get byte value that corresponds to phys_addr + 0 address place it into data[0], get byte value that corresponds to phys_addr + 1 address place it in

Re: [Qemu-devel] [PATCH 0/2] Remove unsupported / empty .bdrv_make_empty functions

2014-01-28 Thread Kevin Wolf
Am 27.01.2014 um 22:09 hat Jeff Cody geschrieben: > QED and QCOW2 both have .bdrv_make_empty stubs that do nothing. In the > case of QED, it returns an error (-ENOTSUP), which causes problems with > bdrv_commit(). > > This removes those stubs. > > Jeff Cody (2): > block: remove QED .bdrv_make

Re: [Qemu-devel] [PATCH target-arm v5 4/5] arm: Implement reset GPIO.

2014-01-28 Thread Peter Maydell
On 28 January 2014 00:48, Peter Crosthwaite wrote: > On Tue, Jan 28, 2014 at 3:52 AM, Peter Maydell > wrote: >> On 15 January 2014 09:14, Peter Crosthwaite >> wrote: >>> Implement a reset GPIO for ARM CPUs. This allows individual reset of ARM >>> CPUs from device land without the need for the m

[Qemu-devel] [PATCH] qga: Don't require 'time' argument in guest-set-time command

2014-01-28 Thread Michal Privoznik
As the description to the guest-set-time states, the command is there to ease time synchronization after resume. If guest was suspended for longer period of time, its system time can go off so badly, that even NTP refuses to set it. That's why the command was invented: to give users chance to set t

Re: [Qemu-devel] [PATCH target-arm v5 4/5] arm: Implement reset GPIO.

2014-01-28 Thread Andreas Färber
Hi, Am 28.01.2014 01:48, schrieb Peter Crosthwaite: > On Tue, Jan 28, 2014 at 3:52 AM, Peter Maydell > wrote: >> Is there anything really ARM-specific in this reset_gpio >> function, or could it be implemented at a common level for >> all target architectures? >> > > Not yet, but probably will

Re: [Qemu-devel] [PATCH v17 00/10] Shared library module support

2014-01-28 Thread Fam Zheng
Ping? This version has a slight conflict with current qemu.git. Do you want a respin, Paolo? Thanks, Fam On Thu, 01/16 17:48, Fam Zheng wrote: > Many thanks for everyones testing and debugging! > > v17: > [01/10] util: Split out qemu_exec_dir from os_find_datadir > > New. Used

Re: [Qemu-devel] fix/re-do query-command-line-options

2014-01-28 Thread Markus Armbruster
Amos Kong writes: > Hi QEMU/Libvirt list, > > When I worked on query-command-line-options, I first used some marcos [1] to > generate two config & option tables. This will cover all the options, > but it returns a string, it's difficult for libvirt to parse and use > it. > > Finally I got a sugge

[Qemu-devel] [PATCH 04/42] console: export QemuConsole index, width, height

2014-01-28 Thread Gerd Hoffmann
Add functions to query QemuConsole properties. Signed-off-by: Gerd Hoffmann --- include/ui/console.h | 3 +++ ui/console.c | 24 2 files changed, 27 insertions(+) diff --git a/include/ui/console.h b/include/ui/console.h index 4156a87..8543d18 100644 --- a/inclu

[Qemu-devel] [PATCH 03/42] sdl2: remove text console logic

2014-01-28 Thread Gerd Hoffmann
sdl2 explicitly binds windows to graphics consoles. No need to handle non-graphic consoles anywhere. Also console switching is pointless. Zap code. Signed-off-by: Gerd Hoffmann --- ui/sdl2.c | 117 +- 1 file changed, 8 insertions(+), 1

[Qemu-devel] [PATCH 14/42] input: keyboard: switch sdl ui to new core

2014-01-28 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- ui/sdl.c | 27 +-- 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/ui/sdl.c b/ui/sdl.c index 736bb95..c3b8036 100644 --- a/ui/sdl.c +++ b/ui/sdl.c @@ -32,6 +32,7 @@ #include "qemu-common.h" #include "ui/console.h" +#inclu

[Qemu-devel] [PATCH 01/42] ui/sdl2 : initial port to SDL 2.0 (v2.0)

2014-01-28 Thread Gerd Hoffmann
From: Dave Airlie I've ported the SDL1.2 code over, and rewritten it to use the SDL2 interface. The biggest changes were in the input handling, where SDL2 has done a major overhaul, and I've had to include a generated translation file to get from SDL2 codes back to qemu compatible ones. I'm stil

[Qemu-devel] [PATCH 17/42] input: keyboard: switch spice ui to new core

2014-01-28 Thread Gerd Hoffmann
--- ui/spice-input.c | 22 -- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/ui/spice-input.c b/ui/spice-input.c index 3beb8de..c9df699 100644 --- a/ui/spice-input.c +++ b/ui/spice-input.c @@ -26,12 +26,15 @@ #include "qemu-common.h" #include "ui/qemu-spice.h"

[Qemu-devel] [PATCH 12/42] input: keyboard: switch qmp_send_key() to new core.

2014-01-28 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- ui/input-legacy.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/ui/input-legacy.c b/ui/input-legacy.c index 80f4f5c..a4006cc 100644 --- a/ui/input-legacy.c +++ b/ui/input-legacy.c @@ -260,10 +260,8 @@ static void free_keycodes(voi

[Qemu-devel] [PATCH 18/42] input: keyboard: switch curses ui to new core

2014-01-28 Thread Gerd Hoffmann
--- ui/curses.c | 47 +-- 1 file changed, 25 insertions(+), 22 deletions(-) diff --git a/ui/curses.c b/ui/curses.c index dbc3d5e..b044790 100644 --- a/ui/curses.c +++ b/ui/curses.c @@ -30,6 +30,7 @@ #include "qemu-common.h" #include "ui/console.h" +

[Qemu-devel] [PATCH 23/42] input: mouse: switch gtk ui to new core

2014-01-28 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- ui/gtk.c | 58 +++--- 1 file changed, 19 insertions(+), 39 deletions(-) diff --git a/ui/gtk.c b/ui/gtk.c index 74c0936..1851495 100644 --- a/ui/gtk.c +++ b/ui/gtk.c @@ -194,7 +194,7 @@ static void gd_update_curs

[Qemu-devel] [PATCH 13/42] input: keyboard: switch gtk ui to new core

2014-01-28 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- ui/gtk.c | 19 --- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/ui/gtk.c b/ui/gtk.c index a633d89..74c0936 100644 --- a/ui/gtk.c +++ b/ui/gtk.c @@ -59,6 +59,7 @@ #include "trace.h" #include "ui/console.h" +#include "ui/input.h

[Qemu-devel] [PATCH 09/42] input: add core bits of the new input layer

2014-01-28 Thread Gerd Hoffmann
Register and unregister handlers. Event dispatcher code. Signed-off-by: Gerd Hoffmann --- include/ui/input.h | 32 + ui/Makefile.objs | 2 +- ui/input.c | 83 ++ 3 files changed, 116 insertions(+), 1 deletion(-)

[Qemu-devel] [PATCH 11/42] input: keyboard: switch legacy handlers to new core

2014-01-28 Thread Gerd Hoffmann
legacy kbd event handlers are registered in the new core, so they receive events from the new input core code. keycode -> scancode translation needed here. legacy kbd_put_keycode() sends events to the new core. scancode -> keycode translation needed here. So with this patch the new input core is

[Qemu-devel] [PATCH 27/42] input: mouse: switch spice ui to new core

2014-01-28 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- ui/spice-input.c | 62 ++-- 1 file changed, 38 insertions(+), 24 deletions(-) diff --git a/ui/spice-input.c b/ui/spice-input.c index c9df699..6dab23b 100644 --- a/ui/spice-input.c +++ b/ui/spice-input.c @@ -98,4

[Qemu-devel] [PATCH 34/42] input-legacy: remove kbd_mouse_is_absolute

2014-01-28 Thread Gerd Hoffmann
--- include/ui/console.h | 1 - ui/input-legacy.c| 11 +-- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/include/ui/console.h b/include/ui/console.h index 53e956d..21b32e4 100644 --- a/include/ui/console.h +++ b/include/ui/console.h @@ -50,7 +50,6 @@ void kbd_put_leds

[Qemu-devel] [PATCH 06/42] input: qapi: define event types

2014-01-28 Thread Gerd Hoffmann
Define input event types, using qapi. So we get nicely autogenerated types for our input events. And when it comes to qmp support some day things will be alot easier. Types are modeled after the linux input layer. There are separate event types for each value. There is a sync to indicate the e

[Qemu-devel] [PATCH 22/42] input: mouse: switch legacy handlers to new core

2014-01-28 Thread Gerd Hoffmann
legacy mouse event handlers are registered in the new core, so they receive events submitted to the new input core. legacy kbd_mouse_event() continues to use the old code paths. So new-core event handlers wouldn't see events submitted via kbd_mouse_event. This leads to the constrain that we we mu

[Qemu-devel] [PATCH 15/42] sdl2: switch keyboard handling to new core

2014-01-28 Thread Gerd Hoffmann
--- ui/sdl2.c | 23 ++- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/ui/sdl2.c b/ui/sdl2.c index e7a30b3..ac3ac19 100644 --- a/ui/sdl2.c +++ b/ui/sdl2.c @@ -33,6 +33,7 @@ #include "qemu-common.h" #include "ui/console.h" +#include "ui/input.h" #include "s

[Qemu-devel] [PATCH 32/42] input-legacy: remove kbd_put_keycode

2014-01-28 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- include/ui/console.h | 1 - ui/input-legacy.c| 23 --- 2 files changed, 24 deletions(-) diff --git a/include/ui/console.h b/include/ui/console.h index a3062d0..c7f4e4f 100644 --- a/include/ui/console.h +++ b/include/ui/console.h @@ -46,7

[Qemu-devel] [PATCH 40/42] input: move qmp_query_mice to new core

2014-01-28 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- ui/input-legacy.c | 23 --- ui/input.c| 29 + 2 files changed, 29 insertions(+), 23 deletions(-) diff --git a/ui/input-legacy.c b/ui/input-legacy.c index 7f8e72b..7843482 100644 --- a/ui/input-legacy.c +++ b

[Qemu-devel] [PATCH 33/42] input-legacy: remove kbd_mouse_has_absolute

2014-01-28 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- include/ui/console.h | 3 --- ui/input-legacy.c| 21 ++--- 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/include/ui/console.h b/include/ui/console.h index c7f4e4f..53e956d 100644 --- a/include/ui/console.h +++ b/include/ui/co

[Qemu-devel] [PATCH 35/42] input-legacy: remove kbd_mouse_event

2014-01-28 Thread Gerd Hoffmann
--- include/ui/console.h | 1 - ui/input-legacy.c| 49 - 2 files changed, 50 deletions(-) diff --git a/include/ui/console.h b/include/ui/console.h index 21b32e4..71a0da3 100644 --- a/include/ui/console.h +++ b/include/ui/console.h @@ -47,7 +47,

[Qemu-devel] [PATCH 29/42] input: keyboard: switch cocoa ui to new core

2014-01-28 Thread Gerd Hoffmann
--- ui/cocoa.m | 18 ++ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/ui/cocoa.m b/ui/cocoa.m index 8661777..d4af3e5 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m @@ -514,16 +514,14 @@ QemuCocoaView *cocoaView; if (keycode) { if (keycode

[Qemu-devel] [PATCH 07/42] input: qapi: add unmapped key

2014-01-28 Thread Gerd Hoffmann
Simplifies building something -> QkeyCode mapping tables. Uninitialized entries can easily identified then. Signed-off-by: Gerd Hoffmann --- qapi-schema.json | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qapi-schema.json b/qapi-schema.json index 646d64f..6af22f6 100644

[Qemu-devel] [PATCH 42/42] input: remove index_from_keycode (no users)

2014-01-28 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- include/ui/console.h | 1 - ui/input-legacy.c| 14 -- 2 files changed, 15 deletions(-) diff --git a/include/ui/console.h b/include/ui/console.h index 9a282cb..3bf69ee 100644 --- a/include/ui/console.h +++ b/include/ui/console.h @@ -329,7 +329,6 @

[Qemu-devel] [PATCH 19/42] input: mouse: add helpers functions to core

2014-01-28 Thread Gerd Hoffmann
Likewise a bunch of helper functions to manage mouse button and movement events, again to make life easier for the ui code. Signed-off-by: Gerd Hoffmann --- include/ui/input.h | 14 +++ ui/input.c | 71 ++ 2 files changed, 85 in

[Qemu-devel] [PATCH 20/42] input: mouse: add graphic_rotate support

2014-01-28 Thread Gerd Hoffmann
Transform absolute mouse events according to graphic_rotate. Legacy input code does it for both absolute and relative events, but the logic is broken for relative coordinates, so this is most likely not used anyway. Signed-off-by: Gerd Hoffmann --- ui/input.c | 33 ++

[Qemu-devel] [PATCH 36/42] input: move mouse mode notifier to new core

2014-01-28 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- include/ui/console.h | 4 include/ui/input.h | 4 ui/input-legacy.c| 34 +- ui/input.c | 30 ++ 4 files changed, 35 insertions(+), 37 deletions(-) diff --git a/include/ui/cons

[Qemu-devel] [PATCH 37/42] input: add input_mouse_mode tracepoint

2014-01-28 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- trace-events | 1 + ui/input.c | 1 + 2 files changed, 2 insertions(+) diff --git a/trace-events b/trace-events index 4b6bb29..04191b7 100644 --- a/trace-events +++ b/trace-events @@ -1027,6 +1027,7 @@ input_event_btn(int conidx, const char *btn, bool down) "c

[Qemu-devel] [PULL 00/42] rework input handling, sdl2 support

2014-01-28 Thread Gerd Hoffmann
Hi, The input layer moves to a model modeled roughly after the linux event layer. It also uses qapi to create all the data types needed. First, because it is convinient to have all the support code generated, and also to make it easier to integrate with qmp some day. Porting work has only be d

[Qemu-devel] [PATCH 24/42] input: mouse: switch sdl ui to new core

2014-01-28 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- ui/sdl.c | 84 ++-- 1 file changed, 39 insertions(+), 45 deletions(-) diff --git a/ui/sdl.c b/ui/sdl.c index c3b8036..c1a16be 100644 --- a/ui/sdl.c +++ b/ui/sdl.c @@ -353,7 +353,7 @@ static void sdl_hide

[Qemu-devel] [PATCH 41/42] input: move do_mouse_set to new core

2014-01-28 Thread Gerd Hoffmann
This removes the last user of the lecagy input mouse handler list, so we can remove more legacy bits with this. Signed-off-by: Gerd Hoffmann --- ui/input-legacy.c | 43 --- ui/input.c| 21 + 2 files changed, 21 insertions(+), 43

[Qemu-devel] [PATCH 30/42] input: mouse: switch cocoa ui to new core

2014-01-28 Thread Gerd Hoffmann
Build fixes by Peter Maydell. Signed-off-by: Gerd Hoffmann --- include/ui/console.h | 2 ++ ui/cocoa.m | 63 ++-- 2 files changed, 44 insertions(+), 21 deletions(-) diff --git a/include/ui/console.h b/include/ui/console.h index 8543d18.

[Qemu-devel] [PATCH 38/42] sdl2: simplify keymap handling

2014-01-28 Thread Gerd Hoffmann
sdl2 gives us scancodes (i.e. identifies keys by location not by keysym mapped to it). We can map them directly to QKeyCodes, pass them on to the new input core and be done with it. No need to jump though any keymap hops. Zap the code. Also operate directly on SDL scancodes for any hotkeys. Sig

Re: [Qemu-devel] [PATCH v3 19/19] bsd-user: fix linking conflicts with FreeBSD libcrypto

2014-01-28 Thread Paolo Bonzini
Il 27/01/2014 21:07, Peter Maydell ha scritto: You never answered Paolo's question about this patch, I think: "What is the error? Do the functions have different signatures or semantics between QEMU and FreeBSD?" If we need to resolve a clash, maybe we should just rename the QEMU versions. Paol

[Qemu-devel] [PATCH 39/42] sdl2: codestyle fixups

2014-01-28 Thread Gerd Hoffmann
--- ui/Makefile.objs | 2 +- ui/sdl2.c| 173 +-- 2 files changed, 104 insertions(+), 71 deletions(-) diff --git a/ui/Makefile.objs b/ui/Makefile.objs index e6a5ec1..6f2294e 100644 --- a/ui/Makefile.objs +++ b/ui/Makefile.objs @@ -15,6

[Qemu-devel] [PATCH 05/42] input: rename file to legacy

2014-01-28 Thread Gerd Hoffmann
Rename ui/input.c to ui/input-legacy.c. We are going to replace it step by step. Signed-off-by: Gerd Hoffmann --- ui/Makefile.objs | 2 +- ui/{input.c => input-legacy.c} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename ui/{input.c => input-legacy.c} (100%) diff --git a/

[Qemu-devel] input, virtio-vga & multihead -- current state

2014-01-28 Thread Gerd Hoffmann
Hi, Input layer + sdl2 pull request just sent. So the first bits will hopefully be merged soon. On top of that I've been working on some multihead and virtio gpu/vga bits. Current state is here: http://www.kraxel.org/cgit/qemu/log/?h=rebase/input-wip Commits are baby steps, build fixes n

[Qemu-devel] check trim/unmap

2014-01-28 Thread ching
Hello developers, i am trying to test trim/unmap of qemu. My config is Gentoo x64 stable branch, kernel 3.10, libvirt 1.1.3, qemu 1.5, lvm2(non-thin) on ssd How can i check that if: 1. qemu receives trim/unmap from guest 2. qemu is punching hole/issue blkdiscards/writing zeros? Thanks in advan

Re: [Qemu-devel] fix/re-do query-command-line-options

2014-01-28 Thread Paolo Bonzini
Il 28/01/2014 10:36, Markus Armbruster ha scritto: I think the data you can usefully collect with this approach is approximately the data getopt_long()[*] gets: list of named command line options, and whether they take an argument. You can use this data to fill in options not covered by QemuOpts

Re: [Qemu-devel] [PATCH v4 1/3] util/fifo8: implement push/pop of multiple bytes

2014-01-28 Thread Peter Maydell
On 28 January 2014 00:04, Peter Crosthwaite wrote: > On Tue, Jan 28, 2014 at 4:32 AM, Peter Maydell > wrote: >>> void fifo8_reset(Fifo8 *fifo) >>> { >>> fifo->num = 0; >>> +fifo->head = 0; >> >> This is a bug fix, right? It should go in its own patch. >> > > No bug - where the ring bu

Re: [Qemu-devel] [PATCH v4 4/5] qmp: full introspection support for QMP

2014-01-28 Thread Amos Kong
On Mon, Jan 27, 2014 at 06:46:31PM +0800, Fam Zheng wrote: > On Mon, 01/27 10:38, Paolo Bonzini wrote: > > Il 27/01/2014 09:17, Amos Kong ha scritto: > > >CC Libvirt-list > > > > > >Original discussion: > > > http://marc.info/?l=qemu-devel&m=139048842504757&w=2 > > > [Qemu-devel] [PATCH v4 0/5] Q

Re: [Qemu-devel] check trim/unmap

2014-01-28 Thread Paolo Bonzini
Il 28/01/2014 11:31, ching ha scritto: My config is Gentoo x64 stable branch, kernel 3.10, libvirt 1.1.3, qemu 1.5, lvm2(non-thin) on ssd How can i check that if: 1. qemu receives trim/unmap from guest 2. qemu is punching hole/issue blkdiscards/writing zeros? First of all, I suggest that you

[Qemu-devel] [PATCH 31/42] input: trace events

2014-01-28 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- trace-events | 8 ui/input.c | 48 2 files changed, 56 insertions(+) diff --git a/trace-events b/trace-events index 1b668d1..4b6bb29 100644 --- a/trace-events +++ b/trace-events @@ -1020,6 +1020,14 @@ g

[Qemu-devel] [PATCH 10/42] input: keyboard: add helper functions to core

2014-01-28 Thread Gerd Hoffmann
A bunch of helper functions to manage keyboard events, to make life simpler for the ui code when submitting keyboard events. Signed-off-by: Gerd Hoffmann --- include/ui/input.h | 5 + ui/input.c | 35 +++ 2 files changed, 40 insertions(+) diff --git

[Qemu-devel] [PATCH] [RESEND-try-3] hw/9pfs: fix P9_STATS_GEN handling

2014-01-28 Thread Kirill A. Shutemov
Currently we have few issues with P9_STATS_GEN: - We don't try to read st_gen anything except files or directories, but still set P9_STATS_GEN bit in st_result_mask. It may mislead client: we present garbage as valid st_gen. - If we failed to get valid st_gen with ENOTTY, we ignore error,

[Qemu-devel] [PATCH 28/42] input: mouse: switch monitor to new core

2014-01-28 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- monitor.c | 31 ++- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/monitor.c b/monitor.c index 80456fb..0df48d8 100644 --- a/monitor.c +++ b/monitor.c @@ -39,6 +39,7 @@ #include "monitor/monitor.h" #include "qemu/readl

[Qemu-devel] [PATCH 21/42] input: mouse: add qemu_input_is_absolute()

2014-01-28 Thread Gerd Hoffmann
Same as kbd_mouse_is_absolute(), but using new input core. Signed-off-by: Gerd Hoffmann --- include/ui/input.h | 1 + ui/input.c | 8 2 files changed, 9 insertions(+) diff --git a/include/ui/input.h b/include/ui/input.h index c6f50c2..28afc45 100644 --- a/include/ui/input.h +++

[Qemu-devel] [PATCH 25/42] sdl2: switch mouse handling to new core

2014-01-28 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- ui/sdl2.c | 60 +++- 1 file changed, 31 insertions(+), 29 deletions(-) diff --git a/ui/sdl2.c b/ui/sdl2.c index ac3ac19..e841424 100644 --- a/ui/sdl2.c +++ b/ui/sdl2.c @@ -329,7 +329,7 @@ static void sdl_hid

[Qemu-devel] [PATCH 26/42] input: mouse: switch vnc ui to new core

2014-01-28 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- ui/vnc.c | 46 ++ ui/vnc.h | 1 + 2 files changed, 23 insertions(+), 24 deletions(-) diff --git a/ui/vnc.c b/ui/vnc.c index 4658559..7dfc94a 100644 --- a/ui/vnc.c +++ b/ui/vnc.c @@ -1484,7 +1484,7 @@ static void client

Re: [Qemu-devel] [PATCH v4 4/5] qmp: full introspection support for QMP

2014-01-28 Thread Paolo Bonzini
Il 28/01/2014 11:45, Amos Kong ha scritto: > My question is why is this generate-and-parse necessary? It's request of Libvirt, actually we can directly return the raw schema to Libvirt without extending/parsing, then Libvirt parse by itself. > Can we achieve it with less duplication? Let's see

Re: [Qemu-devel] [PULL v2 00/35] acpi, pci, pc, virtio fixes and enhancements

2014-01-28 Thread Michael S. Tsirkin
Hi Peter, could you merge the below please? Thanks in advance! On Sun, Jan 26, 2014 at 06:05:14PM +0200, Michael S. Tsirkin wrote: > Hi Anthony, > I forgot to Cc you on the previous version of this pull request. > So here's v2 - it also includes some more changes that > got merged since then. > I

Re: [Qemu-devel] [PATCH] [RESEND-try-3] hw/9pfs: fix P9_STATS_GEN handling

2014-01-28 Thread Paolo Bonzini
Il 28/01/2014 11:55, Kirill A. Shutemov ha scritto: Currently we have few issues with P9_STATS_GEN: - We don't try to read st_gen anything except files or directories, but still set P9_STATS_GEN bit in st_result_mask. It may mislead client: we present garbage as valid st_gen. - If we fa

[Qemu-devel] [PATCH 08/42] input: qapi: add pause key

2014-01-28 Thread Gerd Hoffmann
It's missing. Signed-off-by: Gerd Hoffmann --- qapi-schema.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qapi-schema.json b/qapi-schema.json index 6af22f6..d848e40 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -3430,7 +3430,7 @@ # # Since: 1.3.0 # -# '

Re: [Qemu-devel] [PATCH] [RESEND-try-3] hw/9pfs: fix P9_STATS_GEN handling

2014-01-28 Thread Michael S. Tsirkin
On Tue, Jan 28, 2014 at 12:55:51PM +0200, Kirill A. Shutemov wrote: > Currently we have few issues with P9_STATS_GEN: > > - We don't try to read st_gen anything except files or directories, but >still set P9_STATS_GEN bit in st_result_mask. It may mislead client: >we present garbage as va

[Qemu-devel] [PATCH v2 02/11] target-arm: Add AArch32 FP VRINTA, VRINTN, VRINTP and VRINTM

2014-01-28 Thread Will Newton
Add support for AArch32 ARMv8 FP VRINTA, VRINTN, VRINTP and VRINTM instructions. Signed-off-by: Will Newton --- target-arm/translate.c | 54 ++ 1 file changed, 54 insertions(+) Changes in v2: - Add comment to fp_decode_rm lookup table diff --git

[Qemu-devel] [PATCH v2 01/11] target-arm: Move arm_rmode_to_sf to a shared location.

2014-01-28 Thread Will Newton
This function will be needed for AArch32 ARMv8 support, so move it to helper.c where it can be used by both targets. Also moves the code out of line, but as it is quite a large function I don't believe this should be a significant performance impact. Signed-off-by: Will Newton Reviewed-by: Peter

[Qemu-devel] [PATCH v2 03/11] target-arm: Add support for AArch32 FP VRINTR

2014-01-28 Thread Will Newton
Add support for the AArch32 floating-point VRINTR instruction. Signed-off-by: Will Newton --- target-arm/translate.c | 11 +++ 1 file changed, 11 insertions(+) Changes in v2: - Move code outside the arms of the if diff --git a/target-arm/translate.c b/target-arm/translate.c index 2db6

[Qemu-devel] [PATCH v2 09/11] target-arm: Add AArch32 FP VCVTA, VCVTN, VCVTP and VCVTM

2014-01-28 Thread Will Newton
Add support for the AArch32 floating-point VCVTA, VCVTN, VCVTP and VCVTM instructions. Signed-off-by: Will Newton --- target-arm/translate.c | 61 ++ 1 file changed, 61 insertions(+) diff --git a/target-arm/translate.c b/target-arm/translate.c ind

[Qemu-devel] [PATCH v2 04/11] target-arm: Add support for AArch32 FP VRINTZ

2014-01-28 Thread Will Newton
Add support for the AArch32 floating-point VRINTZ instruction. Signed-off-by: Will Newton --- target-arm/translate.c | 16 1 file changed, 16 insertions(+) Changes in v2: - Move code outside the arms of the if diff --git a/target-arm/translate.c b/target-arm/translate.c index

[Qemu-devel] [PATCH v2 08/11] target-arm: Add AArch32 SIMD VRINTA, VRINTN, VRINTP, VRINTM, VRINTZ

2014-01-28 Thread Will Newton
Add support for the AArch32 Advanced SIMD VRINTA, VRINTN, VRINTP VRINTM and VRINTZ instructions. Signed-off-by: Will Newton --- target-arm/translate.c | 40 +++- 1 file changed, 39 insertions(+), 1 deletion(-) Changes in v2: - Merge VRINTZ handling into the

Re: [Qemu-devel] [PATCH] sclp-s390: Define new SCLP codes and structures

2014-01-28 Thread Christian Borntraeger
On 27/01/14 16:57, Matthew Rosato wrote: > Define new SCLP codes and structures that will be needed for > s390 memory hotplug. > > Signed-off-by: Matthew Rosato Applied with a small fixup. > +/* SCLP Memory hotplug codes */ > +#define SCLP_NO_CMD_PARM0x00ff I remove

[Qemu-devel] [PATCH v2 05/11] target-arm: Add support for AArch32 FP VRINTX

2014-01-28 Thread Will Newton
Add support for the AArch32 floating-point VRINTX instruction. Signed-off-by: Will Newton --- target-arm/translate.c | 11 +++ 1 file changed, 11 insertions(+) Changes in v2: - Move code outside the arms of the if diff --git a/target-arm/translate.c b/target-arm/translate.c index 9afb

[Qemu-devel] [PATCH v2 10/11] target-arm: Add AArch32 SIMD VCVTA, VCVTN, VCVTP and VCVTM

2014-01-28 Thread Will Newton
Add support for the AArch32 Advanced SIMD VCVTA, VCVTN, VCVTP and VCVTM instructions. Signed-off-by: Will Newton --- target-arm/translate.c | 53 +- 1 file changed, 52 insertions(+), 1 deletion(-) diff --git a/target-arm/translate.c b/target-arm/t

[Qemu-devel] [PATCH v2 07/11] target-arm: Add set_neon_rmode helper

2014-01-28 Thread Will Newton
This helper sets the rounding mode in the standard_fp_status word to allow NEON instructions to modify the rounding mode whilst using the standard FPSCR values for everything else. Signed-off-by: Will Newton Reviewed-by: Peter Maydell --- target-arm/helper.c | 17 + target-arm/h

[Qemu-devel] [PATCH v2 11/11] target-arm: Add support for AArch32 64bit VCVTB and VCVTT

2014-01-28 Thread Will Newton
Add support for the AArch32 floating-point half-precision to double- precision conversion VCVTB and VCVTT instructions. Signed-off-by: Will Newton --- target-arm/translate.c | 62 ++ 1 file changed, 48 insertions(+), 14 deletions(-) diff --git a/t

[Qemu-devel] [PATCH 16/42] input: keyboard: switch vnc ui to new core

2014-01-28 Thread Gerd Hoffmann
--- ui/vnc.c | 25 ++--- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/ui/vnc.c b/ui/vnc.c index 5601cc3..4658559 100644 --- a/ui/vnc.c +++ b/ui/vnc.c @@ -33,6 +33,7 @@ #include "qapi/qmp/types.h" #include "qmp-commands.h" #include "qemu/osdep.h" +#include "

[Qemu-devel] [PATCH 02/42] sdl2: baum build fix

2014-01-28 Thread Gerd Hoffmann
--- backends/baum.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backends/baum.c b/backends/baum.c index 1132899..665107f 100644 --- a/backends/baum.c +++ b/backends/baum.c @@ -566,7 +566,7 @@ CharDriverState *chr_baum_init(void) BaumDriverState *baum; CharDriv

Re: [Qemu-devel] [PATCH] [RESEND-try-3] hw/9pfs: fix P9_STATS_GEN handling

2014-01-28 Thread Kirill A. Shutemov
Michael S. Tsirkin wrote: > On Tue, Jan 28, 2014 at 12:55:51PM +0200, Kirill A. Shutemov wrote: > > Currently we have few issues with P9_STATS_GEN: > > > > - We don't try to read st_gen anything except files or directories, but > >still set P9_STATS_GEN bit in st_result_mask. It may mislead c

Re: [Qemu-devel] [PATCH 19/24] target-arm: Implement AArch64 TTBR*

2014-01-28 Thread Peter Maydell
On 24 January 2014 23:44, Peter Crosthwaite wrote: >> +static int vmsa_ttbr_write(CPUARMState *env, const ARMCPRegInfo *ri, >> + uint64_t value) >> +{ >> +/* 64 bit accesses to the TTBRs can change the ASID and so we >> + * must flush the TLB. >> + */ >> +

Re: [Qemu-devel] [PATCH v2 0/5] disas: add libvixl to support A64 disassembly

2014-01-28 Thread Peter Maydell
Ping for review/testing/comments on this version, please? thanks -- PMM On 16 January 2014 11:13, Peter Maydell wrote: > Hi. This is a rebased and mildly cleaned up version of Claudio's > RFC patchset from last year to add libvixl to QEMU and use it > for A64 disassembly. > > NOTE NOTE NOTE > *

[Qemu-devel] [PATCH v2 06/11] target-arm: Add support for AArch32 SIMD VRINTX

2014-01-28 Thread Will Newton
Add support for the AArch32 Advanced SIMD VRINTX instruction. Signed-off-by: Will Newton Reviewed-by: Peter Maydell --- target-arm/translate.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/target-arm/translate.c b/target-arm/translate.c index 9eb5b92..c179817 1

Re: [Qemu-devel] [PATCHv6 0/6] block: add native support for NFS

2014-01-28 Thread Stefan Hajnoczi
On Mon, Jan 27, 2014 at 07:28:07PM +0100, Peter Lieven wrote: > Am 27.01.2014 17:11, schrieb Stefan Hajnoczi: > > On Mon, Jan 13, 2014 at 11:21:52AM +0100, Peter Lieven wrote: > >> This adds v6 of the NFS protocol driver + qemu-iotest adjustments. > >> > >> v5->v6: > >> - use internal qemu functio

Re: [Qemu-devel] [PATCH v8 08/13] dump: add API to write dump header

2014-01-28 Thread Ekaterina Tumanova
On 01/28/2014 10:22 AM, qiaonuohan wrote: the functions are used to write header of kdump-compressed format to vmcore. Header of kdump-compressed format includes: 1. common header: DiskDumpHeader32 / DiskDumpHeader64 2. sub header: KdumpSubHeader32 / KdumpSubHeader64 3. extra information: only el

Re: [Qemu-devel] fix/re-do query-command-line-options

2014-01-28 Thread Markus Armbruster
Paolo Bonzini writes: > Il 28/01/2014 10:36, Markus Armbruster ha scritto: >> I think the data you can usefully collect with this approach is >> approximately the data getopt_long()[*] gets: list of named command line >> options, and whether they take an argument. >> >> You can use this data to f

Re: [Qemu-devel] [PULL 3/4] trace: add glib 2.32+ static GMutex support

2014-01-28 Thread Stefan Hajnoczi
On Mon, Jan 27, 2014 at 03:15:47PM +, Daniel P. Berrange wrote: > On Mon, Jan 27, 2014 at 03:53:05PM +0100, Stefan Hajnoczi wrote: > > The GStaticMutex API was deprecated in glib 2.32. We cannot switch over > > to GMutex unconditionally since we would drop support for older glib > > versions.

Re: [Qemu-devel] [PATCH] [RESEND-try-3] hw/9pfs: fix P9_STATS_GEN handling

2014-01-28 Thread Michael S. Tsirkin
On Tue, Jan 28, 2014 at 01:40:59PM +0200, Kirill A. Shutemov wrote: > Michael S. Tsirkin wrote: > > On Tue, Jan 28, 2014 at 12:55:51PM +0200, Kirill A. Shutemov wrote: > > > Currently we have few issues with P9_STATS_GEN: > > > > > > - We don't try to read st_gen anything except files or director

Re: [Qemu-devel] fix/re-do query-command-line-options

2014-01-28 Thread Paolo Bonzini
Il 28/01/2014 12:55, Markus Armbruster ha scritto: Paolo Bonzini writes: Il 28/01/2014 10:36, Markus Armbruster ha scritto: I think the data you can usefully collect with this approach is approximately the data getopt_long()[*] gets: list of named command line options, and whether they take a

Re: [Qemu-devel] [PATCH] scsi: report thin provisioning errors with werror=report

2014-01-28 Thread Stefan Hajnoczi
On Mon, Jan 27, 2014 at 02:08:56PM +0100, Paolo Bonzini wrote: > SCSI defines a status code for when a thin-provisioned LUNs would > exceed the allocated space, map ENOSPC to it. > > Signed-off-by: Paolo Bonzini > --- > hw/scsi/scsi-bus.c | 5 + > hw/scsi/scsi-disk.c| 3 +++ > includ

  1   2   3   >