[Qemu-devel] Simulate input events

2015-01-19 Thread Manoj Subramaniam
Hello, I’d like to simulate mouse/keyboard input events to a qemu guest. I am planning to hijack the sdl_refresh function in ui/sdl.c. Is that the right approach? Also, is there a way to build QEMU as a library that can be called from another application that can send such inputs? - Manoj

Re: [Qemu-devel] [v3 3/5] Qemu-Xen-vTPM: Register Xen stubdom vTPM frontend driver

2015-01-19 Thread Xu, Quan
-Original Message- From: Stefano Stabellini [mailto:stefano.stabell...@eu.citrix.com] Sent: Tuesday, January 20, 2015 1:19 AM To: Xu, Quan Cc: qemu-devel@nongnu.org; xen-de...@lists.xen.org; stefano.stabell...@eu.citrix.com Subject: Re: [v3 3/5] Qemu-Xen-vTPM: Register Xen stubdom

[Qemu-devel] [PATCH 0/2] virtio-blk: Switch to blk_aio_ioctl

2015-01-19 Thread Fam Zheng
There are user complaints on guest's unresponsiveness when ioctl is blocked due to the lost connection to backend or other issues. This series changes scsi request processing of virtio-blk to an asynchronous manner. Fam Zheng (2): virtio-blk: Pass req to virtio_blk_handle_scsi_req

[Qemu-devel] [PATCH 1/2] virtio-blk: Pass req to virtio_blk_handle_scsi_req

2015-01-19 Thread Fam Zheng
In preparation for calling blk_aio_ioctl. Also make the function static as no other files need it. Signed-off-by: Fam Zheng f...@redhat.com --- hw/block/virtio-blk.c | 9 + include/hw/virtio/virtio-blk.h | 3 --- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git

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

2015-01-19 Thread Chen, Tiejun
On 2015/1/19 19:36, Gerd Hoffmann wrote: On Mo, 2015-01-19 at 17:28 +0800, Tiejun Chen wrote: From: Michael S. Tsirkin m...@redhat.com Xen wants to supply a different pci and host devices, inheriting i440fx devices. Make types configurable. Description is misleading, this isn't about xen but

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

2015-01-19 Thread Chen, Tiejun
On 2015/1/19 19:40, Gerd Hoffmann wrote: On Mo, 2015-01-19 at 17:28 +0800, Tiejun Chen wrote: +static void xen_igd_passthrough_i440fx_class_init(ObjectClass *klass, + void *data) +{ +DeviceClass *dc = DEVICE_CLASS(klass); + +dc-desc = IGD

Re: [Qemu-devel] [v3 3/5] Qemu-Xen-vTPM: Register Xen stubdom vTPM frontend driver

2015-01-19 Thread Xu, Quan
-Original Message- From: Stefano Stabellini [mailto:stefano.stabell...@eu.citrix.com] Sent: Tuesday, January 20, 2015 1:15 AM To: Xu, Quan Cc: qemu-devel@nongnu.org; xen-de...@lists.xen.org; stefano.stabell...@eu.citrix.com Subject: Re: [v3 3/5] Qemu-Xen-vTPM: Register Xen stubdom

[Qemu-devel] [PATCH 3/5] target-arm: Add 32/64-bit register sync

2015-01-19 Thread Greg Bellows
Add AArch32 to AArch64 register sychronization functions. Replace manual register synchronization with new functions in aarch64_cpu_do_interrupt() and HELPER(exception_return)(). Signed-off-by: Greg Bellows greg.bell...@linaro.org --- target-arm/helper-a64.c | 5 +-- target-arm/internals.h |

Re: [Qemu-devel] [v6][PATCH 07/10] xen, gfx passthrough: register a isa bridge

2015-01-19 Thread Chen, Tiejun
On 2015/1/19 21:58, Michael S. Tsirkin wrote: On Mon, Jan 19, 2015 at 12:57:18PM +0100, Gerd Hoffmann wrote: On Mo, 2015-01-19 at 17:28 +0800, Tiejun Chen wrote: Currently IGD drivers always need to access PCH by 1f.0. But we Obvious question: q35? q35 already has a isa bridge @ 0x1f.0.

[Qemu-devel] [PATCH 2/2] virtio-blk: Use blk_aio_ioctl

2015-01-19 Thread Fam Zheng
Use the asynchronous interface of ioctl. This will not make the VM unresponsive if the ioctl takes a long time. Signed-off-by: Fam Zheng f...@redhat.com --- hw/block/virtio-blk.c | 125 +++--- 1 file changed, 79 insertions(+), 46 deletions(-) diff

[Qemu-devel] [PATCH 4/5] target-arm: Add AArch32 guest support to KVM64

2015-01-19 Thread Greg Bellows
Add 32-bit to/from 64-bit register synchronization on register gets and puts. Set EL1_32BIT feature flag passed to KVM Signed-off-by: Greg Bellows greg.bell...@linaro.org --- target-arm/kvm64.c | 21 + 1 file changed, 17 insertions(+), 4 deletions(-) diff --git

Re: [Qemu-devel] [PATCH v7 05/32] target-arm: make arm_current_el() return EL3

2015-01-19 Thread Edgar E. Iglesias
On Mon, Jan 19, 2015 at 11:30:51AM -0800, Richard Henderson wrote: On 01/19/2015 11:00 AM, Peter Maydell wrote: Alternatively (better!), for a lot of the tlb_flush()es triggered by target-arm code we could be more precise about the affected mmu_idx values, since the common case is going to

Re: [Qemu-devel] [v3 2/5] Qemu-Xen-vTPM: Xen frontend driver infrastructure

2015-01-19 Thread Xu, Quan
-Original Message- From: Stefano Stabellini [mailto:stefano.stabell...@eu.citrix.com] Sent: Tuesday, January 20, 2015 1:15 AM To: Xu, Quan Cc: qemu-devel@nongnu.org; xen-de...@lists.xen.org; stefano.stabell...@eu.citrix.com Subject: Re: [v3 2/5] Qemu-Xen-vTPM: Xen frontend driver

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

2015-01-19 Thread Chen, Tiejun
On 2015/1/19 19:36, Gerd Hoffmann wrote: On Mo, 2015-01-19 at 17:28 +0800, Tiejun Chen wrote: From: Michael S. Tsirkin m...@redhat.com Xen wants to supply a different pci and host devices, inheriting i440fx devices. Make types configurable. Description is misleading, this isn't about xen but

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

2015-01-19 Thread Chen, Tiejun
On 2015/1/20 12:28, Jike Song wrote: On 01/20/2015 10:52 AM, Chen, Tiejun wrote: On 2015/1/19 19:40, Gerd Hoffmann wrote: On Mo, 2015-01-19 at 17:28 +0800, Tiejun Chen wrote: +static void xen_igd_passthrough_i440fx_class_init(ObjectClass *klass, +

[Qemu-devel] [PATCH 5/5] target-arm: Adjust kernel load address for Image

2015-01-19 Thread Greg Bellows
Adjust the kernel load offset by 0x8000 if not a zImage. Signed-off-by: Pranavkumar Sawargaonkar address@hidden Signed-off-by: Greg Bellows greg.bell...@linaro.org --- hw/arm/boot.c | 33 - 1 file changed, 32 insertions(+), 1 deletion(-) diff --git

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

2015-01-19 Thread Chen, Tiejun
On 2015/1/19 19:45, Gerd Hoffmann wrote: On Mo, 2015-01-19 at 17:28 +0800, Tiejun Chen wrote: +DEF(gfx_passthru, 0, QEMU_OPTION_gfx_passthru, +-gfx_passthru enable Intel IGD passthrough by XEN\n, +QEMU_ARCH_ALL) +STEXI +@item -gfx_passthru +@findex -gfx_passthru +Enable Intel IGD

Re: [Qemu-devel] [PATCH v0 0/2] Fix pc DIMMs capacity calculation

2015-01-19 Thread Bharata B Rao
On Mon, Jan 12, 2015 at 9:32 AM, Bharata B Rao bhar...@linux.vnet.ibm.com wrote: 1st patch fixes PC DIMMs capacity calculation and the 2nd patch does code movement so that pc_existing_dimms_capacity() can be used by other architectures. Bharata B Rao (2): pc: Fix DIMMs capacity calculation

[Qemu-devel] [PATCH 1/5] target-arm: Add ARM CPU feature parsing

2015-01-19 Thread Greg Bellows
Adds a CPU feature parsing function and assigns to the CPU class. The only feature added was -aarch64 which disabled the AArch64 execution state on a 64-bit ARM CPU. Also adds stripping of features from CPU model string in acquiring the ARM CPU by name. Signed-off-by: Greg Bellows

[Qemu-devel] [PATCH 2/5] target-arm: Add feature parsing to virt

2015-01-19 Thread Greg Bellows
Added machvirt parsing of feature keywords added to the -cpu command line option. Parsing occurs during machine initialization. Signed-off-by: Greg Bellows greg.bell...@linaro.org --- hw/arm/virt.c | 21 +++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git

Re: [Qemu-devel] [PATCH] pc-dimm: fix checking for backend memory size

2015-01-19 Thread Zhu Guihua
On Mon, 2015-01-19 at 16:55 +0100, Igor Mammedov wrote: On Fri, 16 Jan 2015 13:45:06 +0800 Zhu Guihua zhugh.f...@cn.fujitsu.com wrote: If hot add 100MiB memory like this: (monitor) object_add memory-backend-ram,id=ram0,size=100M (monitor) device_add pc-dimm,id=d0,memdev=ram0 The

Re: [Qemu-devel] [PATCH v3 0/5] QEMU:Xen stubdom vTPM for HVM virtual machine

2015-01-19 Thread Xu, Quan
-Original Message- From: Stefano Stabellini [mailto:stefano.stabell...@eu.citrix.com] Sent: Tuesday, January 20, 2015 1:53 AM To: Stefano Stabellini Cc: Xu, Quan; qemu-devel@nongnu.org; xen-de...@lists.xen.org; lcapitul...@redhat.com; ebl...@redhat.com; arm...@redhat.com;

Re: [Qemu-devel] [RFC] Support to boot for vhost-scsi device?

2015-01-19 Thread Paolo Bonzini
On 19/01/2015 04:34, Gonglei (Arei) wrote: At present, vhost-scsi device do not boot in Qemu, but some clients/users have requirements for that in some scenarios. Of course if we want complete the aim we should make some changes both Qemu and kernel (vhost-scsi driver module, it need to add

[Qemu-devel] [PATCH v2] sheepdog: selectable object size support

2015-01-19 Thread Teruaki Ishizaki
Previously, qemu block driver of sheepdog used hard-coded VDI object size. This patch enables users to handle block_size_shift value for calculating VDI object size. When you start qemu, you don't need to specify additional command option. But when you create the VDI which doesn't have default

Re: [Qemu-devel] [RFC PATCH v7 12/21] replay: recording and replaying clock ticks

2015-01-19 Thread Pavel Dovgaluk
From: Paolo Bonzini [mailto:pbonz...@redhat.com] On 19/01/2015 14:10, Pavel Dovgaluk wrote: Because 'A' is written only inside some of the replay_run_event callbacks. It depends on type of the event and it's processing function inside the QEMU core. There could be no

Re: [Qemu-devel] [PATCH v3 0/3] move ssdt-misc.dsl to the DSDT

2015-01-19 Thread Paolo Bonzini
On 19/01/2015 22:31, Michael S. Tsirkin wrote: On Mon, Jan 19, 2015 at 05:56:24PM +0100, Paolo Bonzini wrote: See v2 for motivation. v2-v3: dropped pointer passing and patch 4. Thanks! Igor - ok with you? FWIW I'm okay with moving stuff back to the SSDT as part of Igor's other ACPI

Re: [Qemu-devel] [PULL 0/8] ui: add shared surface format negotiation.

2015-01-19 Thread Gerd Hoffmann
Hi, Applied, thanks. You forgot to add your maintainer's signoff to one of Ben's patches. Since it was a one-liner I didn't think it was worth bouncing the pullreq for, but you might want to consider adding something to your pre-pull sanity checks. checkpatch already does that and is

Re: [Qemu-devel] [PATCH 4/4] vhost-scsi: add an ioctl interface to get target id

2015-01-19 Thread Michael S. Tsirkin
On Mon, Jan 19, 2015 at 09:23:38PM +0800, arei.gong...@huawei.com wrote: From: Gonglei arei.gong...@huawei.com Because vhost-scsi module do not support VHOST_SCSI_GET_TPGT at present, so I use #if 0 handle it, and set the target default to 1. In addition, channel and lun both are 0 for

Re: [Qemu-devel] [RFC 42/47] acpi: make tables linker-loader available to other targets

2015-01-19 Thread Michael S. Tsirkin
On Mon, Jan 19, 2015 at 01:36:36PM +0100, Paolo Bonzini wrote: On 19/12/2014 03:02, Igor Mammedov wrote: keeping bios-linker-loader.c i386 specific would break build of mips target which is built with CONFIG_ACPI which would dependend on it in following patch that adds acpi_def_block()

Re: [Qemu-devel] [RFC 41/47] pc: acpi-build: create PCI0._CRS dynamically

2015-01-19 Thread Michael S. Tsirkin
On Mon, Jan 19, 2015 at 01:42:25PM +0100, Paolo Bonzini wrote: On 19/12/2014 03:02, Igor Mammedov wrote: Replace template patching and runtime calculation in _CRS() method with static _CRS defined in SSDT. It also drops manual hole patching for reserved PCI/MEM/CPU hoptlug MMIO

Re: [Qemu-devel] [PATCH 0/2] m48t59: add year offset and MMIO ISA mapping

2015-01-19 Thread Hervé Poussineau
Le 19/01/2015 12:35, Mark Cave-Ayland a écrit : This patch lays the groundwork for switching sun4u over from ioport NVRAM access to MMIO NVRAM access. Patch 1 introduces a new year_offset property which is the offset between the year value stored in hardware and the actual year. In particular,

[Qemu-devel] [PATCH 3/4] m48t59: add a Nvram interface

2015-01-19 Thread Hervé Poussineau
Signed-off-by: Hervé Poussineau hpous...@reactos.org --- hw/timer/m48t59.c | 59 + include/hw/timer/m48t59.h | 24 ++ 2 files changed, 83 insertions(+) diff --git a/hw/timer/m48t59.c b/hw/timer/m48t59.c index

[Qemu-devel] [PATCH 1/4] m48t59: move ISA ports/memory regions registration to QOM constructor

2015-01-19 Thread Hervé Poussineau
-device m48t59_isa can now be used to create a fully functional nvram. Signed-off-by: Hervé Poussineau hpous...@reactos.org --- hw/timer/m48t59.c | 25 + 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/hw/timer/m48t59.c b/hw/timer/m48t59.c index

[Qemu-devel] [PATCH 0/4] timer/m48t59: QOM'ify

2015-01-19 Thread Hervé Poussineau
Hi, This patchset QOM'ifies the m48t59 timer. Patch 1 allows the creation of the m4859 ISA device from the command line. Patch 2 QOM'ifies the device. Patches 3 add a Nvram interface to m48txx devices, so that callers can detect the device and use it without knowing m48txx internals. Patch 4 is

[Qemu-devel] [PATCH 4/4] m48t59: let init functions return a Nvram object

2015-01-19 Thread Hervé Poussineau
Remove left-overs from header file. Move some functions only used by PReP to hw/ppc/prep.c Signed-off-by: Hervé Poussineau hpous...@reactos.org --- hw/ppc/ppc.c | 161 - hw/ppc/prep.c | 161

[Qemu-devel] [PATCH 2/4] m48t59: register a QOM type for each nvram type we support

2015-01-19 Thread Hervé Poussineau
As m48t59 devices can only be created with m48t59_init() or m48t59_init_isa(), we know exactly which nvram types are required. Register only those three types. Remove .model and .size properties as they can be infered from nvram name. Rename type to 'isa-*' (and 'sysbus-*') to do like other

Re: [Qemu-devel] [RFC 42/47] acpi: make tables linker-loader available to other targets

2015-01-19 Thread Michael S. Tsirkin
On Fri, Dec 19, 2014 at 02:02:37AM +, Igor Mammedov wrote: keeping bios-linker-loader.c i386 specific would break build of mips target which is built with CONFIG_ACPI which would dependend on it in following patch that adds acpi_def_block() term. Also UEFI for ARM target is going to use

[Qemu-devel] [PATCH v8] block/raw-posix.c: Fix raw_getlength() on Mac OS X for CD

2015-01-19 Thread Programmingkid
Subject was: Re: [PATCH v7] block/raw-posix.c: Fixes raw_getlength() on Mac OS X so that it reports the correct length of a real CD This patch allows Mac OS X to use a real CDROM disc in QEMU. Testing this patch will require using QEMU v2.2.0 because the current git version has a bug in it

[Qemu-devel] [PATCH 0/5] target-arm: ARM64: Adding EL1 AARCH32 guest support

2015-01-19 Thread Greg Bellows
Added support for running an AArch32 guest on a AArch64 KVM host. Support has only been added to the QEMU machvirt machine. The addition of CPU properties specifiable from the command line were added to allow disablement of AArch64 execution state hereby forcing EL1 to be AArch32. The new CPU

[Qemu-devel] [v6][PATCH 08/10] xen, gfx passthrough: support Intel IGD passthrough with VT-D

2015-01-19 Thread Tiejun Chen
Some registers of Intel IGD are mapped in host bridge, so it needs to passthrough these registers of physical host bridge to guest because emulated host bridge in guest doesn't have these mappings. Signed-off-by: Tiejun Chen tiejun.c...@intel.com Signed-off-by: Yang Zhang yang.z.zh...@intel.com

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

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

[Qemu-devel] [PATCH v2] qtest: Fix deadloop by running main loop AIO context's timers

2015-01-19 Thread Fam Zheng
qemu_clock_run_timers() only takes care of main_loop_tlg, we shouldn't forget aio timer list groups. Currently, the qemu_clock_deadline_ns_all (a few lines above) counts all the timergroups of this clock type, including aio tlg, but we don't fire them, so they are never cleared, which makes a

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

2015-01-19 Thread Gerd Hoffmann
On Mo, 2015-01-19 at 17:28 +0800, Tiejun Chen wrote: From: Michael S. Tsirkin m...@redhat.com Xen wants to supply a different pci and host devices, inheriting i440fx devices. Make types configurable. Description is misleading, this isn't about xen but about IGD passthrough. Guess kvm needs

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

2015-01-19 Thread Gerd Hoffmann
On Mo, 2015-01-19 at 17:28 +0800, Tiejun Chen wrote: +DEF(gfx_passthru, 0, QEMU_OPTION_gfx_passthru, +-gfx_passthru enable Intel IGD passthrough by XEN\n, +QEMU_ARCH_ALL) +STEXI +@item -gfx_passthru +@findex -gfx_passthru +Enable Intel IGD passthrough by XEN +ETEXI Make that a

Re: [Qemu-devel] [RFC PATCH v7 12/21] replay: recording and replaying clock ticks

2015-01-19 Thread Paolo Bonzini
On 19/01/2015 13:03, Pavel Dovgaluk wrote: It will work for protecting the events list (I've already did this). But that will not work for protecting the log file. replay_run_event can write some data to the log. And also some other function like replay_checkpoint can also write to the log

Re: [Qemu-devel] virtio_tswaps() vs virtio_ld/st_p()

2015-01-19 Thread Peter Maydell
On 19 January 2015 at 12:49, Greg Kurz gk...@linux.vnet.ibm.com wrote: Heh, not sure I would have provided such a comprehensive answer. :) ...so now I have a question: what semantics does virtio expect for its virtio_ld*/st*_phys accessors if QEMU is emulating a CPU with virtualization support?

[Qemu-devel] [PULL 8/8] ui/sdl2: Support shared surface for more pixman formats

2015-01-19 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- include/ui/sdl2.h | 2 ++ ui/sdl2-2d.c | 13 + ui/sdl2.c | 13 +++-- 3 files changed, 22 insertions(+), 6 deletions(-) diff --git a/include/ui/sdl2.h b/include/ui/sdl2.h index f56c596..51fff2e 100644 ---

[Qemu-devel] [PULL 5/8] ui/spice: Support shared surface for most pixman formats

2015-01-19 Thread Gerd Hoffmann
Just hook up qemu_pixman_check_format. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- ui/spice-display.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/ui/spice-display.c b/ui/spice-display.c index d2e3793..8c87212 100644 --- a/ui/spice-display.c +++

[Qemu-devel] [PULL 4/8] ui/vnc: Support shared surface for most pixman formats

2015-01-19 Thread Gerd Hoffmann
From: Benjamin Herrenschmidt b...@kernel.crashing.org At least all the ones I've tested. We make the assumption that pixman is going to be better at conversion than we are. Signed-off-by: Benjamin Herrenschmidt b...@kernel.crashing.org [ kraxel: just hook up qemu_pixman_check_format ]

[Qemu-devel] [PATCH 2/4] vhost-scsi: add bootindex property

2015-01-19 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com Signed-off-by: Gonglei arei.gong...@huawei.com --- hw/scsi/vhost-scsi.c | 9 + hw/virtio/virtio-pci.c | 2 ++ include/hw/virtio/vhost-scsi.h | 1 + 3 files changed, 12 insertions(+) diff --git a/hw/scsi/vhost-scsi.c

[Qemu-devel] [PATCH v2 1/7] configure: opengl overhaul

2015-01-19 Thread Gerd Hoffmann
Rename config option from glx to opengl, glx will not be the only option for opengl in near future. Also switch over to pkg-config for opengl support detection. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- configure| 39 +--

[Qemu-devel] [PATCH v2 3/7] pixman: add a bunch of PIXMAN_BE_* defines for 32bpp

2015-01-19 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- include/ui/qemu-pixman.h | 16 1 file changed, 16 insertions(+) diff --git a/include/ui/qemu-pixman.h b/include/ui/qemu-pixman.h index 381969d..37f9bc2 100644 --- a/include/ui/qemu-pixman.h +++ b/include/ui/qemu-pixman.h @@

[Qemu-devel] [PATCH v2 4/7] console-gl: add opengl rendering helper functions

2015-01-19 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- configure| 2 +- include/ui/console.h | 31 ++ ui/Makefile.objs | 5 + ui/console-gl.c | 286 +++ 4 files changed, 323 insertions(+), 1 deletion(-) create mode 100644

[Qemu-devel] [PATCH v2 6/7] sdl2: move SDL_* includes to sdl2.h

2015-01-19 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann kra...@redhat.com --- include/ui/sdl2.h | 6 ++ ui/sdl2-2d.c | 6 -- ui/sdl2-input.c | 6 -- ui/sdl2.c | 6 -- 4 files changed, 6 insertions(+), 18 deletions(-) diff --git a/include/ui/sdl2.h b/include/ui/sdl2.h index f56c596..148308c

Re: [Qemu-devel] [PULL 0/8] pc: resizeable ROM blocks

2015-01-19 Thread Igor Mammedov
On Wed, 07 Jan 2015 08:33:07 +0100 Paolo Bonzini pbonz...@redhat.com wrote: On 24/12/2014 13:41, Michael S. Tsirkin wrote: I don't think these are necessary, and I thought these were just RFC when they were posted. I and mst didn't really understand each other, and I take the fault

Re: [Qemu-devel] [RFC] Support to boot for vhost-scsi device?

2015-01-19 Thread Gonglei
On 2015/1/19 17:13, Paolo Bonzini wrote: On 19/01/2015 10:04, Gonglei wrote: Qemu haven't provide a bootindex property for vhost-scsi device. So, we can not assign the boot order for it at present. Oh, I see. Sure, I'll be happy to review patches. Thanks, will post a patch serial

[Qemu-devel] [v6][PATCH 07/10] xen, gfx passthrough: register a isa bridge

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

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

2015-01-19 Thread Tiejun Chen
Pass types to configure pc_init1(). Signed-off-by: Tiejun Chen tiejun.c...@intel.com --- hw/i386/pc_piix.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index cc10f72..4148028 100644 --- a/hw/i386/pc_piix.c +++

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

2015-01-19 Thread Tiejun Chen
basic gfx passthrough support: - add a vga type for gfx passthrough - register/unregister legacy VGA I/O ports and MMIOs for passthrough GFX Signed-off-by: Tiejun Chen tiejun.c...@intel.com Signed-off-by: Yang Zhang yang.z.zh...@intel.com --- hw/xen/Makefile.objs | 1 +

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

2015-01-19 Thread Tiejun Chen
Just register that pci host bridge specific to passthrough. Signed-off-by: Tiejun Chen tiejun.c...@intel.com --- hw/i386/pc_piix.c | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index 4148028..f015238 100644 ---

Re: [Qemu-devel] [v6][PATCH 07/10] xen, gfx passthrough: register a isa bridge

2015-01-19 Thread Gerd Hoffmann
On Mo, 2015-01-19 at 17:28 +0800, Tiejun Chen wrote: Currently IGD drivers always need to access PCH by 1f.0. But we Obvious question: q35? q35 already has a isa bridge @ 0x1f.0. Guess that needs to be extended for the pass-through then (simliar to the host bridge) instead of adding a dummy

Re: [Qemu-devel] [RFC PATCH v7 12/21] replay: recording and replaying clock ticks

2015-01-19 Thread Pavel Dovgaluk
From: Paolo Bonzini [mailto:pbonz...@redhat.com] On 19/01/2015 13:03, Pavel Dovgaluk wrote: It will work for protecting the events list (I've already did this). But that will not work for protecting the log file. replay_run_event can write some data to the log. And also some other

[Qemu-devel] [PULL 2/8] ui: Add dpy_gfx_check_format() to check backend shared surface support

2015-01-19 Thread Gerd Hoffmann
From: Benjamin Herrenschmidt b...@kernel.crashing.org This allows VGA to decide whether to use a shared surface based on whether the UI backend supports the format or not. Backends that don't provide the new callback fallback to native 32 bpp which is equivalent to what was supported before.

[Qemu-devel] [PULL 7/8] ui/sdl: Support shared surface for more pixman formats

2015-01-19 Thread Gerd Hoffmann
From: Benjamin Herrenschmidt b...@kernel.crashing.org At least all the ones I've tested. We make the assumption that SDL is going to be better at conversion than we are. Signed-off-by: Benjamin Herrenschmidt b...@kernel.crashing.org [ kraxel: minor format tweaks ] Signed-off-by: Gerd Hoffmann

[Qemu-devel] [PULL 3/8] ui/pixman: add qemu_pixman_check_format

2015-01-19 Thread Gerd Hoffmann
Convinience check_format function for UIs using pixman. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- include/ui/qemu-pixman.h | 2 ++ ui/qemu-pixman.c | 27 +++ 2 files changed, 29 insertions(+) diff --git a/include/ui/qemu-pixman.h

[Qemu-devel] [PULL 0/8] ui: add shared surface format negotiation.

2015-01-19 Thread Gerd Hoffmann
The following changes since commit 1e42c353469cb58ca4f3b450eea4211af7d0b147: Merge remote-tracking branch 'remotes/pmaydell/tags/pull-target-arm-20150116' into staging (2015-01-16 12:06:41 +) are available in the git repository at: git://git.kraxel.org/qemu tags/pull-console-20150119-1 for you

Re: [Qemu-devel] [RFC PATCH v7 12/21] replay: recording and replaying clock ticks

2015-01-19 Thread Pavel Dovgaluk
From: Paolo Bonzini [mailto:pbonz...@redhat.com] On 19/01/2015 13:43, Pavel Dovgaluk wrote: For example, why can't replay_run_event (or something that it calls) take the replay lock locally, when it writes to the log? replay_run_event can take the lock. Suppose that it writes data 'A'.

Re: [Qemu-devel] [PATCH 2/2] m48t59: add mem_base value to m48t59_init_isa()

2015-01-19 Thread Paolo Bonzini
On 19/01/2015 13:57, Artyom Tarasenko wrote: Is it really ISA if it's MMIO? In other words, why can't this be a sysbus device? On physical machines it's EBus, which is pretty much like 8-bit ISA. So, I think modelling it as ISA is closer to to the reality. But out of curiosity, would it

Re: [Qemu-devel] [RFC PATCH v7 12/21] replay: recording and replaying clock ticks

2015-01-19 Thread Pavel Dovgaluk
From: Paolo Bonzini [mailto:pbonz...@redhat.com] On 19/01/2015 14:01, Pavel Dovgaluk wrote: It would be easier if you pointed me to actual code in the series. But this doesn't seem impossible to fix by atomically writing the 'E' and 'A' in the same critical section. Because 'A' is

Re: [Qemu-devel] [RFC PATCH v7 12/21] replay: recording and replaying clock ticks

2015-01-19 Thread Paolo Bonzini
On 19/01/2015 14:10, Pavel Dovgaluk wrote: Because 'A' is written only inside some of the replay_run_event callbacks. It depends on type of the event and it's processing function inside the QEMU core. There could be no 'A' at all. Why can't that code write the 'E' as

Re: [Qemu-devel] [PATCH 2/2] m48t59: add mem_base value to m48t59_init_isa()

2015-01-19 Thread Artyom Tarasenko
On Mon, Jan 19, 2015 at 1:59 PM, Paolo Bonzini pbonz...@redhat.com wrote: On 19/01/2015 13:57, Artyom Tarasenko wrote: Is it really ISA if it's MMIO? In other words, why can't this be a sysbus device? On physical machines it's EBus, which is pretty much like 8-bit ISA. So, I think

[Qemu-devel] [PATCH v2 5/7] console-gl: externalize shader programs

2015-01-19 Thread Gerd Hoffmann
--- Makefile| 17 + scripts/shaderinclude.pl| 16 ui/console-gl.c | 28 ++-- ui/shader/texture-blit.frag | 10 ++ ui/shader/texture-blit.vert | 11 +++ 5 files changed, 56 insertions(+),

[Qemu-devel] [PATCH v2 0/7] sdl2: add opengl rendering support

2015-01-19 Thread Gerd Hoffmann
Hi, Next round of the opengl rendering patches. Rendering code got some major changes, it using opengl es now. So there is support for compiling shaders etc now, all the stuff we need when moving away from the old opengl1 desktop rendering model, toward opengl es (and also opengl core 3/4).

Re: [Qemu-devel] virtio_tswaps() vs virtio_ld/st_p()

2015-01-19 Thread Greg Kurz
On Mon, 19 Jan 2015 11:45:39 + Peter Maydell peter.mayd...@linaro.org wrote: On 19 January 2015 at 11:35, Stefan Hajnoczi stefa...@gmail.com wrote: What is the difference between the virtio_tswaps() and virtio_ld/st_p() families of functions? virtio_ld/st*_p() perform a load or store

[Qemu-devel] [PULL 6/8] ui/gtk: Support shared surface for most pixman formats

2015-01-19 Thread Gerd Hoffmann
From: Benjamin Herrenschmidt b...@kernel.crashing.org At least all the ones I've tested. We make the assumption that pixman is going to be better at conversion than we are. Signed-off-by: Benjamin Herrenschmidt b...@kernel.crashing.org [ kraxel: just hook up qemu_pixman_check_format ]

Re: [Qemu-devel] [PATCH 2/2] m48t59: add mem_base value to m48t59_init_isa()

2015-01-19 Thread Artyom Tarasenko
On Mon, Jan 19, 2015 at 1:45 PM, Paolo Bonzini pbonz...@redhat.com wrote: On 19/01/2015 12:35, Mark Cave-Ayland wrote: Similar to m48t59_init(), add a mem_base value so that NVRAM can be mapped via MMIO rather than ioport if required. Signed-off-by: Mark Cave-Ayland

Re: [Qemu-devel] [RFC PATCH v7 12/21] replay: recording and replaying clock ticks

2015-01-19 Thread Paolo Bonzini
On 19/01/2015 13:43, Pavel Dovgaluk wrote: For example, why can't replay_run_event (or something that it calls) take the replay lock locally, when it writes to the log? replay_run_event can take the lock. Suppose that it writes data 'A'. replay_run_event itself corresponds to some event

Re: [Qemu-devel] virtio_tswaps() vs virtio_ld/st_p()

2015-01-19 Thread Paolo Bonzini
On 19/01/2015 13:53, Peter Maydell wrote: Heh, not sure I would have provided such a comprehensive answer. :) ...so now I have a question: what semantics does virtio expect for its virtio_ld*/st*_phys accessors if QEMU is emulating a CPU with virtualization support? Is the assumption just

[Qemu-devel] [PATCH 1/4] qdev: support to get a device firmware path directly

2015-01-19 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com commit 6b1566c (qdev: Introduce FWPathProvider interface) did a good job for supproting to get firmware path on some different architectures. Moreover further more, we can use the interface to get firmware path name for a device which isn't attached a

[Qemu-devel] [PATCH 1/1] sun4u: switch m48t59 NVRAM to MMIO access

2015-01-19 Thread Mark Cave-Ayland
Real sun4u systems memory-map the NVRAM on the (ISA) ebus, so switch over to MMIO from ioport access, adding the 68 year offset used by Sun systems. This allows all SPARC64 OSs included in my tests to correctly detect the NVRAM IC and read the hardware clock correctly upon boot. Note that this

Re: [Qemu-devel] [PATCH v3 2/8] pc: acpi: decribe bridge device as not hotpluggable

2015-01-19 Thread Michael S. Tsirkin
On Fri, Dec 19, 2014 at 11:46:58AM +, Igor Mammedov wrote: when bridge hotplug is disabled, i.e. for machine types less then 2.0, bridge device was created as hotpluggable by mistake since commit 133a2da (2.1). Fix it by just creating it as a present device as it was done in 1.7.

Re: [Qemu-devel] [PATCH 2/2] m48t59: add mem_base value to m48t59_init_isa()

2015-01-19 Thread Paolo Bonzini
On 19/01/2015 12:35, Mark Cave-Ayland wrote: Similar to m48t59_init(), add a mem_base value so that NVRAM can be mapped via MMIO rather than ioport if required. Signed-off-by: Mark Cave-Ayland mark.cave-ayl...@ilande.co.uk --- Is it really ISA if it's MMIO? In other words, why can't this

[Qemu-devel] [PATCH 0/1] sun4u: switch m48t59 NVRAM to MMIO access

2015-01-19 Thread Mark Cave-Ayland
This patch follows on from the m48t59 patchset previously posted and switches sun4u NVRAM access from ioport to MMIO. Note that this also requires a corresponding OpenBIOS update and so when submitted as part of a pull request, the openbios-sparc64 binary will also be updated in order to preserve

Re: [Qemu-devel] [RFC 41/47] pc: acpi-build: create PCI0._CRS dynamically

2015-01-19 Thread Paolo Bonzini
On 19/12/2014 03:02, Igor Mammedov wrote: Replace template patching and runtime calculation in _CRS() method with static _CRS defined in SSDT. It also drops manual hole patching for reserved PCI/MEM/CPU hoptlug MMIO resources and utilizes the fact that MMIO resources are reserved by

[Qemu-devel] [PATCH 3/4] vhost-scsi: realize the TYPE_FW_PATH_PROVIDER interface

2015-01-19 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com In the way, we can make the bootindex property take effect. At the meanwhile, the firmware path name of vhost-scsi is channel@channel/vhost-scsi@target,lun. Signed-off-by: Gonglei arei.gong...@huawei.com --- hw/scsi/vhost-scsi.c | 20

[Qemu-devel] [PATCH 0/4] vhost-scsi: support to assign boot order

2015-01-19 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com Qemu haven't provide a bootindex property for vhost-scsi device. So, we can not assign the boot order for it at present. But Some clients/users have requirements for that in some scenarios. This patch achieve the aim in Qemu side. TODO: - Post a patch to

Re: [Qemu-devel] Press Inquiry: Qemu Advent Calendar (German Linux Magazin)

2015-01-19 Thread Stefan Hajnoczi
On Thu, Jan 15, 2015 at 9:18 PM, Tim Schürmann i...@tim-schuermann.de wrote: if nothing went wrong the (whole) advent calendar will be on the DVD published with the Linux Magazin issue 03/2015. The release date is the 05. Feb. 2015 (in germany). Cool :) Stefan

[Qemu-devel] [PATCH v2 7/7] sdl2: add support for display rendering using opengl.

2015-01-19 Thread Gerd Hoffmann
Add new sdl2-gl.c file, with display rendering functions using opengl. Signed-off-by: Gerd Hoffmann kra...@redhat.com --- include/ui/console.h | 1 + include/ui/sdl2.h| 11 + ui/Makefile.objs | 3 ++ ui/sdl.c | 11 + ui/sdl2-2d.c | 7 ui/sdl2-gl.c

[Qemu-devel] [PATCH v2 2/7] Allow the use of X11 from a non standard location.

2015-01-19 Thread Gerd Hoffmann
From: Jeremy White jwh...@codeweavers.com Signed-off-by: Jeremy White jwh...@codeweavers.com [ kraxel: solve opengl patch conflicts ] Signed-off-by: Gerd Hoffmann kra...@redhat.com --- configure| 24 +++- hw/display/Makefile.objs | 1 + 2 files changed, 20

[Qemu-devel] [PULL 1/8] ui: Make qemu_default_pixman_format() return 0 on unsupported formats

2015-01-19 Thread Gerd Hoffmann
From: Benjamin Herrenschmidt b...@kernel.crashing.org In order to remove the logic for detecting supported shared pixmap formats from device models, make qemu_default_pixman_format() capable for failing by returning 0 which is not a possible format value rather than asserting. Signed-off-by:

Re: [Qemu-devel] [RFC PATCH v7 12/21] replay: recording and replaying clock ticks

2015-01-19 Thread Paolo Bonzini
On 19/01/2015 14:01, Pavel Dovgaluk wrote: It would be easier if you pointed me to actual code in the series. But this doesn't seem impossible to fix by atomically writing the 'E' and 'A' in the same critical section. Because 'A' is written only inside some of the replay_run_event

Re: [Qemu-devel] virtio_tswaps() vs virtio_ld/st_p()

2015-01-19 Thread Stefan Hajnoczi
On Mon, Jan 19, 2015 at 12:49 PM, Greg Kurz gk...@linux.vnet.ibm.com wrote: On Mon, 19 Jan 2015 11:45:39 + Peter Maydell peter.mayd...@linaro.org wrote: On 19 January 2015 at 11:35, Stefan Hajnoczi stefa...@gmail.com wrote: What is the difference between the virtio_tswaps() and

Re: [Qemu-devel] [PATCH v5 1/3] qcow2: Add qcow2_shrink_l1_and_l2_table for qcow2 shrinking

2015-01-19 Thread Jun Li
On Thu, 01/15 13:47, Max Reitz wrote: On 2015-01-03 at 07:23, Jun Li wrote: On Fri, 11/21 11:56, Max Reitz wrote: So, as for what I think we do need to do when shrinking (and keep in mind: The offset given to qcow2_truncate() is the guest size! NOT the host image size!): (1) Determine the

Re: [Qemu-devel] [PATCH v7 05/32] target-arm: make arm_current_el() return EL3

2015-01-19 Thread Peter Maydell
On 16 January 2015 at 18:36, Peter Maydell peter.mayd...@linaro.org wrote: On 21 October 2014 at 17:55, Greg Bellows greg.bell...@linaro.org wrote: -#define NB_MMU_MODES 2 +#define NB_MMU_MODES 4 So this turns out not to quite be what we want. A QEMU MMU mode index basically defines a (vaddr

[Qemu-devel] [PATCH 4/4] vhost-scsi: add an ioctl interface to get target id

2015-01-19 Thread arei.gonglei
From: Gonglei arei.gong...@huawei.com Because vhost-scsi module do not support VHOST_SCSI_GET_TPGT at present, so I use #if 0 handle it, and set the target default to 1. In addition, channel and lun both are 0 for bootable vhost-scsi device. Signed-off-by: Gonglei arei.gong...@huawei.com

Re: [Qemu-devel] [v6][PATCH 07/10] xen, gfx passthrough: register a isa bridge

2015-01-19 Thread Michael S. Tsirkin
On Mon, Jan 19, 2015 at 12:57:18PM +0100, Gerd Hoffmann wrote: On Mo, 2015-01-19 at 17:28 +0800, Tiejun Chen wrote: Currently IGD drivers always need to access PCH by 1f.0. But we Obvious question: q35? q35 already has a isa bridge @ 0x1f.0. Guess that needs to be extended for the

Re: [Qemu-devel] [PATCH] pc: fix KVM features in pc-1.3 and earlier machine types

2015-01-19 Thread Eduardo Habkost
On Mon, Jan 19, 2015 at 12:24:03PM +0100, Paolo Bonzini wrote: Due to a typo, instead of disabling KVM_FEATURE_PV_EOI (bit 6) these machine types are disabling bits 1 and 2, which are KVM_FEATURE_NOP_IO_DELAY and KVM_FEATURE_MMU_OP. Not a big deal because they aren't very important and

[Qemu-devel] [PATCH 03/10] pci: Trivial device model conversions to realize

2015-01-19 Thread Markus Armbruster
Convert the device models where initialization obviously can't fail. Signed-off-by: Markus Armbruster arm...@redhat.com --- hw/acpi/piix4.c| 5 ++--- hw/audio/ac97.c| 5 ++--- hw/audio/es1370.c | 5 ++--- hw/audio/intel-hda.c | 6 ++

[Qemu-devel] [PATCH 00/10] pci: Partial conversion to realize

2015-01-19 Thread Markus Armbruster
I posted this series as RFC back in October, but it depended on patches then still under review, so I put it aside, and promptly forgot. Fortunately, rebasing and updating it wasn't much trouble. While discussing Gonglei's [PATCH v2 00/19] usb: convert device init to realize, Paolo called the

Re: [Qemu-devel] [PATCH 2/2] m48t59: add mem_base value to m48t59_init_isa()

2015-01-19 Thread Andreas Färber
Am 19.01.2015 um 13:57 schrieb Artyom Tarasenko: On Mon, Jan 19, 2015 at 1:45 PM, Paolo Bonzini pbonz...@redhat.com wrote: On 19/01/2015 12:35, Mark Cave-Ayland wrote: Similar to m48t59_init(), add a mem_base value so that NVRAM can be mapped via MMIO rather than ioport if required.

  1   2   3   4   >