[Qemu-devel] [PATCH] vmstate: Define VARRAY with VMS_ALLOC

2015-02-22 Thread Alexey Kardashevskiy
This allows dynamic allocation for migrating arrays; copied from VMSTATE_VARRAY_UINT32 and added VMS_ALLOC. Signed-off-by: Alexey Kardashevskiy --- This will be used to migrate IOMMU table (sPAPRTCETable) which may or may not have an actual table allocated; and if allocated, the size is not pre-

[Qemu-devel] [RFC PATCH] utils: Add up_pow_of_two()

2015-02-22 Thread Alexey Kardashevskiy
This adds a helper to get closest bigger power-of-two value. Signed-off-by: Alexey Kardashevskiy --- It is a log2 of round up to power of two. Is there anything like this in QEMU already? Any better name than up_pow_of_two()? I'll use this little helper later to calculate a DMA window shift as

Re: [Qemu-devel] [PATCH 00/11] target-aarch64 fix and improvments

2015-02-22 Thread Laurent Desnogues
Hi Richard, On Thu, Feb 19, 2015 at 10:14 PM, Richard Henderson wrote: > While doing the mechanics of a previous patch set converting > translators to use to TCGLabel pointers, I was reminded of > several outstanding OPTME comments in the aarch64 translator. > > I had started with the csel change

Re: [Qemu-devel] [PATCH 10/11] target-arm: Implement fccmp branchless

2015-02-22 Thread Laurent Desnogues
Hi Richard, On Fri, Feb 20, 2015 at 4:53 PM, Richard Henderson wrote: > On 02/20/2015 05:57 AM, Laurent Desnogues wrote: >> The problem with this approach is that you'll always call the FP >> compare which might result in FP flags corruption. >> >> The ARMv8 manual clearly states that the FP comp

Re: [Qemu-devel] [PATCH] tcg: Complete handling of ALWAYS and NEVER

2015-02-22 Thread Laurent Desnogues
Hi Richard, On Fri, Feb 20, 2015 at 8:19 PM, Richard Henderson wrote: > Missing from movcond, and brcondi_i32 (but not brcondi_i64). > > Signed-off-by: Richard Henderson Tested-by: Laurent Desnogues > --- > tcg/tcg-op.c | 22 +- > 1 file changed, 17 insertions(+), 5 delet

Re: [Qemu-devel] [RFC PATCH v1 04/13] spapr: Factor out CPU initialization code into realizefn

2015-02-22 Thread Bharata B Rao
On Fri, Jan 30, 2015 at 01:19:39PM +0530, Bharata B Rao wrote: > On Thu, Jan 29, 2015 at 12:07:42PM +1100, David Gibson wrote: > > On Thu, Jan 08, 2015 at 11:40:11AM +0530, Bharata B Rao wrote: > > > Move some CPU initialization code from machine init function to > > > CPU realizefn so that it can

Re: [Qemu-devel] [PATCH] Fix crash when connecting to VNC through websocket

2015-02-22 Thread Gerd Hoffmann
On So, 2015-02-22 at 22:58 +0100, Jorge Acereda MaciĆ” wrote: > Connecting to VNC through websocket crashes in vnc_flush() when trying > to acquire a mutex that hasn't been initialized (vnc_init_state(vs) > hasn't been called at this point). Added to vnc queue. thanks, Gerd

[Qemu-devel] [PATCH] Fix crash when connecting to VNC through websocket

2015-02-22 Thread Jorge Acereda MaciĆ”
Connecting to VNC through websocket crashes in vnc_flush() when trying to acquire a mutex that hasn't been initialized (vnc_init_state(vs) hasn't been called at this point). Signed-off-by: Jorge Acereda Macia --- ui/vnc-ws.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/u

Re: [Qemu-devel] [PATCH 3/5] ui/vnc: Remove vnc_stop_worker_thread()

2015-02-22 Thread Gerd Hoffmann
On Do, 2015-02-19 at 18:12 +0100, Thomas Huth wrote: > This function is not used anymore, let's remove it. Reviewed-by: Gerd Hoffmann

Re: [Qemu-devel] [PATCH 2/5] ui: Removed unused functions

2015-02-22 Thread Gerd Hoffmann
On Do, 2015-02-19 at 18:12 +0100, Thomas Huth wrote: > Remove qemu_console_displaystate(), qemu_remove_kbd_event_handler(), > qemu_different_endianness_pixelformat() and cpkey(), since they are > completely unused. Reviewed-by: Gerd Hoffmann

Re: [Qemu-devel] [PATCH v5 02/16] spapr_drc: initial implementation of sPAPRDRConnector device

2015-02-22 Thread David Gibson
On Mon, Feb 16, 2015 at 08:27:38AM -0600, Michael Roth wrote: > This device emulates a firmware abstraction used by pSeries guests to > manage hotplug/dynamic-reconfiguration of host-bridges, PCI devices, > memory, and CPUs. It is conceptually similar to an SHPC device, > complete with LED indicato

Re: [Qemu-devel] [PATCH 0/6 v4] tilegx: Can load elf64 tilegx binary successfully for linux-user

2015-02-22 Thread Chen Gang S
On 2/23/15 02:29, Richard Henderson wrote: > On 02/22/2015 05:31 AM, Chen Gang S wrote: >> Chen Gang (6): >> target-tilegx: Firstly add to qemu with minimized features >> linux-user: tilegx: Firstly add architecture related features >> linux-user: tilegx: Add target features support within qe

Re: [Qemu-devel] [PATCH 0/6 v4] tilegx: Can load elf64 tilegx binary successfully for linux-user

2015-02-22 Thread Chen Gang S
On 2/23/15 06:32, Bastian Koppelmann wrote: > > On 02/22/2015 01:31 PM, Chen Gang S wrote: >> Chen Gang (6): >>target-tilegx: Firstly add to qemu with minimized features >>linux-user: tilegx: Firstly add architecture related features >>linux-user: tilegx: Add target features support wi

Re: [Qemu-devel] [PATCH 2/3] spapr: Clean up misuse of qdev_init() in xics-kvm creation

2015-02-22 Thread David Gibson
On Wed, Feb 18, 2015 at 03:42:44PM +0100, Markus Armbruster wrote: > David, your commit 11ad93f suggests you're highly qualified to review. > No good deed shall go unpunished ;) Sorry, I somehow missed this one. Reivewed-by: David Gibson Though apparently Alex has merged it already, so I guess

Re: [Qemu-devel] [PATCH 0/6 v4] tilegx: Can load elf64 tilegx binary successfully for linux-user

2015-02-22 Thread Bastian Koppelmann
On 02/22/2015 01:31 PM, Chen Gang S wrote: Chen Gang (6): target-tilegx: Firstly add to qemu with minimized features linux-user: tilegx: Firstly add architecture related features linux-user: tilegx: Add target features support within qemu linux-user: Support tilegx architecture in sy

Re: [Qemu-devel] [PATCH 15/16] ipmi: Add ACPI table entries for BMCs

2015-02-22 Thread Benjamin Herrenschmidt
On Thu, 2015-02-19 at 21:16 -0600, Corey Minyard wrote: > However, there is another pressing concern, assuming your device is on > the ISA bus, and that's the default address, interrupt, etc. It may > vary from platform to platform, and it would be nice to have a way for > it to be set more automa

Re: [Qemu-devel] [PATCH 0/6 v4] tilegx: Can load elf64 tilegx binary successfully for linux-user

2015-02-22 Thread Richard Henderson
On 02/22/2015 05:31 AM, Chen Gang S wrote: > Chen Gang (6): > target-tilegx: Firstly add to qemu with minimized features > linux-user: tilegx: Firstly add architecture related features > linux-user: tilegx: Add target features support within qemu > linux-user: Support tilegx architecture in

Re: [Qemu-devel] [PATCH 0/3] Support streaming to an intermediate layer

2015-02-22 Thread Alberto Garcia
On Fri, Feb 20, 2015 at 03:49:05PM -0700, Eric Blake wrote: Hello and thanks for your comments. > 1. implement QAPI introspection (we've been dreaming about this > since qemu 1.5 days), then the caller just queries to see if the > version of QMP has the optional 'top' parameter. This sounds like

[Qemu-devel] [PATCH 6/6 v4] linux-user/syscall.c: Switch all macros which are not defined in tilegx

2015-02-22 Thread Chen Gang S
For tilegx, several syscall macros are not supported, so switch them to avoid building break. Signed-off-by: Chen Gang --- linux-user/syscall.c | 50 +- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user

[Qemu-devel] [PATCH 5/6 v4] linux-user: Support tilegx architecture in linux-user

2015-02-22 Thread Chen Gang S
Add main working flow feature and loading elf64 tilegx binary feature, based on Linux kernel tilegx 64-bit implementation. After this patch, qemu can successfully load elf64 tilegx binary for linux-user, and the working flow reaches the first correct instruction position "__start". Signed-off-by:

[Qemu-devel] [PATCH 4/6 v4] linux-user: Support tilegx architecture in syscall

2015-02-22 Thread Chen Gang S
Add tilegx architecture in "syscall_defs.h", all related features (ioctrl, and stat) are based on Linux kernel tilegx 64-bit implementation. Signed-off-by: Chen Gang --- linux-user/syscall_defs.h | 38 ++ 1 file changed, 34 insertions(+), 4 deletions(-) diff

[Qemu-devel] [PATCH 3/6 v4] linux-user: tilegx: Add target features support within qemu

2015-02-22 Thread Chen Gang S
They are for target features within qemu which independent from outside. Signed-off-by: Chen Gang --- linux-user/tilegx/target_cpu.h | 35 +++ linux-user/tilegx/target_signal.h | 28 ++ linux-user/tilegx/target_structs.h | 48 +

[Qemu-devel] [PATCH 1/6 v4] target-tilegx: Firstly add to qemu with minimized features

2015-02-22 Thread Chen Gang S
It almost likes a template for adding an architecture target. Signed-off-by: Chen Gang --- configure | 7 ++ default-configs/tilegx-linux-user.mak | 1 + target-tilegx/Makefile.objs | 1 + target-tilegx/cpu-qom.h | 72 +++ ta

[Qemu-devel] [PATCH 0/6 v4] tilegx: Can load elf64 tilegx binary successfully for linux-user

2015-02-22 Thread Chen Gang S
After load elf64 tilegx binary for linux-user, the working flow reaches 1st correct instruction "__start". Next, we shall load all instructions for qemu using. This patch is based on Linux kernel tile architecture tilegx 64-bit implementation, and also based on tilegx architecture ABI reference.

Re: [Qemu-devel] [PATCH v3 0/3] -incoming defer

2015-02-22 Thread Michael S. Tsirkin
On Thu, Feb 19, 2015 at 11:40:26AM +, Dr. David Alan Gilbert (git) wrote: > From: "Dr. David Alan Gilbert" > > This patchset provides a way of setting options on an incoming > migration before the fd/process/socket has been created. > >start qemu with -incoming defer > >migrate

[Qemu-devel] (no subject)

2015-02-22 Thread Sunil Kumar
Hi, I ran into an issue where the OVA created from the VMDK file created by qemu-img is rejected by vSphere with a message like "Not a supported disk format (sparse VMDK too old)". I was looking through the archives and found this: http://lists.gnu.org/archive/html/qemu-devel/2014-08/msg01028.

[Qemu-devel] vmdk: improve streamOptimized vmdk support

2015-02-22 Thread Sunil Kumar
Hi, I ran into an issue where the OVA created from the VMDK file created by qemu-img is rejected by vSphere with a message like "Not a supported disk format (sparse VMDK too old)". I was looking through the archives and found this: http://lists.gnu.org/archive/html/qemu-devel/2014-08/msg01028.

Re: [Qemu-devel] vmdk: improve streamOptimized vmdk support

2015-02-22 Thread Sunil Kumar
No idea why it ate the subject? -devsk wrote: Hi, I ran into an issue where the OVA created from the VMDK file created by qemu-img is rejected by vSphere with a message like "Not a supported disk format (sparse VMDK too old)". I was looking through the archives and found this: http://lists