Re: [Qemu-devel] [PATCH target-arm v8 04/14] arm: xlnx-zynqmp: Add GIC

2015-05-10 Thread Edgar E. Iglesias
On Thu, May 07, 2015 at 05:57:12PM -0700, Peter Crosthwaite wrote: Add the GIC and connect IRQ outputs to the CPUs. The GIC regions are under-decoded through a 64k address region so implement aliases accordingly. Signed-off-by: Peter Crosthwaite peter.crosthwa...@xilinx.com --- changed

[Qemu-devel] [PATCHv2] parallel: Allow to disable CONFIG_PARALLEL

2015-05-10 Thread mrezanin
From: Miroslav Rezanina mreza...@redhat.com Disabling CONFIG_PARALLEL cause build failure as commit 07dc788 factored out initialization to parallel_hds_isa_init function in hw/char/parallel.c that is not build. Stub file is added to be able to disable CONFIG_PARALLEL. This file is used in

Re: [Qemu-devel] [RFC v1 PATCH 2/3] cpus: Convert cpu_index into a bitmap

2015-05-10 Thread Bharata B Rao
On Fri, May 08, 2015 at 11:55:00AM -0300, Eduardo Habkost wrote: On Fri, May 08, 2015 at 03:21:35PM +0530, Bharata B Rao wrote: Currently CPUState.cpu_index is monotonically increasing and a newly created CPU always gets the next higher index. The next available index is calculated by

[Qemu-devel] [PATCH 4/6] ui/cocoa: Declare that QemuCocoaAppController implements NSApplicationDelegate

2015-05-10 Thread Peter Maydell
Our class QemuCocoaAppController implements the NSApplicationDelegate interface, and we pass an object of this class to [NSApp setDelegate]. However, we weren't declaring in the class definition that we implemented this interface; in OSX 10.10 this provokes the following (slighly misleading)

[Qemu-devel] [PATCH 5/6] ui/cocoa: Don't use NSWindow useOptimizedDrawing on OSX 10.10 and up

2015-05-10 Thread Peter Maydell
Starting in OSX 10.10, NSWindow useOptimizedDrawing is deprecated, so don't use it there. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- ui/cocoa.m | 5 + 1 file changed, 5 insertions(+) diff --git a/ui/cocoa.m b/ui/cocoa.m index e7b29e0..fade0fd 100644 --- a/ui/cocoa.m +++

[Qemu-devel] [PATCH 0/6] ui/cocoa: Fix OSX 10.10 warnings (and drop 10.4 support)

2015-05-10 Thread Peter Maydell
This patchset fixes a number of new compile warnings when building on OSX10.10 which were not present on 10.9, which are mostly fixes to avoid deprecated APIs. I've chosen to implement some of them by simply dropping the backward-compatibility support for OSX 10.4. This is basically a pragmatic

[Qemu-devel] [PATCH 6/6] ui/cocoa: Avoid deprecated NSOKButton/NSCancelButton constants

2015-05-10 Thread Peter Maydell
In OSX 10.10, the NSOKButton and NSCancelButton constants are deprecated and provoke compiler warnings. Avoid them by using the NSFileHandlingPanelCancelButton and NSFileHandlingPanelOKButton constants instead. These are the documented correct constants for the 10.6-and-up beginSheetModalForWindow

[Qemu-devel] [PATCH 2/6] ui/cocoa: Remove compatibility ifdefs for OSX 10.4

2015-05-10 Thread Peter Maydell
Remove compatibility ifdefs that work around OSX 10.4 not providing various typedefs and functions. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- ui/cocoa.m | 17 - 1 file changed, 17 deletions(-) diff --git a/ui/cocoa.m b/ui/cocoa.m index 6e69952..f6c5fb4 100644 ---

[Qemu-devel] [PATCH 3/6] ui/cocoa: openPanelDidEnd returnCode should be NSInteger, not int

2015-05-10 Thread Peter Maydell
The type for openPanelDidEnd's returnCode argument should be NSInteger, not int. This only matters for the OSX 10.5 code path where we pass the method directly to an OSX function to call. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- ui/cocoa.m | 4 ++-- 1 file changed, 2

[Qemu-devel] [PATCH 09/10 v10] target-tilegx: Generate tcg instructions to execute to _init_malloc in glib

2015-05-10 Thread Chen Gang
Generate related tcg instructions, and qemu tilegx runs to _init_malloc, but causes assert in _init_malloc. Signed-off-by: Chen Gang gang.chen.5...@gmail.com --- target-tilegx/translate.c | 2889 + 1 file changed, 2889 insertions(+) create mode 100644

[Qemu-devel] [PATCH 10/10 v10] target-tilegx: Add TILE-Gx building files

2015-05-10 Thread Chen Gang
Add related configuration, make files for tilegx. Now, qemu tilegx can pass building. Signed-off-by: Chen Gang gang.chen.5...@gmail.com --- configure | 2 ++ default-configs/tilegx-linux-user.mak | 1 + target-tilegx/Makefile.objs | 1 + 3 files changed, 4

[Qemu-devel] KVM call for agenda 2015-05-12

2015-05-10 Thread Juan Quintela
Hi Please, send any topic that you are interested in covering. Call details: By popular demand, a google calendar public entry with it https://www.google.com/calendar/embed?src=dG9iMXRqcXAzN3Y4ZXZwNzRoMHE4a3BqcXNAZ3JvdXAuY2FsZW5kYXIuZ29vZ2xlLmNvbQ (Let me know if you have any problems

Re: [Qemu-devel] [RFC v1 PATCH 2/3] cpus: Convert cpu_index into a bitmap

2015-05-10 Thread Bharata B Rao
On Fri, May 08, 2015 at 11:57:40AM -0300, Eduardo Habkost wrote: On Fri, May 08, 2015 at 03:21:35PM +0530, Bharata B Rao wrote: [...] void cpu_exec_init(CPUArchState *env, Error **errp) { CPUState *cpu = ENV_GET_CPU(env); CPUClass *cc = CPU_GET_CLASS(cpu); -CPUState

[Qemu-devel] [PATCH 06/10 v10] target-tilegx: Add special register information from Tilera Corporation

2015-05-10 Thread Chen Gang
The related copy is from Linux kernel arch/tile/include/uapi/arch/ spr_def_64.h. Signed-off-by: Chen Gang gang.chen.5...@gmail.com --- target-tilegx/spr_def_64.h | 216 + 1 file changed, 216 insertions(+) create mode 100644 target-tilegx/spr_def_64.h

[Qemu-devel] [PATCH 07/10 v10] target-tilegx: Add cpu basic features for linux-user

2015-05-10 Thread Chen Gang
It implements minimized cpu features for linux-user. Signed-off-by: Chen Gang gang.chen.5...@gmail.com --- target-tilegx/cpu.c | 143 +++ target-tilegx/cpu.h | 156 2 files changed, 299 insertions(+)

[Qemu-devel] [PATCH 08/10 v10] target-tilegx: Add helper features for linux-user

2015-05-10 Thread Chen Gang
Add several helpers for translation. Signed-off-by: Chen Gang gang.chen.5...@gmail.com --- target-tilegx/helper.c | 41 + target-tilegx/helper.h | 3 +++ 2 files changed, 44 insertions(+) create mode 100644 target-tilegx/helper.c create mode 100644

Re: [Qemu-devel] [PATCH] Fix default CPU model for ARM64

2015-05-10 Thread Cole Robinson
On 05/08/2015 03:14 AM, Pavel Fedin wrote: Hello! FWIW virt-manager 1.2.0 (just released) will do the following when creating a new VM: - aarch64 + kvm : -cpu host - aarch64 + tcg : -cpu cortex-a57 - arm32 + kvm : -cpu host - arm32 + tcg : defer to qemu Though if you explicitly

[Qemu-devel] [PATCH 1/6] ui/cocoa: Drop tests for CGImageCreateWithImageInRect support

2015-05-10 Thread Peter Maydell
The code that tries to test at both compiletime and runtime for whether CGImageCreateWithImageInRect is supported provokes a compile warning on OSX 10.3: ui/cocoa.m:378:13: warning: comparison of function 'CGImageCreateWithImageInRect' equal to a null pointer is always

[Qemu-devel] [PATCH 04/10 v10] target-tilegx: Add opcode basic implementation from Tilera Corporation

2015-05-10 Thread Chen Gang
It is copied from Linux kernel arch/tile/include/uapi/arch/ opcode_tilegx.h. Signed-off-by: Chen Gang gang.chen.5...@gmail.com --- target-tilegx/opcode_tilegx.h | 1406 + 1 file changed, 1406 insertions(+) create mode 100644 target-tilegx/opcode_tilegx.h

[Qemu-devel] [Bug 1453613] [NEW] the help message of the set_password subcommand of the qemu monitor isn't usable

2015-05-10 Thread Karl-Philipp Richter
Public bug reported: `help set_password` in qemu monitor prints `set_password protocol password action-if-connected -- set spice/vnc password` which doesn't allow to figure out how to use this subcommand. ** Affects: qemu Importance: Undecided Status: New -- You received this bug

[Qemu-devel] [Bug 1453612] [NEW] set_password command of monitor has poor feedback on failure

2015-05-10 Thread Karl-Philipp Richter
Public bug reported: running `set_password vnc NkkmEz5icvTAGo6MECzBVEUxP` in qemu monitor (which is the appropriate way to set a vnc password according to `man qemu-system-x86_64`) started with `-monitor stdio` gives feedback `Could not set password` which is unhelpful because it doesn't specify

[Qemu-devel] [PATCH 00/10 v10] tilegx: Firstly add tilegx target for linux-user

2015-05-10 Thread Chen Gang
At present, it can run into glibc _init_malloc(), but cause assertion, which should be fixed, next. Since it already has quite a few of code, so send patches firstly, and next, continue fixing the issue. Chen Gang (10): linux-user: tilegx: Firstly add architecture related features

[Qemu-devel] [patch] ui/cocoa.m: Add Machine menu with pause and resume items

2015-05-10 Thread Programmingkid
Adds a Machine menu with a pause and resume menu item. Adds feature that displays the word pause on the screen when paused. Signed-off-by: John Arbuckle programmingk...@gmail.com --- ui/cocoa.m | 79 +++- 1 files changed, 78

[Qemu-devel] [Bug 1453608] [NEW] explain what pcsys_monitor in manpage

2015-05-10 Thread Karl-Philipp Richter
Public bug reported: The specification of vnc passwords seems to have changed. `man qemu- system-x86_64` mentions `set_password` to be used in `pcsys_monitor`. Both are are not further mentioned in the man page and misteriously inexisting in both the web and the source root (as far as `grep -r -I

Re: [Qemu-devel] [PATCH v3] Fixes several full screen issues on Mac OS X

2015-05-10 Thread Programmingkid
On May 10, 2015, at 3:13 PM, Peter Maydell wrote: On 21 January 2015 at 19:25, Programmingkid programmingk...@gmail.com wrote: This patch makes several changes: - Minimizes distorted full screen display by respecting aspect ratios. - Makes full screen mode available on Mac OS 10.7 and

Re: [Qemu-devel] [PULL 18/19] usb: usb-serial QOMify

2015-05-10 Thread Samuel Thibault
Gerd Hoffmann, le Fri 08 May 2015 13:45:52 +0200, a écrit : From: Gonglei arei.gong...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com Signed-off-by: Gerd Hoffmann kra...@redhat.com Acked-by: Samuel Thibault samuel.thiba...@ens-lyon.org Tested-by: Samuel Thibault

Re: [Qemu-devel] [PATCH] ui/cocoa.m: Give laptop users ability to scroll in monitor

2015-05-10 Thread Peter Maydell
On 16 March 2015 at 14:45, Programmingkid programmingk...@gmail.com wrote: On Mar 16, 2015, at 10:43 AM, Peter Maydell wrote: On 16 March 2015 at 14:38, Programmingkid programmingk...@gmail.com wrote: On Mar 16, 2015, at 10:00 AM, Peter Maydell wrote: On 16 March 2015 at 13:48, Daniel P.

Re: [Qemu-devel] [PATCH] ui/cocoa.m: Give laptop users ability to scroll in monitor

2015-05-10 Thread Peter Maydell
On 10 May 2015 at 23:34, Peter Maydell peter.mayd...@linaro.org wrote: I've now tested again with my not-just-the-laptop setup, and: * in the guest OS (I tested with a Linux guest), PageUp/Down work OK and work the same whether I use an external USB keyboard with a physical PgUp/Down

[Qemu-devel] [PATCH v4] ui/cocoa.m: Adds console items to the View menu

2015-05-10 Thread Programmingkid
This patch adds the VGA, Monitor, Serial, and Parallel menu item to the view menu. Signed-off-by: John Arbuckle programmingk...@gmail.com --- Removed all code added in console.c. Used existing console code in place of new console code. Added several console global variables to keep track of

[Qemu-devel] [PATCH 01/10 v10] linux-user: tilegx: Firstly add architecture related features

2015-05-10 Thread Chen Gang
They are based on Linux kernel tilegx architecture for 64 bit binary, and also based on tilegx ABI reference document, and also reference from other targets implementations. Signed-off-by: Chen Gang gang.chen.5...@gmail.com --- linux-user/tilegx/syscall.h| 35 +

[Qemu-devel] [PATCH 02/10 v10] linux-user: Support tilegx architecture in linux-user

2015-05-10 Thread Chen Gang
Add main working flow feature, system call processing feature, and elf64 tilegx binary loading feature, based on Linux kernel tilegx 64-bit implementation. Signed-off-by: Chen Gang gang.chen.5...@gmail.com --- include/elf.h | 2 + linux-user/elfload.c | 23 +++

[Qemu-devel] [PATCH 03/10 v10] linux-user/syscall.c: Conditionalize syscalls which are not defined in tilegx

2015-05-10 Thread Chen Gang
Some of architectures (e.g. tilegx), several syscall macros are not supported, so switch them. Signed-off-by: Chen Gang gang.chen.5...@gmail.com --- linux-user/syscall.c | 50 +- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git

Re: [Qemu-devel] [RFC 1/8] cputlb: add physical address to CPUTLBEntry

2015-05-10 Thread Emilio G. Cota
On Fri, May 08, 2015 at 14:51:58 -0700, Richard Henderson wrote: Ouch. 24 of 64 wasted bytes for 64-bit? I wonder if there's a better way we can encode this to avoid 3 copies of the virtual address for read/write/code. Or if we're better off using more than one insn to multiply by a

Re: [Qemu-devel] [PATCH 06/12 v9] target-tilegx: Add cpu basic features for linux-user

2015-05-10 Thread Chen Gang
After have a check again, for me, I'd like to simply remove it firstly, since it is only for system mode. - At present, we are only focus on user mode, and which I haven't done quite well. - After we finish user mode, and start system mode, then can add it. - In this way, this feature

Re: [Qemu-devel] [PATCH v4] block/vdi: Use bdrv_flush after metadata updates

2015-05-10 Thread phoeagon
I'm not familiar with the VirtualBox code base, but looks like vdIOIntWriteMeta can work both synchronously asynchronously, and vdiBlockAllocUpdate looks async to me. Frankly, skimming through the code for 5 min doesn't enlighten me too much on its detailed implementation, but looks like at

Re: [Qemu-devel] [PATCH v4] block/vdi: Use bdrv_flush after metadata updates

2015-05-10 Thread Stefan Weil
Am 10.05.2015 um 18:10 schrieb Paolo Bonzini: On 10/05/2015 18:02, Stefan Weil wrote: Since the default qemu-img convert case isn't slowed down, I would think that correctness trumps performance. Nevertheless, it's a huge difference. I doubt that the convert case isn't slowed down. The

Re: [Qemu-devel] [PATCH v2 0/5] Some fixes related to scsi-generic

2015-05-10 Thread Paolo Bonzini
On 08/05/2015 19:47, Dimitris Aragiorgis wrote: Hi all, These four patches make slight changes to the way QEMU handles SCSI generic devices to fix a number of small problems. I am sending them against the master branch, since I don't know if they can be considered bugfixes. Thanks,

Re: [Qemu-devel] Help with deadlock when using sound

2015-05-10 Thread Paolo Bonzini
On 06/05/2015 18:40, Programmingkid wrote: When I try to use the pcspk sound hardware, QEMU freezes and uses 100% of the cpu time. This is the command I use: qemu-system-i386 -cdrom anything you wan here -soundhw pcspk This looks like a deadlock situation because some unknown code called

Re: [Qemu-devel] [PATCH v4] block/vdi: Use bdrv_flush after metadata updates

2015-05-10 Thread phoeagon
Just for clarity, I was not writing to tmpfs. I was READING from tmpfs. I was writing to a path named 'sdb' (as you see in the prompt) which is a btrfs on an SSD Drive. I don't have an HDD to test on though. On Mon, May 11, 2015 at 12:02 AM Stefan Weil s...@weilnetz.de wrote: Am 10.05.2015 um

Re: [Qemu-devel] [PULL 1/9] kvm: Silence warning from valgrind

2015-05-10 Thread Paolo Bonzini
On 09/05/2015 08:51, Thomas Huth wrote: On Fri, 8 May 2015 14:48:56 +0200 Paolo Bonzini pbonz...@redhat.com wrote: From: Thomas Huth th...@redhat.com valgrind complains here about uninitialized bytes with the following message: ==17814== Syscall param ioctl(generic) points to

Re: [Qemu-devel] Help with deadlock when using sound

2015-05-10 Thread Programmingkid
On May 9, 2015, at 6:00 PM, Peter Maydell wrote: On 9 May 2015 at 22:42, Programmingkid programmingk...@gmail.com wrote: Where you able to see the new stack trace I sent? If so, any idea what could be wrong? Did you see the mail I sent where I asked you to try sending the monitor

Re: [Qemu-devel] [PATCH v4] block/vdi: Use bdrv_flush after metadata updates

2015-05-10 Thread Paolo Bonzini
On 09/05/2015 05:54, phoeagon wrote: zheq-PC sdb # time ~/qemu-sync-test/bin/qemu-img convert -f raw -t writeback -O vdi /run/shm/rand 1.vdi real0m8.678s user0m0.169s sys0m0.500s zheq-PC sdb # time qemu-img convert -f raw -t writeback -O vdi /run/shm/rand 1.vdi real0m4.320s

Re: [Qemu-devel] Help with deadlock when using sound

2015-05-10 Thread Paolo Bonzini
On 10/05/2015 16:54, Paolo Bonzini wrote: Reproduced with a FreeDOS image from QEMU Advent Calendar. It locks up as soon as you type beep. It works with the PulseAudio and ALSA backends, but it doesn't with the SDL backend, even on Linux. Also, it deadlocks even with KVM enabled. Hmm,

Re: [Qemu-devel] [PATCH v4] block/vdi: Use bdrv_flush after metadata updates

2015-05-10 Thread Paolo Bonzini
On 10/05/2015 18:02, Stefan Weil wrote: Since the default qemu-img convert case isn't slowed down, I would think that correctness trumps performance. Nevertheless, it's a huge difference. I doubt that the convert case isn't slowed down. The *default* convert case isn't slowed down

Re: [Qemu-devel] [PATCH v4] block/vdi: Use bdrv_flush after metadata updates

2015-05-10 Thread Stefan Weil
Am 10.05.2015 um 17:01 schrieb Paolo Bonzini: On 09/05/2015 05:54, phoeagon wrote: zheq-PC sdb # time ~/qemu-sync-test/bin/qemu-img convert -f raw -t writeback -O vdi /run/shm/rand 1.vdi real0m8.678s user0m0.169s sys0m0.500s zheq-PC sdb # time qemu-img convert -f raw -t writeback -O vdi

Re: [Qemu-devel] [PATCH v2] Fixes key mapping so all keys work

2015-05-10 Thread Peter Maydell
On 15 January 2015 at 21:13, Programmingkid programmingk...@gmail.com wrote: Fixes keyboard mapping so right shift, right command, right option, right control, keypad period, keypad '=', keypad enter, and F13 all work. Signed-off-by: John Arbuckle programmingk...@gmail.com --- Undid most

Re: [Qemu-devel] [aswg-chair] register QEMU ACPI ID

2015-05-10 Thread Doran, Mark
Hi Michael: Fortunately the ID element of ACPI in and of itself can be discussed in public forum venues so no problem to copy the mailing list (added to cc for this reply). I don't know that naming a project that is not a legally identifiable entity will cause an issue. I just live in the

Re: [Qemu-devel] [PATCH v3] Fixes several full screen issues on Mac OS X

2015-05-10 Thread Peter Maydell
On 21 January 2015 at 19:25, Programmingkid programmingk...@gmail.com wrote: This patch makes several changes: - Minimizes distorted full screen display by respecting aspect ratios. - Makes full screen mode available on Mac OS 10.7 and higher. - Allows user to decide if video should be

Re: [Qemu-devel] [PATCH v3] ui/cocoa.m: Adds console items to the View menu

2015-05-10 Thread Peter Maydell
On 14 February 2015 at 15:50, Programmingkid programmingk...@gmail.com wrote: Adds these items to the View menu: VGA Monitor Serial Parallel Signed-off-by: John Arbuckle programmingk...@gmail.com +// Creates the view menu +static void create_view_menu() +{ +NSMenu * menu; +

Re: [Qemu-devel] [PATCH v5] ui/cocoa.m: Machine menu patch for Mac OS X

2015-05-10 Thread Peter Maydell
On 17 February 2015 at 04:55, Programmingkid programmingk...@gmail.com wrote: Added features: Menu items to switch floppy and CD image files. Menu items to eject floppy and CD image files. Menu item to use /dev/cdrom. Verifies with the user before quitting QEMU by displaying a dialog box.

Re: [Qemu-devel] Help with deadlock when using sound

2015-05-10 Thread Programmingkid
On May 10, 2015, at 10:54 AM, Paolo Bonzini wrote: On 06/05/2015 18:40, Programmingkid wrote: When I try to use the pcspk sound hardware, QEMU freezes and uses 100% of the cpu time. This is the command I use: qemu-system-i386 -cdrom anything you wan here -soundhw pcspk This looks

Re: [Qemu-devel] [PATCH v4] Makefile.target: set icon for binary file on Mac OS X

2015-05-10 Thread Peter Maydell
On 21 February 2015 at 16:14, Programmingkid programmingk...@gmail.com wrote: Implements setting the icon for the binary file in Mac OS X. Signed-off-by: John Arbuckle programmingk...@gmail.com --- Added $(SRC_PATH) to the path of the rsrc file. Makefile.target |4 +