Re: [Qemu-devel] [PATCH] net/hub: remove can_receive handler

2013-04-22 Thread Stefan Hajnoczi
On Mon, Apr 22, 2013 at 07:27:21PM +0400, Fedorov Sergey wrote: > On 04/22/2013 06:57 PM, Stefan Hajnoczi wrote: > >On Mon, Apr 22, 2013 at 04:26:16PM +0400, Fedorov Sergey wrote: > >>On 04/22/2013 03:47 PM, Stefan Hajnoczi wrote: > >>>On Thu, Apr 18, 2013 at 03:31:55PM +0400, Sergey Fedorov wrote:

[Qemu-devel] should qemu-palcode git submodule be hosted on git.qemu.org?

2013-04-22 Thread Peter Maydell
I thought that our git submodules were all supposed to be hosted on git.qemu.org, or does that only apply to the ones which have sources we use to generate binary blobs we ship in our tarballs? Anyway, the qemu-palcode submodule is hosted on repo.or.cz. Could we have a copy on git.qemu.org like th

Re: [Qemu-devel] [PATCH v5 18/19] tcg-arm: Convert to CONFIG_QEMU_LDST_OPTIMIZATION

2013-04-22 Thread Aurelien Jarno
On Mon, Apr 22, 2013 at 03:39:42PM +0100, Richard Henderson wrote: > On 2013-04-22 13:59, Aurelien Jarno wrote: > >>>+/* The code buffer is limited to 16MB, with the prologue located > >>>+ at the end of it. Therefore we needn't care for any out of > >>>+ range branches. */ > >>>+

[Qemu-devel] [PATCH v4 1/3] sheepdog: add discard/trim support for sheepdog

2013-04-22 Thread Liu Yuan
From: Liu Yuan The 'TRIM' command from VM that is to release underlying data storage for better thin-provision is already supported by the Sheepdog. This patch adds the TRIM support at QEMU part. For older Sheepdog that doesn't support it, we return 0(success) to upper layer. Cc: MORITA Kazuta

[Qemu-devel] [PATCH v4 2/3] sheepdog: use BDRV_SECTOR_SIZE

2013-04-22 Thread Liu Yuan
From: Liu Yuan Cc: MORITA Kazutaka Cc: Kevin Wolf Cc: Stefan Hajnoczi Signed-off-by: Liu Yuan --- block/sheepdog.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/block/sheepdog.c b/block/sheepdog.c index c3b7770..916f360 100644 --- a/block/sheepdog.c +++ b/

[Qemu-devel] [PATCH v4 3/3] sheepdog: implement .bdrv_co_is_allocated()

2013-04-22 Thread Liu Yuan
From: Liu Yuan Cc: MORITA Kazutaka Cc: Kevin Wolf Cc: Stefan Hajnoczi Signed-off-by: Liu Yuan --- block/sheepdog.c | 37 + 1 file changed, 37 insertions(+) diff --git a/block/sheepdog.c b/block/sheepdog.c index 916f360..2fe0783 100644 --- a/block/sheepd

[Qemu-devel] [PATCH v4 0/3] sheepdog: implement .bdrv_co_is_allocated

2013-04-22 Thread Liu Yuan
From: Liu Yuan v4: - correct idx iteration range v3: - include discard patch for easy review and merge - update the comment typo - get variable 'idx' definition more clear v2: - correct 'end' calculation - get the longest unallocated area - replace SECTOR_SIZE with BDRV_SECTOR_SIZE PATC

Re: [Qemu-devel] [PATCH v2 2/2] sheepdog: implement .bdrv_co_is_allocated()

2013-04-22 Thread Liu Yuan
On 04/23/2013 04:46 AM, Stefan Hajnoczi wrote: > The first sector is included in nb_sectors. Mathematically the range > is defined as [sector_num, sector_num + nb_sectors). Notice the > half-open interval, sector_num + nb_sectors is excluded. The last > included sector is sector_num + nb_sectors

Re: [Qemu-devel] Para-Virtualized Clock Usage

2013-04-22 Thread Gleb Natapov
On Mon, Apr 22, 2013 at 04:58:01PM +, Joji Mekkattuparamban (joji) wrote: > Greetings, > > I have a SMP guest application, running on the 2.6.27 Linux kernel. The > application, originally written for bare metal, makes extensive use of the > TSC, by directly invoking rdtsc from the user spac

Re: [Qemu-devel] [RfC PATCH 0/5] console: qom-ify & extent screendump monitor command

2013-04-22 Thread Gerd Hoffmann
On 04/22/13 19:23, Eric Blake wrote: > On 04/22/2013 11:03 AM, Paolo Bonzini wrote: >>> It'd be *much* nicer to return the screenshot data via the QMP session >>> instead of writing it to a file. So let's take the opportunity to fix >>> the command. > > That's a lot of data to be encoding into JS

Re: [Qemu-devel] [PATCH v4] Add option to mlock qemu and guest memory

2013-04-22 Thread Satoru Moriya
Hi Vinod, Thank you for your report. (2013/04/22 14:16), Chegu Vinod wrote: > FYI... I had tried to use this change earlier and it did show some > improvements in perf. (due to reduced exits). > > But as expected mlockall () on large sized guests adds a considerable > delay in boot time. Yes, i

Re: [Qemu-devel] [Qemu-ppc] [PATCH 0/3 QEMU v4] vfio on ppc64

2013-04-22 Thread David Gibson
On Mon, Apr 22, 2013 at 07:58:12PM -0600, Alex Williamson wrote: > On Tue, 2013-04-23 at 09:44 +1000, David Gibson wrote: > > On Mon, Apr 22, 2013 at 12:39:26PM -0600, Alex Williamson wrote: > > > On Mon, 2013-04-22 at 18:02 +1000, Alexey Kardashevskiy wrote: > > > > Yes, we are still tuning this s

Re: [Qemu-devel] [PATCH] monitor: introduce query-config-schema

2013-04-22 Thread Amos Kong
On Mon, Apr 22, 2013 at 05:16:02PM +0200, Paolo Bonzini wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Il 22/04/2013 17:00, Eric Blake ha scritto: > > On 04/22/2013 06:07 AM, Paolo Bonzini wrote: > >> Il 22/04/2013 13:48, Amos Kong ha scritto: > >>> Libvirt doesn't have a stable

Re: [Qemu-devel] [PATCH] monitor: intervally send down events to guest in hold time

2013-04-22 Thread Amos Kong
On Mon, Apr 22, 2013 at 09:02:41AM -0500, Anthony Liguori wrote: > Paolo Bonzini writes: > > > Il 22/04/2013 14:43, Luiz Capitulino ha scritto: > >>> > > >>> > You're right. The typematic delay/rate is implemented within the i8042 > >>> > keyboard microcontroller (QEMU does not implement that r

[Qemu-devel] [PATCH v1 1/1] target-arm: helper.c: RAZ REVIDR cp register

2013-04-22 Thread peter . crosthwaite
From: Peter Crosthwaite Guests should be able to read REVIDR without suffering an abort. Just RAZ the REVIDR register. Signed-off-by: Peter Crosthwaite --- target-arm/helper.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/target-arm/helper.c b/target-arm/helper.c

[Qemu-devel] [PATCH v5 09/12] rdma: new QEMUFileOps hooks

2013-04-22 Thread mrhines
From: "Michael R. Hines" These are the prototypes and implementation of new hooks that RDMA takes advantage of to perform dynamic page registration. An optional hook is also introduced for a custom function to be able to override the default save_page function. Also included are the prototypes

[Qemu-devel] [PATCH v5 12/12] rdma: send pc.ram

2013-04-22 Thread mrhines
From: "Michael R. Hines" This takes advantages of the previous patches: 1. use the new QEMUFileOps hook 'save_page' 2. call out to the right accessor methods to invoke the iteration hooks defined in QEMUFileOps Signed-off-by: Michael R. Hines --- arch_init.c | 35 +++

[Qemu-devel] [PATCH v5 10/12] rdma: introduce capability x-rdma-pin-all

2013-04-22 Thread mrhines
From: "Michael R. Hines" This capability allows you to disable dynamic chunk registration for better throughput on high-performance links. For example, using an 8GB RAM virtual machine with all 8GB of memory in active use and the VM itself is completely idle using a 40 gbps infiniband link: 1.

[Qemu-devel] [PATCH v5 08/12] rdma: introduce qemu_ram_foreach_block()

2013-04-22 Thread mrhines
From: "Michael R. Hines" This is used during RDMA initialization in order to transmit a description of all the RAM blocks to the peer for later dynamic chunk registration purposes. Signed-off-by: Michael R. Hines --- exec.c|9 + include/exec/cpu-common.h |5

Re: [Qemu-devel] [Qemu-ppc] [PATCH 0/3 QEMU v4] vfio on ppc64

2013-04-22 Thread Alex Williamson
On Tue, 2013-04-23 at 09:44 +1000, David Gibson wrote: > On Mon, Apr 22, 2013 at 12:39:26PM -0600, Alex Williamson wrote: > > On Mon, 2013-04-22 at 18:02 +1000, Alexey Kardashevskiy wrote: > > > Yes, we are still tuning this stuff for us :) > > > > Yay! > > > > > Changes: > > > > > > * new "spap

[Qemu-devel] [PATCH v5 06/12] rdma: export qemu_fflush()

2013-04-22 Thread mrhines
From: "Michael R. Hines" RDMA uses this to flush the control channel before sending its own message to handle page registrations. Signed-off-by: Michael R. Hines --- include/migration/qemu-file.h |1 + savevm.c |2 +- 2 files changed, 2 insertions(+), 1 deletion(-)

[Qemu-devel] [PATCH v5 07/12] rdma: introduce ram_handle_compressed()

2013-04-22 Thread mrhines
From: "Michael R. Hines" This gives RDMA shared access to madvise() on the destination side when an entire chunk is found to be zero. Signed-off-by: Michael R. Hines --- arch_init.c | 24 include/migration/migration.h |2 ++ 2 files changed, 18

[Qemu-devel] [PATCH v5 04/12] rdma: introduce qemu_get_max_size()

2013-04-22 Thread mrhines
From: "Michael R. Hines" This functions allows you to perform your own per-QEMUFileOps calculation for the value of 'max_size'. For RDMA, this calculation artificially limits migration throughput and needs to be done differently for high-throughput links. Signed-off-by: Michael R. Hines --- i

[Qemu-devel] [PATCH v5 01/12] rdma: add documentation

2013-04-22 Thread mrhines
From: "Michael R. Hines" docs/rdma.txt contains full documentation, wiki links, github url and contact information. Signed-off-by: Michael R. Hines --- docs/rdma.txt | 404 + 1 file changed, 404 insertions(+) create mode 100644 docs/rdm

[Qemu-devel] [PATCH v5 05/12] rdma: introduce qemu_file_mode_is_not_valid()

2013-04-22 Thread mrhines
From: "Michael R. Hines" QEMUFileRDMA also has read and write modes. This function is now shared to reduce code duplication. Signed-off-by: Michael R. Hines --- include/migration/qemu-file.h |1 + savevm.c | 20 +--- 2 files changed, 14 insertions(+),

[Qemu-devel] [PATCH v5 03/12] rdma: export throughput w/ MigrationStats QMP

2013-04-22 Thread mrhines
From: "Michael R. Hines" This exposes throughput (in megabits/sec) through QMP. By itself, this patch only prints zero and the value is actually calculated in the next patch. Signed-off-by: Michael R. Hines --- hmp.c |2 ++ include/migration/qemu-file.h |2 ++

[Qemu-devel] [PATCH v5 00/12] rdma: migration support

2013-04-22 Thread mrhines
From: "Michael R. Hines" Juan, Please pull. Changes since v4: - Re-ran checkpatch.pl - Added new QEMUFileOps function: qemu_get_max_size() - Renamed capability to x-pin-all, disabled by default - Added numbers for x-pin-all to performance section in docs/rdma.txt - Included performance numbers

Re: [Qemu-devel] [PATCH V18 5/6] add-cow file format core code.

2013-04-22 Thread Dong Xu Wang
On 2013/4/18 18:03, Stefan Hajnoczi wrote: On Wed, Apr 10, 2013 at 04:11:52PM +0800, Dong Xu Wang wrote: +header.cluster_bits = ffs(cluster_size) - 1; +if (header.cluster_bits < MIN_CLUSTER_BITS || +header.cluster_bits > MAX_CLUSTER_BITS || +(1 << header.cluster_bits) !=

Re: [Qemu-devel] [PATCH V18 4/6] rename qcow2-cache.c to block-cache.c

2013-04-22 Thread Dong Xu Wang
On 2013/4/18 16:54, Stefan Hajnoczi wrote: On Wed, Apr 10, 2013 at 04:11:51PM +0800, Dong Xu Wang wrote: This patch does two things: 1. Rename and move qcow2-cache to block-cache. 2. Add a type enum to parameterize BLKDEBUG_EVENT() for L2, refcount, and bitmaps. It's hard to review #2 since

Re: [Qemu-devel] [PATCH V18 1/6] docs: document for add-cow file format

2013-04-22 Thread Dong Xu Wang
On 2013/4/18 16:30, Stefan Hajnoczi wrote: On Wed, Apr 10, 2013 at 04:11:48PM +0800, Dong Xu Wang wrote: +The Header is included in the first bytes: +(HEADER_SIZE is defined in 40-43 bytes.) +Byte0 - 3:magic +add-cow magic string ("ACOW"). + +4

Re: [Qemu-devel] QEMU Exception Handling

2013-04-22 Thread Wei-Ren Chen
On Fri, Apr 12, 2013 at 03:14:48PM -0700, Anand Brooks wrote: > Hello All, > > I ran into an error when testing some code that would generate protection > faults. I had my exception handler setup so that it expected the EIP and > Stack not to change, standard behavior on native CPU. But on QEMU bo

Re: [Qemu-devel] Round robin of multi-vcpu in qemu

2013-04-22 Thread Wei-Ren Chen
> I've examined the alarm timmer, this timer is used to interrupt the > execution of VCPUs to handle interruptions. IIRC, alarm timer will interrupt VCPU to execute the next one. You can check where QEMU register the alarm timer, and see how it works. Regards, chenwj -- Wei-Ren Chen (陳韋任) Com

Re: [Qemu-devel] [PATCH v2 3/5] vmdk: Add option to create zeroed-grain image

2013-04-22 Thread Fam Zheng
On Mon, 04/22 16:06, Stefan Hajnoczi wrote: > On Mon, Apr 22, 2013 at 10:07:57AM +0800, Fam Zheng wrote: > > Add image create option "zeroed-grain" to enable zeroed-grain GTE > > feature of vmdk sparse extents. When this option is on, header version > > of newly created extent will be 2 and VMDK4_F

Re: [Qemu-devel] [PATCH v2] linux-user: improve target_to_host_sock_type conversion

2013-04-22 Thread Petar Jovanovic
Thanks Aurelien for your comments. What others think? Can we submit this version of the patch? Riku? Richard, Blue? Petar From: Aurelien Jarno [aurel...@aurel32.net] Sent: Monday, April 15, 2013 3:47 PM To: Petar Jovanovic Cc: qemu-devel@nongnu.org; Petar

Re: [Qemu-devel] [Qemu-ppc] [PATCH 0/3 QEMU v4] vfio on ppc64

2013-04-22 Thread David Gibson
On Mon, Apr 22, 2013 at 12:39:26PM -0600, Alex Williamson wrote: > On Mon, 2013-04-22 at 18:02 +1000, Alexey Kardashevskiy wrote: > > Yes, we are still tuning this stuff for us :) > > Yay! > > > Changes: > > > > * new "spapr-pci-vfio-host-bridge" device is introduced > > (inherits from spapr-pci

Re: [Qemu-devel] [PATCH v3 00/28] ccid and libcacard fixes for windows/mingw

2013-04-22 Thread Marc-André Lureau
Reviewed-by: Marc-André Lureau

Re: [Qemu-devel] [PATCH 1/1 V4] virtio-net: dynamic network offloads configuration

2013-04-22 Thread Michael S. Tsirkin
On Mon, Apr 22, 2013 at 12:58:26PM -0500, Anthony Liguori wrote: > "Michael S. Tsirkin" writes: > > > On Sun, Apr 07, 2013 at 09:34:08AM +0300, Dmitry Fleytman wrote: > >> From: Dmitry Fleytman > >> > >> Virtio-net driver currently negotiates network offloads > >> on startup via features mechan

Re: [Qemu-devel] [PATCH v5 10/12] rdma: introduce capability x-rdma-pin-all

2013-04-22 Thread Michael R. Hines
On 04/22/2013 04:24 PM, Eric Blake wrote: On 04/21/2013 03:17 PM, mrhi...@linux.vnet.ibm.com wrote: From: "Michael R. Hines" This capability allows you to disable dynamic chunk registration for better throughput on high-performance links. For example, using an 8GB RAM virtual machine with all

Re: [Qemu-devel] [PATCH v5 04/12] rdma: introduce qemu_get_max_size()

2013-04-22 Thread Michael R. Hines
On 04/22/2013 04:20 PM, Eric Blake wrote: On 04/21/2013 03:17 PM, mrhi...@linux.vnet.ibm.com wrote: From: "Michael R. Hines" This functions allows you to perform your own per-QEMUFileOps calculation for the value of 'max_size'. For RDMA, this calculation artificially limits migration throughp

Re: [Qemu-devel] [PATCH v5 01/12] rdma: add documentation

2013-04-22 Thread Michael R. Hines
On 04/22/2013 04:16 PM, Eric Blake wrote: On 04/21/2013 03:17 PM, mrhi...@linux.vnet.ibm.com wrote: From: "Michael R. Hines" docs/rdma.txt contains full documentation, wiki links, github url and contact information. Signed-off-by: Michael R. Hines --- docs/rdma.txt | 404 +

[Qemu-devel] [PATCH v3 0/4] ui/cocoa.m: Fix compiler and runtime warnings on 10.8

2013-04-22 Thread Peter Maydell
These patches fix various compiler and runtime warnings QEMU provokes on MacOSX 10.8. The first two fix a leak and some deprecated functions which cause warnings in the system log when QEMU runs. The second two avoid some functions which cause compile time warnings about use of functions deprecated

[Qemu-devel] [PATCH v3 1/4] ui/cocoa.m: Fix leaks of NSScreen and NSConcreteMapTable

2013-04-22 Thread Peter Maydell
On MacOSX 10.8 QEMU provokes system log messages: 11/03/2013 17:03:29.998 qemu-system-arm[42586]: objc[42586]: Object 0x7ffbf9c2f3b0 of class NSScreen autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug 11/03/2013 17:03:29.999 qemu-system-arm[42586]: objc

[Qemu-devel] [PATCH v3 3/4] ui/cocoa.m: Avoid deprecated NSOpenPanel filename method

2013-04-22 Thread Peter Maydell
Avoid the NSOpenPanel filename method (deprecated in MacOSX 10.6) in favour of using the URL method and extracting the path from the resulting NSUrl object. Signed-off-by: Peter Maydell --- ui/cocoa.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/cocoa.m b/ui/cocoa.m ind

[Qemu-devel] [PATCH v3 2/4] ui/cocoa.m: Avoid deprecated CPS* functions

2013-04-22 Thread Peter Maydell
The functions CPSGetCurrentProcess and CPSEnableForegroundOperation are deprecated in newer versions of MacOSX and cause warning messages to be logged to the system log. Instead, use the new preferred method of promoting our console process up to a graphical app with menubar and Dock icon, which is

Re: [Qemu-devel] [PATCH v2 2/2] sheepdog: implement .bdrv_co_is_allocated()

2013-04-22 Thread Stefan Hajnoczi
On Mon, Apr 22, 2013 at 5:18 PM, Liu Yuan wrote: > On 04/22/2013 11:03 PM, Stefan Hajnoczi wrote: >> Imagine sector_num = 0 and nb_sectors = SD_DATA_OBJ_SIZE / BDRV_SECTOR_SIZE. >> >> start = 0 >> end = 1 >> >> You don't want object 1, only object 0. > > Hmm, math, ouch. So nb_sectors include sect

Re: [Qemu-devel] [libvirt] [PATCH qom-cpu 6/9] target-i386: Add "feature-words" property

2013-04-22 Thread Eric Blake
On 04/22/2013 01:00 PM, Eduardo Habkost wrote: > This property will be useful for libvirt, as libvirt already has logic > based on low-level feature bits (not feature names), so it will be > really easy to convert the current libvirt logic to something using the > "feature-words" property. > > The

[Qemu-devel] [PATCH v3 4/4] ui/cocoa.m: Avoid deprecated NSOpenPanel beginSheetForDirectory

2013-04-22 Thread Peter Maydell
In MacOSX 10.6 and above the NSOpenPanel beginSheetForDirectory method is deprecated. Use the preferred replacements instead. We retain the original code for use on earlier MacOSX versions because the replacement methods don't exist before 10.6. Signed-off-by: Peter Maydell --- ui/cocoa.m | 16 +

Re: [Qemu-devel] [PATCH v5 10/12] rdma: introduce capability x-rdma-pin-all

2013-04-22 Thread Eric Blake
On 04/21/2013 03:17 PM, mrhi...@linux.vnet.ibm.com wrote: > From: "Michael R. Hines" > > This capability allows you to disable dynamic chunk registration > for better throughput on high-performance links. > > For example, using an 8GB RAM virtual machine with all 8GB of memory in > active use an

Re: [Qemu-devel] [PATCH v5 04/12] rdma: introduce qemu_get_max_size()

2013-04-22 Thread Eric Blake
On 04/21/2013 03:17 PM, mrhi...@linux.vnet.ibm.com wrote: > From: "Michael R. Hines" > > This functions allows you to perform your own per-QEMUFileOps > calculation for the value of 'max_size'. > > For RDMA, this calculation artificially limits migration throughput > and needs to be done differe

Re: [Qemu-devel] [PATCH v5 01/12] rdma: add documentation

2013-04-22 Thread Eric Blake
On 04/21/2013 03:17 PM, mrhi...@linux.vnet.ibm.com wrote: > From: "Michael R. Hines" > > docs/rdma.txt contains full documentation, > wiki links, github url and contact information. > > Signed-off-by: Michael R. Hines > --- > docs/rdma.txt | 404 >

[Qemu-devel] [PATCH 08/12] S390: ccw firmware: Add glue header

2013-04-22 Thread Alexander Graf
Like all great programs, we have to call between different functions in different object files. And all of them need a common ground of defines. Provide a file that provides these defines. Signed-off-by: Alexander Graf --- pc-bios/s390-ccw/s390-ccw.h | 131 +

Re: [Qemu-devel] [PATCH 0/7] qtest: add libqos

2013-04-22 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

[Qemu-devel] [PATCH qom-cpu 4/9] target-i386: Replace cpuid_*features fields with a feature word array

2013-04-22 Thread Eduardo Habkost
This replaces the feature-bit fields on both X86CPU and x86_def_t structs with an array. With this, we will be able to simplify code that simply does the same operation on all feature words (e.g. kvm_check_features_against_host(), filter_features_for_kvm(), add_flagname_to_bitmaps(), CPU feature-b

Re: [Qemu-devel] [PATCH 05/16] introduce CPU hot-plug notifier

2013-04-22 Thread Igor Mammedov
On Mon, 22 Apr 2013 14:24:00 +0300 Gleb Natapov wrote: > On Mon, Apr 22, 2013 at 01:09:19PM +0200, Igor Mammedov wrote: > > On Mon, 22 Apr 2013 14:00:01 +0300 > > Gleb Natapov wrote: > > > > > On Tue, Apr 16, 2013 at 12:12:45AM +0200, Igor Mammedov wrote: > > > > hot-added CPU will be distribut

Re: [Qemu-devel] [PATCH] qdev: Fix QOM unrealize behavior

2013-04-22 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH 3/3] doc: document the Pseudo-encoding of LED state

2013-04-22 Thread Anthony Liguori
Lei Li writes: > Signed-off-by: Lei Li > --- > docs/vnc-ledstate-Pseudo-encoding.txt | 33 > + > 1 files changed, 33 insertions(+), 0 deletions(-) > create mode 100644 docs/vnc-ledstate-Pseudo-encoding.txt > > diff --git a/docs/vnc-ledstate-Pseudo-encoding.tx

Re: [Qemu-devel] [PATCH 2/3] vnc: Support for LED state extension

2013-04-22 Thread Anthony Liguori
Lei Li writes: > Signed-off-by: Lei Li > --- > ui/vnc.c | 48 > ui/vnc.h |4 +++- > 2 files changed, 51 insertions(+), 1 deletions(-) > > diff --git a/ui/vnc.c b/ui/vnc.c > index f574962..e22cca1 100644 > --- a/ui/vnc.c > +++ b/ui/vnc.c > @

Re: [Qemu-devel] Support for VNC LED state extension proposal

2013-04-22 Thread Anthony Liguori
Gerd Hoffmann writes: > Hi, > >>> What is your vnc client? Does it support VNC_ENCODING_EXT_KEY_EVENT? >> >> It's uses gvnc as a protocol library and renders via fbdev. It reads >> keyboard events by putting /dev/tty into mediumraw mode and uses ext key >> events exclusively. It has no know

[Qemu-devel] [PATCH 07/12] S390: ccw firmware: Add virtio device drivers

2013-04-22 Thread Alexander Graf
In order to boot, we need to be able to access a virtio-blk device through the CCW bus. Implement support for this. Signed-off-by: Alexander Graf --- pc-bios/s390-ccw/cio.h| 322 + pc-bios/s390-ccw/virtio.c | 274 +

[Qemu-devel] [PATCH 00/12] S390: Add virtio-ccw firmware

2013-04-22 Thread Alexander Graf
We used to be able to boot from the virtio-s390 machine using a modified version of zipl. However, for our new virtio-ccw machine, there was not such support available. This patch set adds a tiny but of firmware to the game, so that we get the same functionality back that we used to have on virtio

[Qemu-devel] [PATCH 09/12] S390: ccw firmware: Add bootmap interpreter

2013-04-22 Thread Alexander Graf
On s390, there is an architected boot map format that we can read to boot a certain entry off the disk. Implement a simple reader for this that always boots the first (default) entry. Signed-off-by: Alexander Graf --- pc-bios/s390-ccw/bootmap.c | 235

[Qemu-devel] [PATCH 10/12] S390: ccw firmware: Add Makefile

2013-04-22 Thread Alexander Graf
This patch adds a makefile, so we can build our ccw firmware. Also add the resulting binaries to .gitignore, so that nobody is annoyed they might be in the tree. Signed-off-by: Alexander Graf --- .gitignore|2 ++ pc-bios/s390-ccw/Makefile | 26 ++ 2

[Qemu-devel] [PATCH 03/12] S390: IPL: Use different firmware for different machines

2013-04-22 Thread Alexander Graf
We have a virtio-s390 and a virtio-ccw machine in QEMU. Both use vastly different ways to do I/O. Having the same firmware blob for both doesn't really make any sense. Instead, let's parametrize the firmware file name, so that we can have different blobs for different machines. Signed-off-by: Ale

[Qemu-devel] [PATCH 12/12] S390: CCW: Use new, working firmware by default

2013-04-22 Thread Alexander Graf
Since we now have working firmware for s390-ccw in the tree, we can default to it on our s390-ccw machine, rendering it more useful. Signed-off-by: Alexander Graf --- hw/s390x/s390-virtio-ccw.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/s390x/s390-virtio-ccw.c b

[Qemu-devel] [PATCH 06/12] S390: ccw firmware: Add sclp output

2013-04-22 Thread Alexander Graf
In order to communicate with the user, we need an I/O mechanism that he can read. Implement SCLP ASCII support, which happens to be the default in the s390 ccw machine. This file is missing read support for now. It can only print messages. Signed-off-by: Alexander Graf --- pc-bios/s390-ccw/sclp

[Qemu-devel] [PATCH 11/12] S390: ccw firmware: Add compiled blob

2013-04-22 Thread Alexander Graf
Now that we have all the source code ready, add a compiled blob into the QEMU source tree, so that people without access to an s390 compiler can run the s390-ccw firmware. Signed-off-by: Alexander Graf --- Makefile |1 + pc-bios/s390-ccw.img | Bin 0 -> 9432 bytes 2 files change

[Qemu-devel] [PATCH 01/12] S390: Make IPL reset address dynamic

2013-04-22 Thread Alexander Graf
We can have different load addresses for different blobs we boot with. Make the reset IP dynamic, so that we can handle things more flexibly. Signed-off-by: Alexander Graf --- hw/s390x/ipl.c | 22 +++--- 1 files changed, 11 insertions(+), 11 deletions(-) diff --git a/hw/s390x/

[Qemu-devel] [PATCH 02/12] S390: IPL: Support ELF firmware

2013-04-22 Thread Alexander Graf
Our firmware blob is always a raw file that we load at a fixed address today. Support loading an ELF blob instead that we can map high up in memory. This way we don't have to be so conscious about size constraints. Signed-off-by: Alexander Graf --- hw/s390x/ipl.c | 16 ++-- 1 file

[Qemu-devel] [PATCH 04/12] S390: ccw firmware: Add start assembly

2013-04-22 Thread Alexander Graf
We want to write most of our code in C, so add a small assembly stub that jumps straight into C code for us to continue booting. Signed-off-by: Alexander Graf --- pc-bios/s390-ccw/start.S | 16 1 files changed, 16 insertions(+), 0 deletions(-) create mode 100644 pc-bios/s390-

[Qemu-devel] [PATCH 05/12] S390: ccw firmware: Add main program

2013-04-22 Thread Alexander Graf
This C file is the main driving piece of the s390 ccw firmware. It provides a search for a workable block device, sets it as the default to boot off of and boots from it. Signed-off-by: Alexander Graf --- pc-bios/s390-ccw/main.c | 56 +++ 1 files cha

[Qemu-devel] [PATCH qom-cpu 5/9] target-i386: Add ECX information to FeatureWordInfo

2013-04-22 Thread Eduardo Habkost
FEAT_7_0_EBX uses ECX as input, so we have to take that into account when reporting feature word values. Signed-off-by: Eduardo Habkost --- target-i386/cpu.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 110ef98..314931

Re: [Qemu-devel] [PATCH 12/16] target-i386: cpu: attach ICC bus to CPU on its creation

2013-04-22 Thread Igor Mammedov
On Mon, 22 Apr 2013 17:27:29 +0200 Andreas Färber wrote: > Am 22.04.2013 17:20, schrieb Igor Mammedov: > > On Mon, 22 Apr 2013 17:02:33 +0200 > > Andreas Färber wrote: > > > >> Am 16.04.2013 00:12, schrieb Igor Mammedov: > >>> ... during startup, so it would be possible to unplug it later > >>

Re: [Qemu-devel] [PATCH 0/3 QEMU v4] vfio on ppc64

2013-04-22 Thread Alex Williamson
On Mon, 2013-04-22 at 18:02 +1000, Alexey Kardashevskiy wrote: > Yes, we are still tuning this stuff for us :) Yay! > Changes: > > * new "spapr-pci-vfio-host-bridge" device is introduced > (inherits from spapr-pci-host-bridge); > > * device#1->group->container->device#2,.. creation scheme is ch

Re: [Qemu-devel] [PATCH 07/16] cpu: introduce get_arch_id() method and override it for target-i386

2013-04-22 Thread Igor Mammedov
On Mon, 22 Apr 2013 18:33:48 +0200 Andreas Färber wrote: > Am 16.04.2013 00:12, schrieb Igor Mammedov: > > get_arch_id() adds possibility for generic code to get guest visible > > CPU ID without accessing CPUArchState. If target doesn't override it, > > it will return cpu_index. > > > > Override

Re: [Qemu-devel] [PATCH v2] virtio-balloon: fix dynamic properties.

2013-04-22 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

[Qemu-devel] [PATCH qom-cpu 6/9] target-i386: Add "feature-words" property

2013-04-22 Thread Eduardo Habkost
This property will be useful for libvirt, as libvirt already has logic based on low-level feature bits (not feature names), so it will be really easy to convert the current libvirt logic to something using the "feature-words" property. The property will have two main use cases: - Checking host ca

[Qemu-devel] [PATCH qom-cpu 9/9] target-i386: Add "filtered-features" property to X86CPU

2013-04-22 Thread Eduardo Habkost
This property will contain all the features that were removed from the CPU because they are not supported by the host. This way, libvirt or other management tools can emulate the check/enforce behavior by checking if filtered-properties is all zeroes, before starting the guest. Example output whe

Re: [Qemu-devel] [PATCH] qom: do nothing on unparent of object without parent

2013-04-22 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

[Qemu-devel] [PATCH qom-cpu 8/9] target-i386: Introduce X86CPU.filtered_features field

2013-04-22 Thread Eduardo Habkost
This field will contain the feature bits that were filtered out because of missing host support. Signed-off-by: Eduardo Habkost --- target-i386/cpu-qom.h | 3 +++ target-i386/cpu.c | 9 ++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/target-i386/cpu-qom.h b/target-i3

[Qemu-devel] [PATCH qom-cpu 3/9] target-i386/cpu.c: Break lines so they don't get too long

2013-04-22 Thread Eduardo Habkost
Break lines on kvm_check_features_against_host(), kvm_cpu_fill_host(), and builtin_x86_defs, so they don't get too long once the *_features fields are replaced by an array. Signed-off-by: Eduardo Habkost Reviewed-By: Igor Mammedov --- Changes v9: * Merged all "Break lines" patches from previous

[Qemu-devel] [PATCH qom-cpu 7/9] target-i386: Use FeatureWord loop on filter_features_for_kvm()

2013-04-22 Thread Eduardo Habkost
Instead of open-coding the filtering code for each feature word, change the existing code to use the feature_word_info array, that have exactly the same CPUID eax/ecx/register values for each feature word. Signed-off-by: Eduardo Habkost --- target-i386/cpu.c | 24 +++- 1 file

[Qemu-devel] [PATCH qom-cpu 1/9] target-i386: cleanup: Group together level, xlevel, xlevel2 fields

2013-04-22 Thread Eduardo Habkost
Consolidate level, xlevel, xlevel2 fields in x86_def_t and CPUX86State. Signed-off-by: Eduardo Habkost Reviewed-By: Igor Mammedov --- Changes v9: * Merged "target-i386: Move cpuid_xlevel, cpuid_xlevel2 fields in X86CPU" and "target-i386: Move xlevel/xlevel2 in struct x86_def_t" in a singl

[Qemu-devel] [PATCH qom-cpu 2/9] target-i386/kvm.c: Code formatting changes

2013-04-22 Thread Eduardo Habkost
Add appropriate spaces around operators, and break line where it needs to be broken to allow feature-words array to be introduced without having too-long lines. Signed-off-by: Eduardo Habkost Reviewed-By: Igor Mammedov --- Changes v9: * 1-char alignment change: keep the opening parenthesis of b

[Qemu-devel] [PATCH qom-cpu 0/9] x86: feature words array (v11) + "feature-words" property

2013-04-22 Thread Eduardo Habkost
This series includes the previous "replace cpuid_*features fields with a feature word array" series. The first 4 patches already have a Reviewed-by from Igor, they correspond to v10 plus a small indent fix requested by him. As the cpuid_*features series was holding my "feature-words"/"filtered-fe

Re: [Qemu-devel] [PATCH v3 0/7] virtio-net refactoring.

2013-04-22 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

[Qemu-devel] [PATCH 2/2] win32: add readv/writev emulation

2013-04-22 Thread Paolo Bonzini
Commit e9d8fbf (qemu-file: do not use stdio for qemu_fdopen, 2013-03-27) introduced a usage of writev, which mingw32 does not have. Even though qemu_fdopen itself is not used on mingw32, the future-proof solution is to add an implementation of it. This is simple and similar to how we emulate send

[Qemu-devel] [PATCH 0/2] fix win32 compilation

2013-04-22 Thread Paolo Bonzini
Blue, here is a fix for the Win32 compilation problem that you reported. Paolo Bonzini (2): add missing inclusions of config-host.h win32: add readv/writev emulation include/qemu-common.h | 22 ++ include/qemu/osdep.h| 16 qga/channel-posix

[Qemu-devel] [PATCH 1/2] add missing inclusions of config-host.h

2013-04-22 Thread Paolo Bonzini
The next patch will add a dependency of qemu/osdep.h on config-host.h. It could be nicer to use qemu-common.h, but I prefer to be safer this close to hard feature freeze. Signed-off-by: Paolo Bonzini --- qga/channel-posix.c | 1 + tests/libi2c-omap.c | 1 + tests/libqtest.c

Re: [Qemu-devel] [RFC PATCH 0/8] libqos support

2013-04-22 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH v3] migration: initialize RAM to zero

2013-04-22 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH] ui/gtk: Add Turkish translations

2013-04-22 Thread Anthony Liguori
Hi Ozan, Please include a Signed-off-by in your commit message. Otherwise: Reviewed-by: Anthony Liguori Regards, Anthony Liguori Ozan Çağlayan writes: > --- > po/tr.po | 62 ++ > 1 file changed, 62 insertions(+) > create mode 10

Re: [Qemu-devel] [PATCH v4] Add option to mlock qemu and guest memory

2013-04-22 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH] qdev: Fix device_add bus assumptions

2013-04-22 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH] migration: reflect incoming failure to shell

2013-04-22 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH] chardev: remove the headers of Memory chardev driver

2013-04-22 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH] Allow qtest to be used together with a virtual CPU

2013-04-22 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH 1/1] rng random backend: check for -EAGAIN errors on read

2013-04-22 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH] Fix warnings suppressors to honor --disable-werror

2013-04-22 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH v2 0/4] another round of qemu-char fixes

2013-04-22 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

Re: [Qemu-devel] [PATCH resend 1.5] Add option to mlock qemu and guest memory

2013-04-22 Thread Anthony Liguori
Applied. Thanks. Regards, Anthony Liguori

  1   2   3   4   >