[Qemu-devel] [PATCH 20/22] Add migrate_set_cachesize command

2012-07-13 Thread Juan Quintela
From: Orit Wasserman Change XBZRLE cache size in bytes (the size should be a power of 2, it will be rounded down to the nearest power of 2). If XBZRLE cache size is too small there will be many cache miss. Signed-off-by: Benoit Hudzia Signed-off-by: Petter Svard Signed-off-by: Aidan Shribman

[Qemu-devel] [PATCH] RFC: vfio-powerpc: added VFIO support (v3)

2012-07-13 Thread Alexey Kardashevskiy
It literally does the following: 1. POWERPC IOMMU support (the kernel counterpart is required) 2. The patch assumes that IOAPIC calls are going to be replaced with something generic. 3. vfio_group_iommu_ioctl() has been added to let sPAPR IOMMU handler to call VFIO IOMMU driver. 4. Change sPAPR

Re: [Qemu-devel] Bad mail header?

2012-07-13 Thread Juan Quintela
Peter Maydell wrote: > On 1 July 2012 11:16, Juan Quintela wrote: >> Stefan Weil wrote: >>> this mail and the other mails from this patch series trigger >>> an alert in my mail filter: >>> X-Amavis-Alert: BAD HEADER SECTION Duplicate header field: "References" > >> You are right,  I also have du

[Qemu-devel] [PATCH 17/22] Change ram_save_block to return -1 if there are no more changes

2012-07-13 Thread Juan Quintela
From: Orit Wasserman It will return 0 if the page is unmodifed. Signed-off-by: Orit Wasserman Signed-off-by: Juan Quintela --- arch_init.c | 26 -- 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/arch_init.c b/arch_init.c index 8cbf8f4..78cdf50 100644

Re: [Qemu-devel] [PATCH v2] MP initialization protocol differs between cpu families, and for P6 and onward models it is up to CPU to decide if it will be BSP using this protocol, so try to model this.

2012-07-13 Thread Igor Mammedov
On 07/12/2012 03:39 PM, Peter Maydell wrote: On 12 July 2012 14:22, Igor Mammedov wrote: This patch: - moves decision to designate BSP from board into cpu, making cpu self-sufficient in this regard. Later it will allow to cleanup hw/pc.c and remove cpu_reset and wrappers from there. - store

[Qemu-devel] [PATCH 09/22] ram: save_live_setup() don't need to sent pages

2012-07-13 Thread Juan Quintela
We should send pages on interate phase, not in setup one. This was a "bug". Just removing the loop does what we want. Tested that it works with current ram_load(). Signed-off-by: Juan Quintela --- arch_init.c | 34 -- 1 file changed, 34 deletions(-) diff --g

[Qemu-devel] [Bug 1024248] [NEW] qemu -M isapc displays blank screen

2012-07-13 Thread Michael Tokarev
Public bug reported: $ qemu-system-x86_64 -M isapc This displays blank SDL window. It has been this way since forever I guess, at least according to http://bugs.debian.org/605525 (a Debian bugreport about it). However, this: $ qemu-system-x86_64 -M isapc -enable-kvm works (at least in current

[Qemu-devel] [Bug 1024248] Re: qemu -M isapc displays blank screen

2012-07-13 Thread Bug Watch Updater
** Changed in: qemu (Debian) Status: Unknown => Confirmed -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1024248 Title: qemu -M isapc displays blank screen Status in QEMU: Confirmed Status

[Qemu-devel] [PATCH 07/22] savevm: split save_live_setup from save_live_state

2012-07-13 Thread Juan Quintela
This patch splits stage 1 to its own function for both save_live users, ram and block. It is just a copy of the function, removing the parts of the other stages. Optimizations would came later. Signed-off-by: Juan Quintela --- arch_init.c | 87 +++---

[Qemu-devel] [PATCH 10/22] ram: save_live_complete() only do one loop

2012-07-13 Thread Juan Quintela
We were doing the same loop that stage2, and a new one for stage3. We only need the one for stage3. Signed-off-by: Juan Quintela --- arch_init.c | 32 1 file changed, 32 deletions(-) diff --git a/arch_init.c b/arch_init.c index 2a6fc77..3c38a52 100644 --- a/a

[Qemu-devel] [PATCH 11/22] ram: iterate phase

2012-07-13 Thread Juan Quintela
We only need to synchronize the bitmap when the number of dirty pages is low. Not every time that we call the function. Signed-off-by: Juan Quintela --- arch_init.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/arch_init.c b/arch_init.c index 3c38a52..b08c615 1

[Qemu-devel] [PATCH 16/22] Add uleb encoding/decoding functions

2012-07-13 Thread Juan Quintela
From: Orit Wasserman Implement Unsigned Little Endian Base 128. Signed-off-by: Orit Wasserman Signed-off-by: Juan Quintela --- cutils.c | 33 + qemu-common.h |8 2 files changed, 41 insertions(+) diff --git a/cutils.c b/cutils.c index b0bdd

[Qemu-devel] [PATCH 14/22] Add XBZRLE documentation

2012-07-13 Thread Juan Quintela
From: Orit Wasserman Signed-off-by: Orit Wasserman Signed-off-by: Juan Quintela --- docs/xbzrle.txt | 136 +++ 1 file changed, 136 insertions(+) create mode 100644 docs/xbzrle.txt diff --git a/docs/xbzrle.txt b/docs/xbzrle.txt new file mod

Re: [Qemu-devel] [PATCH] xics: added end-of-interrupt (EOI) handlers

2012-07-13 Thread Alexey Kardashevskiy
Already outdated :) On 10/07/12 23:46, Alexey Kardashevskiy wrote: > Normally when the host driver gets called via interrupt, it disables IRQ > first, then handles it and enables back. In the case of PCI pass through, > the actual handling is done by the guest so the host driver needs to know > wh

Re: [Qemu-devel] [PATCH] target-arm: kvm: use KVM_SET_SREGS to set target to Cortex A15

2012-07-13 Thread Peter Maydell
On 13 July 2012 04:37, Rusty Russell wrote: > Recent kernels use this to set the cpu and features (currently, only > the A15 is supported). > > Note that this causes the registers in the CPU to be initialized, so > it's important that all CPUs are created first (they are, as it turns > out). > > T

[Qemu-devel] [PATCH 22/22] ram: save live optimization

2012-07-13 Thread Juan Quintela
Optimize stage3 (complete), to use the page cached if it is there, but not update the cache with new pages (they will never be reused). Signed-off-by: Juan Quintela --- arch_init.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/arch_init.c b/arch_init.c inde

Re: [Qemu-devel] [PATCH v9 07/15] target-or32: Add instruction translation

2012-07-13 Thread Peter Maydell
On 13 July 2012 05:35, Jia Liu wrote: > +static inline uint32_t field(uint32_t val, int start, int length) > +{ > +val >>= start; > +val &= ~(~0 << length); > +return val; > +} extract32() is in bitops.h now, so it would be better to use that instead. Thanks for prodding us to actuall

[Qemu-devel] [PATCH 01/22] savevm: Use a struct to pass all handlers

2012-07-13 Thread Juan Quintela
This would make easier to add more operations in the next patches. Signed-off-by: Juan Quintela --- savevm.c | 54 +- vmstate.h |7 +++ 2 files changed, 32 insertions(+), 29 deletions(-) diff --git a/savevm.c b/savevm.c index a15c16

[Qemu-devel] [PATCH 15/22] Add cache handling functions

2012-07-13 Thread Juan Quintela
From: Orit Wasserman Add LRU page cache mechanism. The page are accessed by their address. Signed-off-by: Benoit Hudzia Signed-off-by: Petter Svard Signed-off-by: Aidan Shribman Signed-off-by: Orit Wasserman Signed-off-by: Juan Quintela --- Makefile.objs |1 + cutils.c

[Qemu-devel] [PATCH 03/22] savevm: remove SaveSetParamsHandler

2012-07-13 Thread Juan Quintela
It was used only once, just unfold. Signed-off-by: Juan Quintela --- vmstate.h |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vmstate.h b/vmstate.h index 4bce53b..5e1a7cc 100644 --- a/vmstate.h +++ b/vmstate.h @@ -26,13 +26,12 @@ #ifndef QEMU_VMSTATE_H #define QEMU_VM

[Qemu-devel] [PATCH 21/22] Add XBZRLE statistics

2012-07-13 Thread Juan Quintela
From: Orit Wasserman Signed-off-by: Benoit Hudzia Signed-off-by: Petter Svard Signed-off-by: Aidan Shribman Signed-off-by: Orit Wasserman Signed-off-by: Juan Quintela --- arch_init.c | 66 ++ hmp.c| 13 +++ mig

Re: [Qemu-devel] [PATCH v9 07/15] target-or32: Add instruction translation

2012-07-13 Thread Jia Liu
Hi Peter, On Fri, Jul 13, 2012 at 4:09 PM, Peter Maydell wrote: > On 13 July 2012 05:35, Jia Liu wrote: >> +static inline uint32_t field(uint32_t val, int start, int length) >> +{ >> +val >>= start; >> +val &= ~(~0 << length); >> +return val; >> +} > > extract32() is in bitops.h now,

[Qemu-devel] [PATCH 00/22] Migration next

2012-07-13 Thread Juan Quintela
Hi This includes ram_save_live split + XBZRE changes. Changes for the previous posts of this series: ram_save_split: - recalculate expected_time (Igor). - Use PRIu64 consistently everywhere XBZRE: - rebased on top of previous series - remove stage3 optimization, now XBZRE don't know about stage

[Qemu-devel] [PATCH 02/22] savevm: Live migration handlers register the struct directly

2012-07-13 Thread Juan Quintela
Notice that the live migration users never unregister, so no problem about freeing the ops structure. Signed-off-by: Juan Quintela --- arch_init.c |9 +++-- block-migration.c | 10 -- migration.h |4 ++-- savevm.c | 18 +++--- vl.c

Re: [Qemu-devel] [RFC] block: Removed coroutine ownership assumption

2012-07-13 Thread Markus Armbruster
Peter Crosthwaite writes: > Hi Markus, > > I consolidated this discussion into a new RFC which proposes a few > solutions the the bdrv_read() from init() problem. > > http://lists.gnu.org/archive/html/qemu-devel/2012-07/msg00237.html > > Are you able to comment on those ideas WRT your latest thou

Re: [Qemu-devel] [RFC] Removing brdv_read()s from device init functions

2012-07-13 Thread Markus Armbruster
Peter Crosthwaite writes: > Hi All, > > This RFC comes from the recent discussion Re coroutines and the block > layer - the current topic of disucussion there has shifted to > "bdrv_read() from device init", so rather than continuing the > discussion as a tangent to the unrelated original topic I

[Qemu-devel] [PATCH 08/22] savevm: split save_live into stage2 and stage3

2012-07-13 Thread Juan Quintela
We split it into 2 functions, foo_live_iterate, and foo_live_complete. At this point, we only remove the bits that are for the other stage, functionally this is equivalent to previous code. Signed-off-by: Juan Quintela --- arch_init.c | 72 +- block-mi

Re: [Qemu-devel] [PATCH 1/2] coroutine-ucontext: Help valgrind understand coroutines

2012-07-13 Thread Kevin Wolf
Am 12.07.2012 19:14, schrieb Peter Maydell: > On 12 July 2012 15:27, Kevin Wolf wrote: >> valgrind tends to get confused and report false positives when you >> switch stacks and don't tell it about it. > > Does the sigaltstack backend need anything similar? Don't know, I never used valgrind with

[Qemu-devel] [PATCH 13/22] Add migration capabilities

2012-07-13 Thread Juan Quintela
From: Orit Wasserman Add migration capabilities that can be queried by the management. The management can query the source QEMU and the destination QEMU in order to verify both support some migration capability (currently only XBZRLE). The management can enable a capability for the next migration

[Qemu-devel] [PATCH 19/22] Add XBZRLE to ram_save_block and ram_save_live

2012-07-13 Thread Juan Quintela
From: Orit Wasserman In the outgoing migration check to see if the page is cached and changed than send compressed page by using save_xbrle_page function. In the incoming migration check to see if RAM_SAVE_FLAG_XBZRLE is set and decompress the page (by using load_xbrle function). Signed-off-by:

[Qemu-devel] [PATCH 06/22] savevm: introduce is_active method

2012-07-13 Thread Juan Quintela
Enable the creation of a method to tell migration if that section is active and should be migrate. We use it for blk-migration, that is normally not active. We don't create the method for RAM, as setups without RAM are very strange O:-) Signed-off-by: Juan Quintela --- block-migration.c | 13

Re: [Qemu-devel] [PATCH] Get tests/tcg building, fix unused variable warning due to wrong extended asm operand, fix the 'test' make target.

2012-07-13 Thread Wei-Ren Chen
Tested-by: Wei-Ren Chen On Fri, Jul 13, 2012 at 02:55:13AM -0400, Catalin Patulea wrote: > Not all tests pass, but at least they can be run using 'make test'. > > To build individual tests: > $ cd $BUILD_PATH/tests/tcg > $ SRC_PATH=path/to/qemu make [snip] Regards, chenwj -- Wei-Ren Chen

Re: [Qemu-devel] [PATCH 1/2] coroutine-ucontext: Help valgrind understand coroutines

2012-07-13 Thread Kevin Wolf
Am 12.07.2012 19:07, schrieb Stefan Weil: > Great that you address this issue! > I have two annotations, please see below. > > > Am 12.07.2012 16:27, schrieb Kevin Wolf: >> valgrind tends to get confused and report false positives when you >> switch stacks and don't tell it about it. >> >> Signed

Re: [Qemu-devel] [Bug 965327] Re: virtio-pci: can't reserve io 0x0000-0x001f

2012-07-13 Thread Alexey Kardashevskiy
Here - http://git.qemu.org/qemu.git - is no mention of 1.1.0-1. The master branch from there seems working for me, just checked. Please try the latest master. This is what my guest prints. Both devices work. root@erif_root:~# lspci -v 00:00.0 Ethernet controller: Qumranet, Inc. Virtio network de

[Qemu-devel] [PATCH 05/22] savevm: Refactor cancel operation in its own operation

2012-07-13 Thread Juan Quintela
Intead of abusing stage with value -1. Signed-off-by: Juan Quintela --- arch_init.c | 11 ++- block-migration.c | 10 ++ savevm.c |4 ++-- vmstate.h |1 + 4 files changed, 15 insertions(+), 11 deletions(-) diff --git a/arch_init.c b/arch_init.c

[Qemu-devel] [PATCH 18/22] Add xbzrle_encode_buffer and xbzrle_decode_buffer functions

2012-07-13 Thread Juan Quintela
From: Orit Wasserman For performance we are encoding long word at a time. For nzrun we use long-word-at-a-time NULL-detection tricks from strcmp(): using ((lword - 0x0101010101010101) & (~lword) & 0x8080808080808080) test to find out if any byte in the long word is zero. Signed-off-by: Benoit Hu

[Qemu-devel] [PATCH 04/22] savevm: remove SaveLiveStateHandler

2012-07-13 Thread Juan Quintela
It was used only once, just unfold. Signed-off-by: Juan Quintela --- vmstate.h |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vmstate.h b/vmstate.h index 5e1a7cc..0e24834 100644 --- a/vmstate.h +++ b/vmstate.h @@ -27,13 +27,12 @@ #define QEMU_VMSTATE_H 1 typedef void

Re: [Qemu-devel] [PATCH 1/2] coroutine-ucontext: Help valgrind understand coroutines

2012-07-13 Thread Kevin Wolf
Am 13.07.2012 10:45, schrieb Kevin Wolf: > Am 12.07.2012 19:07, schrieb Stefan Weil: >> Great that you address this issue! >> I have two annotations, please see below. >> >> >> Am 12.07.2012 16:27, schrieb Kevin Wolf: >>> valgrind tends to get confused and report false positives when you >>> switch

[Qemu-devel] [PATCH 12/22] ram: save_live_setup() we don't need to synchronize the dirty bitmap.

2012-07-13 Thread Juan Quintela
1st: we were synchonizing the dirty bitmap before calling memory_global_dirty_log_start(). 2nd: We are marking all pages as dirty anywhere, no reason to go through all the bitmap to "mark" dirty same pages twice. So, call removed. Signed-off-by: Juan Quintela --- arch_init.c |2

Re: [Qemu-devel] [PATCH v2 1/3] bitops: fix types

2012-07-13 Thread Kevin Wolf
Am 12.07.2012 22:21, schrieb Blue Swirl: > On Wed, Jul 11, 2012 at 12:49 PM, Kevin Wolf wrote: >> Am 08.07.2012 21:22, schrieb blauwir...@gmail.com: >>> From: Blue Swirl >>> >>> Use 'unsigned int' for bit numbers instead of 'unsigned long' or >>> 'int'. Adjust asserts. >>> >>> Signed-off-by: Blue

Re: [Qemu-devel] [PATCH 1/5] Avoid GCC extension ?:

2012-07-13 Thread Kevin Wolf
Am 12.07.2012 22:28, schrieb Blue Swirl: > On Wed, Jul 11, 2012 at 12:54 PM, Kevin Wolf wrote: >> Am 08.07.2012 14:09, schrieb Andreas Schwab: >>> blauwir...@gmail.com writes: >>> +pstrcpy(bs->backing_format, sizeof(bs->backing_format), +backing_fmt ? backing_file : "");

Re: [Qemu-devel] [RFC] introduce a dynamic library to expose qemu block API

2012-07-13 Thread Stefan Hajnoczi
On Tue, Jul 10, 2012 at 09:18:01AM +0200, Paolo Bonzini wrote: > Il 10/07/2012 07:37, Wenchao Xia ha scritto: > >> > >> For getting the other metadata about the disk image you mention, another > >> possibility to is just make 'qemu-img info' return the data in a machine > >> parseable format, ie JS

Re: [Qemu-devel] [RFC] introduce a dynamic library to expose qemu block API

2012-07-13 Thread Stefan Hajnoczi
On Mon, Jul 09, 2012 at 04:36:07PM +0200, Christoph Hellwig wrote: > On Mon, Jul 09, 2012 at 04:54:08PM +0800, Wenchao Xia wrote: > > Hi, Paolo and folks, > > qemu have good capabilities to access different virtual disks, I want > > to expose its block layer API to let 3rd party program linked in

Re: [Qemu-devel] [RFC PATCH 01/36] qapi: generalize documentation of streaming commands

2012-07-13 Thread Kevin Wolf
Am 12.07.2012 22:41, schrieb Blue Swirl: > On Thu, Jul 12, 2012 at 8:07 AM, Kevin Wolf wrote: >> Am 11.07.2012 18:00, schrieb Paolo Bonzini: >>> Il 15/06/2012 18:45, Eric Blake ha scritto: Pre-existing, but do we have any policy on US (canceled) vs. UK (cancelled) spelling? Obviously, o

Re: [Qemu-devel] [RFC] introduce a dynamic library to expose qemu block API

2012-07-13 Thread Stefan Hajnoczi
On Tue, Jul 10, 2012 at 09:17:05AM +0200, Paolo Bonzini wrote: > Il 10/07/2012 07:04, Wenchao Xia ha scritto: > > 于 2012-7-9 17:13, Paolo Bonzini 写道: > >> Il 09/07/2012 10:54, Wenchao Xia ha scritto: > >>> Following is my implementing plan draft: > >>>1 introduce libqblock.so in sub directory i

Re: [Qemu-devel] [RFC] introduce a dynamic library to expose qemu block API

2012-07-13 Thread Daniel P. Berrange
On Fri, Jul 13, 2012 at 10:12:47AM +0100, Stefan Hajnoczi wrote: > On Tue, Jul 10, 2012 at 09:18:01AM +0200, Paolo Bonzini wrote: > > Il 10/07/2012 07:37, Wenchao Xia ha scritto: > > >> > > >> For getting the other metadata about the disk image you mention, another > > >> possibility to is just mak

Re: [Qemu-devel] [PATCH v9 05/15] target-or32: Add int instruction helpers

2012-07-13 Thread Max Filippov
Hi. On Fri, Jul 13, 2012 at 8:34 AM, Jia Liu wrote: > Add OpenRISC int instruction helpers. > > Signed-off-by: Jia Liu > --- > target-openrisc/Makefile.objs |2 +- > target-openrisc/helper.h |5 +++ > target-openrisc/int_helper.c | 87 > +

Re: [Qemu-devel] [RFC] Removing brdv_read()s from device init functions

2012-07-13 Thread Peter Crosthwaite
On Fri, Jul 13, 2012 at 6:33 PM, Markus Armbruster wrote: > Peter Crosthwaite writes: > >> Hi All, >> >> This RFC comes from the recent discussion Re coroutines and the block >> layer - the current topic of disucussion there has shifted to >> "bdrv_read() from device init", so rather than continu

Re: [Qemu-devel] [PATCH v9 11/15] target-or32: Add system instructions

2012-07-13 Thread Max Filippov
On Fri, Jul 13, 2012 at 8:35 AM, Jia Liu wrote: > Add OpenRISC system instructions. > > Signed-off-by: Jia Liu > --- > target-openrisc/Makefile.objs |2 +- > target-openrisc/cpu.h |3 + > target-openrisc/helper.h |4 + > target-openrisc/sys_helper.c | 287 > ++

Re: [Qemu-devel] [RFC] introduce a dynamic library to expose qemu block API

2012-07-13 Thread Christoph Hellwig
On Fri, Jul 13, 2012 at 10:13:15AM +0100, Stefan Hajnoczi wrote: > How is that different from all the qemu-io commands? qemu-io has no modes to just dumb the output without additional information / statistics or for the write case just take user input instead of a pattern. I actually tried to add

Re: [Qemu-devel] [RFC] Removing brdv_read()s from device init functions

2012-07-13 Thread Kevin Wolf
Am 13.07.2012 11:18, schrieb Peter Crosthwaite: > On Fri, Jul 13, 2012 at 6:33 PM, Markus Armbruster wrote: >> Peter Crosthwaite writes: >>> One policy suggested is to ban bdrv_read() from init period and >>> require devices to Lazy init. That is, on the first load, do the read >>> you were going

Re: [Qemu-devel] [RFC] introduce a dynamic library to expose qemu block API

2012-07-13 Thread Stefan Hajnoczi
On Fri, Jul 13, 2012 at 11:27:55AM +0200, Christoph Hellwig wrote: > On Fri, Jul 13, 2012 at 10:13:15AM +0100, Stefan Hajnoczi wrote: > > How is that different from all the qemu-io commands? > > qemu-io has no modes to just dumb the output without additional > information / statistics or for the w

Re: [Qemu-devel] [RFC] introduce a dynamic library to expose qemu block API

2012-07-13 Thread Stefan Hajnoczi
On Fri, Jul 13, 2012 at 10:16:40AM +0100, Daniel P. Berrange wrote: > On Fri, Jul 13, 2012 at 10:12:47AM +0100, Stefan Hajnoczi wrote: > > On Tue, Jul 10, 2012 at 09:18:01AM +0200, Paolo Bonzini wrote: > > > Il 10/07/2012 07:37, Wenchao Xia ha scritto: > > > >> > > > >> For getting the other metada

Re: [Qemu-devel] [RFC] Fix SCSI hotplug with invalid slot

2012-07-13 Thread Kevin Wolf
[ Whoops, forgot qemu-devel in my original mail, added now ] Am 12.07.2012 20:11, schrieb Anthony Liguori: > Kevin Wolf writes: > >> While trying to hotplug an if=scsi disk with drive_add, I didn't pay >> attention to using a valid slot (it doesn't matter with the usual >> if=none...), and so I

Re: [Qemu-devel] [RFC] introduce a dynamic library to expose qemu block API

2012-07-13 Thread Paolo Bonzini
Il 13/07/2012 11:16, Stefan Hajnoczi ha scritto: >> "Working around the QEMU block layer license" is not a goal per se, >> especially because you haven't a) assessed _what_ is the GPL code that >> the library would use; b) told us why the library should not be under >> the GPL. >> >> Please design

Re: [Qemu-devel] Ask for help with estimate of disassembly speed

2012-07-13 Thread Max Filippov
Hi. On Thu, Jul 12, 2012 at 7:30 PM, Евгений Олегович wrote: [...] > We have developed rough disassembler based on Intel encoding table (from > information in documentation volume "Instruction optimization"). And now we > need to compare speed of our disassembler with others (with Yours too). A

Re: [Qemu-devel] [kvmarm] [PATCH] target-arm: kvm: use KVM_SET_SREGS to set target to Cortex A15

2012-07-13 Thread Alexander Graf
On 13.07.2012, at 05:37, Rusty Russell wrote: > Recent kernels use this to set the cpu and features (currently, only > the A15 is supported). > > Note that this causes the registers in the CPU to be initialized, so > it's important that all CPUs are created first (they are, as it turns > out).

Re: [Qemu-devel] Ask for help with estimate of disassembly speed

2012-07-13 Thread Peter Maydell
On 12 July 2012 16:30, Евгений Олегович wrote: > We will be very glad and grateful, if You can send to us pure DisAsm code > (DLL with parse function or another files), which speed we can measure. If > You have another materials(maybe any speed grafics, or a tests set that can > help us) or thinki

[Qemu-devel] [PATCH 1/2] usb-storage: improve debug logging

2012-07-13 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- hw/usb/dev-storage.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/hw/usb/dev-storage.c b/hw/usb/dev-storage.c index 251e7de..f1d8082 100644 --- a/hw/usb/dev-storage.c +++ b/hw/usb/dev-storage.c @@ -383,6 +383,9 @@ static int usb_

[Qemu-devel] [PATCH 2/2] usb-storage: fix SYNCHRONIZE_CACHE

2012-07-13 Thread Gerd Hoffmann
Commit 59310659073d85745854f2f10c4292555c5a1c51 is incomplete, we'll arrive in the scsi command complete callback in CSW state and must handle that case correctly. Signed-off-by: Gerd Hoffmann --- hw/usb/dev-storage.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/hw/

[Qemu-devel] [PATCH v2] slirp: Handle whole 127.0.0.0/8 network as local addresses.

2012-07-13 Thread Anders Waldenborg
Changes so translation of remote address to the host's ip address in the virtual network happens for all addresses in the 127.0.0.0/8 network, not just 127.0.0.1. This fixes so that hostfwd bound to addresses such as 127.0.0.2 works. Signed-off-by: Anders Waldenborg --- Thanks for the review!

[Qemu-devel] [PATCH 3/5] vnc: add a more descriptive error message

2012-07-13 Thread Stefan Hajnoczi
From: Amos Kong Currently qemu outputs some low-level error in qemu-sockets.c when failed to start vnc server. eg. 'getaddrinfo(127.0.0.1,5902): Name or service not known' Some libvirt users could not know what's happened with this unclear error message. This patch added a more descriptive error

[Qemu-devel] [PATCH 1/5] megasas: mark mfi_frame_desc as 'static'

2012-07-13 Thread Stefan Hajnoczi
From: Hannes Reinecke Suggested by blue swirl. Patch is on top of Paolo's scsi-next tree. Signed-off-by: Hannes Reinecke Cc: Paolo Bonzini Cc: Blue Swirl Signed-off-by: Stefan Hajnoczi --- hw/megasas.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/megasas.c b/hw/

[Qemu-devel] [PATCH 4/5] qemu-keymaps: Finnish keyboard mapping broken

2012-07-13 Thread Stefan Hajnoczi
From: Michael Tokarev As mentioned in http://bugs.debian.org/660154 , finnish keyboard mapping is kind of broken. Fix it as Timo Sirainen suggests in #660154. Signed-off-by: Michael Tokarev Signed-off-by: Stefan Hajnoczi --- pc-bios/keymaps/fi |2 -- 1 file changed, 2 deletions(-) diff

Re: [Qemu-devel] [RFC] introduce a dynamic library to expose qemu block API

2012-07-13 Thread Kevin Wolf
Am 13.07.2012 11:43, schrieb Stefan Hajnoczi: > On Fri, Jul 13, 2012 at 11:27:55AM +0200, Christoph Hellwig wrote: >> On Fri, Jul 13, 2012 at 10:13:15AM +0100, Stefan Hajnoczi wrote: >>> How is that different from all the qemu-io commands? >> >> qemu-io has no modes to just dumb the output without

[Qemu-devel] [PATCH 5/5] make: Remove 'build-all' rule

2012-07-13 Thread Stefan Hajnoczi
From: Stefan Weil It is not needed, because the 'all' rule does the same. Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- Makefile |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 34d6a9e..6eeabd0 100644 --- a/Makefile +++ b/

[Qemu-devel] [PATCH 2/5] bitops: Fix documentation

2012-07-13 Thread Stefan Hajnoczi
From: Stefan Weil Signed-off-by: Stefan Weil Reviewed-by: Peter Maydell Signed-off-by: Stefan Hajnoczi --- bitops.h |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bitops.h b/bitops.h index b967ef3..c456232 100644 --- a/bitops.h +++ b/bitops.h @@ -319,8 +319,8 @

[Qemu-devel] [PATCH 6/6] s390: make sclp ascii console the default

2012-07-13 Thread Christian Borntraeger
This patch makes the sclp ascii default for S390. Signed-off-by: Christian Borntraeger --- hw/s390-virtio.c |1 - vl.c | 40 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/hw/s390-virtio.c b/hw/s390-virtio.c index 577fcee

[Qemu-devel] [PATCH 1/6] s390: Fix error handling and condition code of service call

2012-07-13 Thread Christian Borntraeger
Invalid sccb addresses will cause specification or addressing exception. Lets add those checks. Furthermore, the good case (cc=0) was incorrect for KVM, we did not set the CC at all. Signed-off-by: Christian Borntraeger --- target-s390x/kvm.c |5 +++-- target-s390x/op_helper.c | 27 +

[Qemu-devel] [PATCH 5/6] s390: sclp ascii console support

2012-07-13 Thread Christian Borntraeger
From: Heinz Graalfs This code adds console support by implementing SCLP's ASCII Console Data event. This is the same console as LPARs ASCII console or z/VMs sysascii. When data is received from the character layer it creates a service interrupt to trigger a Read Event Data command from the gues

[Qemu-devel] [PATCH 3/6] s390: sclp event support

2012-07-13 Thread Christian Borntraeger
From: Heinz Graalfs Several SCLP features are considered to be events. Those events don't provide SCLP commands on their own, instead they are all based on Read Event Data, Write Event Data, Write Event Mask and the service interrupt. Follow-on patches will provide SCLP's Signal Quiesce (via syst

[Qemu-devel] [PATCH 4/6] s390: sclp signal quiesce support

2012-07-13 Thread Christian Borntraeger
From: Heinz Graalfs This implements the sclp signal quiesce event via the SCLP Event Facility. This allows to gracefully shutdown a guest by using system_powerdown. It creates a service interrupt that will trigger a Read Event Data command from the guest. This code will then add an event that is

[Qemu-devel] [PATCH 2/6] s390: sclp base support

2012-07-13 Thread Christian Borntraeger
From: Heinz Graalfs This adds a more generic infrastructure for handling Service-Call requests on s390. Currently we only support a small subset of Read SCP Info directly in target-s390x. This patch provides the base infrastructure for supporting more commands and moves Read SCP Info. In the futu

[Qemu-devel] [PATCH 0/6v2] s390: several sclp patches

2012-07-13 Thread Christian Borntraeger
This patch-set improve the Service-Call Logical Processor support for s390. We tried to implement most of the comments that we got from the first patch review. We still have code in hw/ since sclp supports features like console etc. target-s390/op_helper.c now handles the basic checks for the inst

Re: [Qemu-devel] [RFC] introduce a dynamic library to expose qemu block API

2012-07-13 Thread Christoph Hellwig
On Fri, Jul 13, 2012 at 12:42:41PM +0200, Kevin Wolf wrote: > It still feels a bit more like qemu-io-style operations. Not sure what > your use case looks like exactly, but adding a qemu-io command that > reads data from a file and writes it at a given offset into the images > (or vice versa) shoul

[Qemu-devel] [PULL 0/5] Trivial patches for July 3 to 13 2012

2012-07-13 Thread Stefan Hajnoczi
The following changes since commit c0958559b1a589a0d189c45ea1adaa6b345f4256: iov: Fix do_send_recv() for MinGW (also fixes a build breakage) (2012-07-11 08:51:50 -0500) are available in the git repository at: git://github.com/stefanha/qemu.git trivial-patches for you to fetch changes up to

[Qemu-devel] [PATCHv4 04/14] target-unicore32: Drop UC32_CPUID macros

2012-07-13 Thread Guan Xuetao
From: Andreas Färber Any code that depends on a particular CPU type can now go through callbacks on the QOM UniCore32CPUClass. Signed-off-by: Andreas Färber --- target-unicore32/cpu.h |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/target-unicore32/cpu.h b/target-un

[Qemu-devel] [PATCHv4 11/14] unicore32-softmmu: Add puv3 pm support

2012-07-13 Thread Guan Xuetao
This patch adds puv3 pm (power management) support, include pm device simulation for kernel booting. Thank Blue Swirl for pointing out the missing "break". Signed-off-by: Guan Xuetao --- hw/Makefile.objs |1 + hw/puv3.c|1 + hw/puv3_pm.c | 149 +++

[Qemu-devel] [PATCHv4 05/14] unicore32-softmmu: Implement softmmu specific functions

2012-07-13 Thread Guan Xuetao
This patch implements softmmu specific functions, include tlb_fill, switch_mode, do_interrupt and uc32_cpu_handle_mmu_fault. So the full exception handlers and page table walking could work now. Signed-off-by: Guan Xuetao --- target-unicore32/op_helper.c | 22 - target-unicore32/softmmu.c

[Qemu-devel] [PATCHv4 13/14] unicore32-softmmu: Add ps2 support

2012-07-13 Thread Guan Xuetao
This patch adds ps2/keyboard support, and enables CONFIG_PCKBD. Signed-off-by: Guan Xuetao --- default-configs/unicore32-softmmu.mak |1 + hw/puv3.c |5 + 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/default-configs/unicore32-softmmu.mak

[Qemu-devel] [PATCHv4 09/14] unicore32-softmmu: Add puv3 ostimer support

2012-07-13 Thread Guan Xuetao
This patch adds puv3 ostimer support, include os timer device simulation and ptimer support in puv3 machine. Signed-off-by: Guan Xuetao --- default-configs/unicore32-softmmu.mak |1 + hw/Makefile.objs |1 + hw/puv3.c |3 + hw/puv3_ost.

[Qemu-devel] [PATCHv4 10/14] unicore32-softmmu: Add puv3 gpio support

2012-07-13 Thread Guan Xuetao
This patch adds puv3 gpio (General Purpose Input/Output) support, include gpio device simulation and its interrupt support. Signed-off-by: Guan Xuetao --- hw/Makefile.objs |1 + hw/puv3.c|6 ++ hw/puv3_gpio.c | 141 ++ 3 file

Re: [Qemu-devel] [RFC] introduce a dynamic library to expose qemu block API

2012-07-13 Thread Kevin Wolf
Am 13.07.2012 12:55, schrieb Christoph Hellwig: > On Fri, Jul 13, 2012 at 12:42:41PM +0200, Kevin Wolf wrote: >> It still feels a bit more like qemu-io-style operations. Not sure what >> your use case looks like exactly, but adding a qemu-io command that >> reads data from a file and writes it at a

[Qemu-devel] [PATCHv4 03/14] unicore32-softmmu: Make UniCore32 cpuid & exceptions correct and runable

2012-07-13 Thread Guan Xuetao
This patch initializes the cpuid to exactly correct value because linux kernel will check it. In addition, the exception types are specified in proper situations. Then it could make exceptions generated correctly and timely. Signed-off-by: Guan Xuetao --- cpu-exec.c |1 + linux-u

[Qemu-devel] [PATCHv4 06/14] unicore32-softmmu: Make sure that kernel can access user space

2012-07-13 Thread Guan Xuetao
As a matter of course, we need to access user space in kernel code, so we need to correct load/store decoders to indicate correct memory region. Signed-off-by: Guan Xuetao --- target-unicore32/translate.c | 36 ++-- 1 files changed, 26 insertions(+), 10 deletion

[Qemu-devel] [PATCHv4 07/14] unicore32-softmmu: Add puv3 soc/board support

2012-07-13 Thread Guan Xuetao
This patch only add puv3 soc/board support, which introduces puv3 machine description, and specifies console type. Signed-off-by: Guan Xuetao --- default-configs/unicore32-softmmu.mak |1 + hw/puv3.c | 93 + hw/puv3.h

[Qemu-devel] [PATCHv4 12/14] unicore32-softmmu: Add puv3 dma support

2012-07-13 Thread Guan Xuetao
This patch adds puv3 dma (Direct Memory Access) support, include dma device simulation for kernel booting. Signed-off-by: Guan Xuetao --- hw/Makefile.objs |1 + hw/puv3.c|1 + hw/puv3_dma.c| 109 ++ 3 files changed, 111 ins

[Qemu-devel] [PATCHv4 01/14] unicore32-softmmu: Add unicore32-softmmu build support

2012-07-13 Thread Guan Xuetao
This patch adds unicore32-softmmu build support, include configure, makefile, arch_init, and all missing functions needed by softmmu. Although all missing functions are empty, unicore32-softmmu could be build successfully. Signed-off-by: Guan Xuetao --- arch_init.c |

[Qemu-devel] [PATCHv4 14/14] unicore32-softmmu: Add maintainer information for UniCore32 machine

2012-07-13 Thread Guan Xuetao
Signed-off-by: Guan Xuetao --- MAINTAINERS |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 30ed56d..35dbbad 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -405,6 +405,14 @@ M: Alexander Graf S: Maintained F: hw/s390-*.c +UniCore3

[Qemu-devel] [PATCHv4 08/14] unicore32-softmmu: Add puv3 interrupt support

2012-07-13 Thread Guan Xuetao
This patch adds puv3 interrupt support, include interrupt controler device simulation and interrupt handler in puv3 machine. Signed-off-by: Guan Xuetao --- hw/Makefile.objs |3 + hw/puv3.c| 23 +- hw/puv3_intc.c | 135 +

Re: [Qemu-devel] [RFC] introduce a dynamic library to expose qemu block API

2012-07-13 Thread Paolo Bonzini
Il 13/07/2012 11:51, Paolo Bonzini ha scritto: > Il 13/07/2012 11:16, Stefan Hajnoczi ha scritto: >>> "Working around the QEMU block layer license" is not a goal per se, >>> especially because you haven't a) assessed _what_ is the GPL code that >>> the library would use; b) told us why the library

[Qemu-devel] [PATCHv4 02/14] unicore32-softmmu: Add coprocessor 0(sysctrl) and 1(ocd) instruction support

2012-07-13 Thread Guan Xuetao
Coprocessor 0 is system control coprocessor, and we need get/set its contents. Also, all cache/tlb ops shoule be implemented here, but just ignored with no harm. Coprocessor 1 is OCD (on-chip-debugger), which is used for faked console, so we could output chars to this console without graphic card

[Qemu-devel] [PATCHv4 00/14] unicore32: Add unicore32-softmmu support

2012-07-13 Thread Guan Xuetao
These patches implement softmmu support on unicore32 architecture. Based on master branch of qemu, the patches can be fetched from: git://github.com/gxt/QEMU.git unicore32 UniCore32 CPU is embedded in PKUnity-3 SoC, so we add necessary puv3 devices simulation codes together. Only minimal syste

Re: [Qemu-devel] invoking monitor command without Ctrl+Alt+2

2012-07-13 Thread Eric Blake
On 07/12/2012 10:14 PM, siddharth srivastava wrote: > Hi > > I also see that qemu 0.13 has live migration in inbuilt.Does it also > uses libvirt behind the scenes to create live ram snapshot ? No, you've got it backwards. Qemu does not use libvirt. Rather, libvirt wraps qemu features to expose

[Qemu-devel] [Bug 1024275] [NEW] bad iteraction between -daemonize and -nographic

2012-07-13 Thread Michael Tokarev
Public bug reported: $ qemu -daemonize -nographic $ _ After this, the terminal is switched to some weird mode, not processing cr/lf, and not showing the characters being typed (it is fixable by using `stty sane'). Something is seriously wrong here: When -daemonize is given, qemu not touch tty

[Qemu-devel] [Bug 1024275] Re: bad iteraction between -daemonize and -nographic

2012-07-13 Thread Michael Tokarev
FWIW, it has been present at least since version 0.10 of qemu, and still present in current 1.1 version. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1024275 Title: bad iteraction between -daemoni

[Qemu-devel] [Bug 1024275] Re: bad iteraction between -daemonize and -nographic

2012-07-13 Thread Bug Watch Updater
** Changed in: qemu (Debian) Status: Unknown => New -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1024275 Title: bad iteraction between -daemonize and -nographic Status in QEMU: Confirmed

Re: [Qemu-devel] [PATCHv4 07/14] unicore32-softmmu: Add puv3 soc/board support

2012-07-13 Thread Dunrong Huang
2012/7/13 Guan Xuetao : > This patch only add puv3 soc/board support, which introduces puv3 > machine description, and specifies console type. > > Signed-off-by: Guan Xuetao > --- > default-configs/unicore32-softmmu.mak |1 + > hw/puv3.c | 93 > +

Re: [Qemu-devel] [PATCH 2/3] target-arm: kvm: use KVM_GET_MSRS/KVM_SET_MSRS for CP15 registers.

2012-07-13 Thread Blue Swirl
On Fri, Jul 13, 2012 at 3:43 AM, Rusty Russell wrote: > Recent kernels use this to set the CP15 registers, rather than putting > them in 'struct kvm_regs'. The changed size of that struct changes the > ioctl number, so we have a temporary hack to try both. > > Signed-off-by: Rusty Russell > > di

Re: [Qemu-devel] [Qemu-ppc] [PATCH] RFC: vfio-powerpc: added VFIO support (v2)

2012-07-13 Thread Blue Swirl
On Fri, Jul 13, 2012 at 5:24 AM, Alexey Kardashevskiy wrote: > Two comments below. > > On 13/07/12 06:54, Blue Swirl wrote: >> On Thu, Jul 12, 2012 at 8:52 AM, Alexey Kardashevskiy wrote: >>> It literally does the following: >>> >>> 1. POWERPC IOMMU support (the kernel counterpart is required) >>

  1   2   >