Re: [Qemu-devel] [PATCH] curl: fix curl read

2013-05-08 Thread Fam Zheng
On Thu, 05/09 08:41, Stefan Hajnoczi wrote: > On Fri, May 03, 2013 at 04:00:09PM +0800, Fam Zheng wrote: > > @@ -391,7 +427,12 @@ static QemuOptsList runtime_opts = { > > .type = QEMU_OPT_SIZE, > > .help = "Readahead size", > > }, > > -{ /* end of list */

Re: [Qemu-devel] [PATCH for-1.5] virtio-pci: bugfix

2013-05-08 Thread Stefan Hajnoczi
On Mon, May 06, 2013 at 06:00:27PM +0300, Michael S. Tsirkin wrote: > mask notifiers are never called without msix, > so devices with backend masking like vhost don't work. > Call mask notifiers explicitly at > startup/cleanup to make it work. > > Signed-off-by: Michael S. Tsirkin > Tested-by: Al

Re: [Qemu-devel] [Bug 1176366] [NEW] TCPIP not working on qemu 1.4.50 (master)

2013-05-08 Thread Stefan Hajnoczi
On Sat, May 04, 2013 at 04:13:19PM -, TC1988 wrote: > whenever I try, in the guest OS, in this case it's NT 3.1, to enable > TCP/IP, it crashes the whole emulator. With either the ne2000 isa, > ne2000 pci or PCnet, still crashes > > below is attached a screenshot. Please use git-bisect(1) to

Re: [Qemu-devel] [ANNOUNCE] QEMU 1.5.0-rc1 is now available

2013-05-08 Thread Dongsheng Song
On Thu, May 9, 2013 at 6:29 AM, Anthony Liguori wrote: > > Hi, > > On behalf of the QEMU Team, I'd like to announce the availability of the > second release candidate for the QEMU 1.5 release. This release is meant > for testing purposes and should not be used in a production environment. > > htt

[Qemu-devel] Jiajun, add me to your LinkedIn network?

2013-05-08 Thread Zhou Chunhua
LinkedIn Zhou Chunhua requested to add you as a connection on LinkedIn: -- Jiajun, I'd like to add you to my professional network on LinkedIn. - Zhou Accept invitation from Zhou Chunhua http://www.linkedin.com/e/-kkb1ec-hghkilms-5

Re: [Qemu-devel] [PATCH] curl: fix curl read

2013-05-08 Thread Stefan Hajnoczi
On Fri, May 03, 2013 at 04:00:09PM +0800, Fam Zheng wrote: > @@ -391,7 +427,12 @@ static QemuOptsList runtime_opts = { > .type = QEMU_OPT_SIZE, > .help = "Readahead size", > }, > -{ /* end of list */ } > +{ > +.name = "ssl_no_cert", > +

Re: [Qemu-devel] [libvirt]virtio serial device problem

2013-05-08 Thread Alexey Kardashevskiy
On 05/09/2013 04:07 PM, Li Zhang wrote: > On 2013年05月08日 23:53, fred.kon...@greensocs.com wrote: >>> On 05/07/2013 07:50 PM, Paolo Bonzini wrote: Il 07/05/2013 09:20, Li Zhang ha scritto: > Hi all, >> Hi, > When we use the latest version of QEMU to build ovirt, > we get this error

Re: [Qemu-devel] [PATCH v5 0/5] KVM flash memory support

2013-05-08 Thread Paolo Bonzini
Il 09/05/2013 00:44, Jordan Justen ha scritto: > git://github.com/jljusten/qemu.git kvm-flash-v5 > > Utilize KVM_CAP_READONLY_MEM to support PC system flash emulation > with KVM. > > v5: > * Remove patch to pflash_cfi01 which enabled readonly mode > * Adjust kvm code to use KVM READONLY support

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

2013-05-08 Thread Dong Xu Wang
On Thu, Apr 18, 2013 at 6:03 PM, 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 <<

Re: [Qemu-devel] [Qemu-trivial] [PATCH 2/2] remove needless semicolon

2013-05-08 Thread Michael Tokarev
08.05.2013 17:25, Anthony Liguori wrote: > Michael Tokarev writes: > >> 08.05.2013 13:46, Trival wrote: >>> Signed-off-by: Trival > > Something went wrong in sending this. This is not a valid SoB. So, do we not accept it? Should I revert it in the trivial-patches-next ? Thanks, /mjt

[Qemu-devel] [Bug 1178107] [NEW] qemu-system-*.exe -cpu ? (or -M ?) exit silently

2013-05-08 Thread Cauchy Song
Public bug reported: For example, 'qemu-system-arm -cpu ?' on Linux host give me available cpu list: Available CPUs: arm1026 arm1136 arm1136-r2 ... But on Windows host, I got nothing: C:\opt\qemu-1.5.0-rc0-win64>qemu-system-arm -cpu ? C:\opt\qemu-1.5.0-rc0-win64>echo %ERRORLEVEL% 0 **

Re: [Qemu-devel] [libvirt]virtio serial device problem

2013-05-08 Thread Li Zhang
On 2013年05月08日 23:53, fred.kon...@greensocs.com wrote: On 05/07/2013 07:50 PM, Paolo Bonzini wrote: Il 07/05/2013 09:20, Li Zhang ha scritto: Hi all, Hi, When we use the latest version of QEMU to build ovirt, we get this error reported from libvirt. What QEMU commit is this? b3e6d591b05538

[Qemu-devel] [Bug 1178101] [NEW] Could not enable gtk UI on build for Windows target

2013-05-08 Thread Cauchy Song
Public bug reported: $ ${QEMU_SRC_DIR}/configure --prefix=${BIN_ROOT} --cross- prefix=${HOST_TRIPLET}- --extra-cflags="-I${BIN_ROOT}/include" --extra- ldflags="-L${BIN_ROOT}/lib" --enable-gtk --disable-xen ERROR: User requested feature gtk configure was not able to find it $ cat config.l

Re: [Qemu-devel] Query regarding IO paths in QEMU

2013-05-08 Thread Stefan Hajnoczi
On Mon, May 06, 2013 at 02:36:46PM -0700, aayush gupta wrote: > Thanks for the reply. I am trying to use the tracing with qemu-io as > suggested in docs/tracing.txt. I did the following steps: > > 1. Configure and make with simple backend > 2. Create a set of events I am interested in (/tmp/events

Re: [Qemu-devel] [PATCH] curl: fix curl read

2013-05-08 Thread Stefan Hajnoczi
On Fri, May 03, 2013 at 07:23:31PM +0800, Fam Zheng wrote: > On Fri, 05/03 13:09, Stefan Hajnoczi wrote: > > On Fri, May 03, 2013 at 04:00:09PM +0800, Fam Zheng wrote: > > > CURL library API has changed, the current curl driver is not working. > > > This patch rewrites the use of API as well as the

Re: [Qemu-devel] [PATCH RFC 0/3] seabios: move acpi table formatting out of bios

2013-05-08 Thread Gleb Natapov
On Wed, May 08, 2013 at 06:55:22PM -0400, Kevin O'Connor wrote: > On Wed, May 08, 2013 at 03:35:46PM +0300, Michael S. Tsirkin wrote: > > On Wed, May 08, 2013 at 02:35:44PM +0300, Gleb Natapov wrote: > > > On Wed, May 08, 2013 at 02:07:24PM +0300, Michael S. Tsirkin wrote: > > > > On Wed, May 08, 2

Re: [Qemu-devel] [PATCH 9/9] Make monitor command 'dump-guest-memory' dump in kdump-compressed format

2013-05-08 Thread Zhang Xiaohe
于 2013年05月09日 01:16, Eric Blake 写道: On 05/08/2013 02:50 AM, qiaonuohan wrote: Thanks for your suggestion. I will fix it like: { 'enum': 'DumpCompressionFormat', 'data': [ 'zlib', 'lzo', 'snappy' ] } For zlib is treated as the default compression format, and 'uncompressed' won't be an optio

Re: [Qemu-devel] [PATCH RFC 0/3] seabios: move acpi table formatting out of bios

2013-05-08 Thread Gleb Natapov
On Wed, May 08, 2013 at 09:15:44PM +0300, Michael S. Tsirkin wrote: > On Tue, May 07, 2013 at 07:01:13PM -0400, Kevin O'Connor wrote: > > On Tue, May 07, 2013 at 09:00:48PM +0300, Michael S. Tsirkin wrote: > > > On Thu, Apr 25, 2013 at 12:02:20PM +0300, Michael S. Tsirkin wrote: > > > > Untested ye

[Qemu-devel] [Bug 1175513] Re: Qemu 1.5-git gpu clock control doesn`t work after guest reboot

2013-05-08 Thread commiethebeastie
In text mode and on net console there are no errors, host system just freezes after guest poweroff. This may be a hang-up the pcie? -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1175513 Title: Qemu

Re: [Qemu-devel] [PATCH 01/40] memory: assert that PhysPageEntry's ptr does not overflow

2013-05-08 Thread liu ping fan
On Wed, May 8, 2013 at 12:08 AM, Paolo Bonzini wrote: > > > - Messaggio originale - >> Da: "Peter Maydell" >> A: "Paolo Bonzini" >> Cc: qemu-devel@nongnu.org, a...@ozlabs.ru, "jan kiszka" >> , qemul...@gmail.com, >> stefa...@redhat.com, da...@gibson.dropbear.id.au >> Inviato: Martedì, 7

Re: [Qemu-devel] [PATCH V14 6/6] remove QEMUOptionParameter related functions and struct

2013-05-08 Thread Dong Xu Wang
On 2013/5/9 1:59, Eric Blake wrote: [assuming you mis-typed your cc:, and that you meant kwolf instead of kwol at redhat] On 05/08/2013 02:45 AM, Dong Xu Wang wrote: Signed-off-by: Dong Xu Wang --- include/qemu/option.h | 32 -- util/qemu-option.c| 285 - --

Re: [Qemu-devel] [RFC PATCH 0/8] MemoryRegion and FlatView refcounting, replace hostmem with memory_region_find

2013-05-08 Thread liu ping fan
On Wed, May 8, 2013 at 11:44 PM, Paolo Bonzini wrote: > Il 08/05/2013 08:20, liu ping fan ha scritto: >> On Mon, May 6, 2013 at 10:25 PM, Paolo Bonzini wrote: >>> Hi, >>> >>> this is an alternative approach to refactoring of dataplane's HostMem >>> code. Here, I take Ping Fan's idea of RCU-style

[Qemu-devel] [0/8] Clean up PCI code to allow for multiple root buses

2013-05-08 Thread David Gibson
The current PCI subsystem has kind of half-hearted support for multiple independent root buses - aka PCI domains - in the form of the PCIHostBus structure and its domain field. However, it doesn't quite work because pci_host_bus_register() is always called with a domain of 0. Worse, though, the w

[Qemu-devel] [PATCH 2/8] pci: Move pci_read_devaddr to pci-hotplug-old.c

2013-05-08 Thread David Gibson
pci_read_devaddr() is only used by the legacy functions for the old PCI hotplug interface in pci-hotplug-old.c. So we move the function there, and make it static. Signed-off-by: David Gibson --- hw/pci/pci-hotplug-old.c | 14 ++ hw/pci/pci.c | 16 +--- in

[Qemu-devel] [PATCH 6/8] pci: Simpler implementation of primary PCI bus

2013-05-08 Thread David Gibson
Currently pci_get_primary_bus() searches the list of root buses for one with domain 0. But since host buses are always registered with domain 0, this just amounts to finding the only PCI host bus. This simplifies the implementation by defining the primary PCI bus to be the first one registered, u

Re: [Qemu-devel] [PATCH 02/40] memory: allow memory_region_find() to run on non-root memory regions

2013-05-08 Thread liu ping fan
On Tue, May 7, 2013 at 10:16 PM, Paolo Bonzini wrote: > memory_region_find() is similar to registering a MemoryListener and But losing the priority of MemoryListener. Had better document to warn this, so the user will decide whether it is safe to use the interfaces based on this or not. > check

Re: [Qemu-devel] [libvirt]virtio serial device problem

2013-05-08 Thread Alexey Kardashevskiy
Hi! On 05/09/2013 01:53 AM, fred.kon...@greensocs.com wrote: >> On 05/07/2013 07:50 PM, Paolo Bonzini wrote: >>> Il 07/05/2013 09:20, Li Zhang ha scritto: Hi all, > > Hi, When we use the latest version of QEMU to build ovirt, we get this error reported from libvirt. >>> >>> Wh

[Qemu-devel] [PATCH 2/2] mem: highlight the listener's priority as enum

2013-05-08 Thread Liu Ping Fan
From: Liu Ping Fan It will make the priority prominent, when new listener added. All the priority's value are kept unchanged, except for vhost and hostmem.(Changes introduced by prev patch) Signed-off-by: Liu Ping Fan --- exec.c|4 ++-- hw/virtio/dataplane/hostmem.c

[Qemu-devel] [PATCH 1/2] Vring: vring's listener's priority should higher than kvm

2013-05-08 Thread Liu Ping Fan
From: Liu Ping Fan Hosts threads which handle vring should have high MemoryListener priority than kvm. For currently code, take the following scenario: kvm_region_add() run earlier before vhost_region_add(), then in guest, vring's desc[i] can refer to addressX in the new region known by guest.

[Qemu-devel] [PATCH 3/8] pci: Abolish pci_find_root_bus()

2013-05-08 Thread David Gibson
pci_find_root_bus() takes a domain parameter. Currently PCI root buses with domain other than 0 can't be created, so this is more or less a long winded way of retrieving the main PCI root bus. Numbered domains don't actually properly cover the (non x86) possibilities for multiple PCI root buses,

[Qemu-devel] [PATCH 8/8] pci: Fold host_buses list into PCIHostState functionality

2013-05-08 Thread David Gibson
The host_buses list is an odd structure - a list of pointers to PCI root buses existing in parallel to the normal qdev tree structure. This patch removes it, instead putting the link pointers into the PCIHostState structure, which have a 1:1 relationship to PCIHostBus structures anyway. Signed-of

[Qemu-devel] [PATCH 7/8] pci: Remove domain from PCIHostBus

2013-05-08 Thread David Gibson
There are now no users of the domain field of PCIHostBus, so remove it from the structure, and as a parameter from the pci_host_bus_register() function which sets it. Signed-off-by: David Gibson --- hw/pci/pci.c |6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/hw/pci/

[Qemu-devel] [PATCH 1/8] pci: Cleanup configuration for pci-hotplug.c

2013-05-08 Thread David Gibson
pci-hotplug.c and the CONFIG_PCI_HOTPLUG variable which controls its compilation are misnamed. They're not about PCI hotplug in general, but rather about the pci_add/pci_del interface which are now deprecated in favour of the more general device_add/device_del interface. This patch therefore rena

[Qemu-devel] [PATCH 5/8] pci: Replace pci_find_domain() with more general pci_root_bus_path()

2013-05-08 Thread David Gibson
pci_find_domain() is used in a number of places where we want an id for a whole PCI domain (i.e. the subtree under a PCI root bus). The trouble is that many platforms may support multiple independent host bridges with no hardware supplied notion of domain number. This patch, therefore, replaces c

[Qemu-devel] [PATCH 4/8] pci: Use helper o find device's root bus in pci_find_domain()

2013-05-08 Thread David Gibson
Currently pci_find_domain() performs two functions - it locates the PCI root bus above the given bus, then looks up that root bus's domain number. This patch adds a helper function to perform the first task, finding the root bus for a given PCI device. This is then used in pci_find_domain(). This

Re: [Qemu-devel] Reporting Heisenbugs in qemu

2013-05-08 Thread Rob Landley
On 05/08/2013 04:45:45 AM, Torbjorn Granlund wrote: Paolo Bonzini writes: I guess that's the register windows. There's only so much you can do to optimize them, and heavily recursive workloads (like Perl, or the RTL half of GCC) pay a hefty price. Two qemu targets stand out for slo

Re: [Qemu-devel] [update][PATCH 00/12] target-i386: remove some macros

2013-05-08 Thread li guang
在 2013-05-08三的 10:48 -0300,Eduardo Habkost写道: > On Wed, May 08, 2013 at 01:43:22PM +0800, li guang wrote: > > ping ... > > I guess this didn't get any attention because we were already past soft > freeze, and the focus was to get important features/fixes in shape > before hard freeze. > OK, than

[Qemu-devel] [PATCH] 9p: Be robust against paths without FS_IOC_GETVERSION

2013-05-08 Thread Gabriel de Perthuis
The current implementation checked for supported filesystems at mount time, but actual support depends on the path. Don't error out when finding unversioned paths. This fix allows booting a linux kernel with the same / filesystem as the host; otherwise the boot fails when mounting devtmpfs. Sign

[Qemu-devel] [PATCH] 9p: Be robust against paths without FS_IOC_GETVERSION

2013-05-08 Thread Gabriel de Perthuis
The current implementation checked for supported filesystems at mount time, but actual support depends on the path. Don't error out when finding unversioned paths. This fix allows booting a linux kernel with the same / filesystem as the host; otherwise the boot fails when mounting devtmpfs. Sign

[Qemu-devel] [PATCH 8/8] qapi: add native list coverage for QMP input visitor tests

2013-05-08 Thread Michael Roth
This exercises schema-generated visitors for native list types and does some sanity checking on validity of deserialized data. Signed-off-by: Michael Roth --- tests/test-qmp-input-visitor.c | 181 1 file changed, 181 insertions(+) diff --git a/tests/tes

[Qemu-devel] [PATCH 6/8] qapi: add native list coverage for visitor serialization tests

2013-05-08 Thread Michael Roth
Signed-off-by: Michael Roth --- tests/test-visitor-serialization.c | 247 +--- 1 file changed, 229 insertions(+), 18 deletions(-) diff --git a/tests/test-visitor-serialization.c b/tests/test-visitor-serialization.c index 8c8adac..b5e1a4b 100644 --- a/tests/test-

[Qemu-devel] [PATCH 7/8] qapi: add native list coverage for QMP output visitor tests

2013-05-08 Thread Michael Roth
This exercises schema-generated visitors for native list types and does some sanity checking on validity of serialized data. Signed-off-by: Michael Roth --- qapi-schema-test.json |8 ++ tests/test-qmp-output-visitor.c | 172 +++ 2 files changed,

[Qemu-devel] [PATCH 3/8] qapi: qapi-visit.py, native list support

2013-05-08 Thread Michael Roth
Teach visitor generators about native types so they can generate the appropriate visitor routines. Signed-off-by: Michael Roth --- scripts/qapi-visit.py | 34 +- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/scripts/qapi-visit.py b/scripts/qapi-

[Qemu-devel] [PATCH 5/8] qapi: fix leak in unit tests

2013-05-08 Thread Michael Roth
qmp_output_get_qobject() increments the qobject's reference count. Since we currently pass this straight into qobject_to_json() so we can feed the data into a QMP input visitor, we never actually free the underlying qobject when qmp_output_visitor_cleanup() is called. This causes leaks on all of th

[Qemu-devel] [PATCH 4/8] qapi: enable generation of native list code

2013-05-08 Thread Michael Roth
Also, fix a dependency issue with libqemuutil: qemu-sockets.c needs qapi-types.c/qapi-visit.c Signed-off-by: Michael Roth --- Makefile |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 7dc0204..9695c9d 100644 --- a/Makefile +++ b/Makefile @@ -

[Qemu-devel] [PATCH 2/8] qapi: qapi-visit.py, fix list handling for union types

2013-05-08 Thread Michael Roth
Currently we assume non-list types when generating visitor routines for union types. This is broken, since values like ['Type'] need to mapped to 'TypeList'. We already have a type_name() function to handle this that we use for generating struct visitors, so use that here as well. Signed-off-by:

[Qemu-devel] [PATCH 1/8] qapi: qapi-types.py, native list support

2013-05-08 Thread Michael Roth
Teach type generators about native types so they can generate the appropriate linked list types. Signed-off-by: Michael Roth --- scripts/qapi-types.py | 44 +--- scripts/qapi.py | 21 + 2 files changed, 62 insertions(+), 3 del

[Qemu-devel] [PATCH 0/8] qapi: add support for lists of native types

2013-05-08 Thread Michael Roth
These patches apply on top of qemu.git master, and can also be obtained from: git://github.com/mdroth/qemu.git qapi-native-lists Sending this now since a number of series have popped up in the past that wanted this, and Amos has some pending patches (query-mac-tables) that rely on this as well. T

Re: [Qemu-devel] [PATCH RFC 0/3] seabios: move acpi table formatting out of bios

2013-05-08 Thread Kevin O'Connor
On Wed, May 08, 2013 at 03:35:46PM +0300, Michael S. Tsirkin wrote: > On Wed, May 08, 2013 at 02:35:44PM +0300, Gleb Natapov wrote: > > On Wed, May 08, 2013 at 02:07:24PM +0300, Michael S. Tsirkin wrote: > > > On Wed, May 08, 2013 at 01:59:12PM +0300, Gleb Natapov wrote: > > > > Where this notion t

[Qemu-devel] [PATCH v5 3/5] kvm: support using KVM_MEM_READONLY flag for regions

2013-05-08 Thread Jordan Justen
For readonly memory regions and rom devices that are readable, we make use of the KVM_MEM_READONLY. A slot that uses KVM_MEM_READONLY can be read from and code can execute from the region, but writes will exit to qemu. For rom devices that are not readable, we force the slot to be removed so reads

[Qemu-devel] [PATCH v5 1/5] isapc: Fix non-KVM qemu boot (read/write memory for isapc BIOS)

2013-05-08 Thread Jordan Justen
The isapc machine with seabios currently requires the BIOS region to be read/write memory rather than read-only memory. KVM currently cannot support the BIOS as a ROM region, but qemu in non-KVM mode can. Based on this, isapc machine currently only works with KVM. To work-around this isapc issue,

[Qemu-devel] [PATCH v5 2/5] kvm: add kvm_readonly_mem_enabled

2013-05-08 Thread Jordan Justen
Signed-off-by: Jordan Justen --- include/sysemu/kvm.h | 10 ++ kvm-all.c|6 ++ kvm-stub.c |1 + 3 files changed, 17 insertions(+) diff --git a/include/sysemu/kvm.h b/include/sysemu/kvm.h index 9735c1d..13c4b2e 100644 --- a/include/sysemu/kvm.h +++ b/in

[Qemu-devel] [PATCH v5 5/5] pc_sysfw: change rom_only default to 0

2013-05-08 Thread Jordan Justen
Now KVM can support a flash memory. This feature depends on KVM_CAP_READONLY_MEM, which was introduced in Linux 3.7. Flash memory will only be enabled if a pflash device is created. (For example, by using the -pflash command line parameter.) Signed-off-by: Jordan Justen --- hw/block/pc_sysfw.c

[Qemu-devel] [PATCH v5 4/5] pc_sysfw: allow flash (-pflash) memory to be used with KVM

2013-05-08 Thread Jordan Justen
When pc-sysfw.rom_only == 0, flash memory will be usable with kvm. In order to enable flash memory mode, a pflash device must be created. (For example, by using the -pflash command line parameter.) Usage of a flash memory device with kvm requires KVM_CAP_READONLY_MEM, and kvm will abort if a flash

[Qemu-devel] [PATCH v5 0/5] KVM flash memory support

2013-05-08 Thread Jordan Justen
git://github.com/jljusten/qemu.git kvm-flash-v5 Utilize KVM_CAP_READONLY_MEM to support PC system flash emulation with KVM. v5: * Remove patch to pflash_cfi01 which enabled readonly mode * Adjust kvm code to use KVM READONLY support for ranges that either have the readonly flag set, or for d

[Qemu-devel] [ANNOUNCE] QEMU 1.5.0-rc1 is now available

2013-05-08 Thread Anthony Liguori
Hi, On behalf of the QEMU Team, I'd like to announce the availability of the second release candidate for the QEMU 1.5 release. This release is meant for testing purposes and should not be used in a production environment. http://wiki.qemu.org/download/qemu-1.5.0-rc1.tar.bz2 You can help improv

[Qemu-devel] Profiling sparc64 emulation

2013-05-08 Thread Artyom Tarasenko
On Wed, May 8, 2013 at 12:57 AM, Aurelien Jarno wrote: > On Tue, May 07, 2013 at 11:29:20PM +0200, Artyom Tarasenko wrote: >> On Tue, May 7, 2013 at 1:38 PM, Torbjorn Granlund wrote: >> > The 2nd table of http://gmplib.org/devel/testsystems.html shows all >> > emulated systems I am using, most of

Re: [Qemu-devel] [PATCH for 1.5] tcg/optimize: fix setcond2 optimization

2013-05-08 Thread Aurelien Jarno
On Wed, May 08, 2013 at 10:42:42PM +0200, Aurelien Jarno wrote: > When setcond2 is rewritten into setcond, the state of the destination > temp should be reset, so that a copy of the previous value is not > used instead of the result. > > Reported-by: Michael Tokarev > Cc: Richard Henderson > Sig

[Qemu-devel] [PATCH for 1.5] tcg/optimize: fix setcond2 optimization

2013-05-08 Thread Aurelien Jarno
When setcond2 is rewritten into setcond, the state of the destination temp should be reset, so that a copy of the previous value is not used instead of the result. Reported-by: Michael Tokarev Cc: Richard Henderson Signed-off-by: Aurelien Jarno --- tcg/optimize.c |1 + 1 file changed, 1 in

Re: [Qemu-devel] [PULL 1.5 0/2] ppc patch queue 2013-05-08

2013-05-08 Thread Aurelien Jarno
On Wed, May 08, 2013 at 08:24:46PM +0200, Alexander Graf wrote: > Hi Blue / Aurelien, > > This is my current patch queue for ppc with fixes that need to go into 1.5. > > Please pull. > > Alex > > > The following changes since commit c0f5f9ce86ddca0a7d7ca60012059a5a18aa9c07: > Petar Jovanovic

Re: [Qemu-devel] [PATCH v2] po/hu.po: Hungarian translation for the GTK+ interface

2013-05-08 Thread Anthony Liguori
Paolo Bonzini writes: > Il 07/05/2013 10:26, Laszlo Ersek ha scritto: >> I suspected that something like this was in the background, but what I >> didn't understand was: why single out the public domain, as the GPL >> itself is in the exact same bucket, generally speaking. > > I think because pub

[Qemu-devel] [Bug 1174654] Re: qemu-system-x86_64 takes 100% CPU after host machine resumed from suspend to ram

2013-05-08 Thread John Basila
I don't know if this will help, but I had a similar problem. When creating a snapshot image of an XP machine, all works just fine when loading it. As time passes on the host the loadvm start to become very slow. To reproduce: 1. Create a snapshot image (savevm) 2. leave QEMU 3. move the *HOST* cl

[Qemu-devel] [Bug 1100843] Missing required logs.

2013-05-08 Thread Brad Figg
This bug is missing log files that will aid in diagnosing the problem. >From a terminal window please run: apport-collect 1100843 and then change the status of the bug to 'Confirmed'. If, due to the nature of the issue you have encountered, you are unable to run this command, please add a commen

Re: [Qemu-devel] [PATCH v2] PPC: Depend behavior of cmp instructions only on instruction encoding

2013-05-08 Thread Aurelien Jarno
On Wed, May 08, 2013 at 08:21:56PM +0200, Alexander Graf wrote: > When running an L=1 cmp instruction on a 64bit PPC CPU with SF off, it > still behaves identical to what it does when SF is on. Remove the implicit > difference in the code. > > Also, on most 32bit CPUs we should always treat the co

[Qemu-devel] [Bug 1100843] Re: Live Migration Causes Performance Issues

2013-05-08 Thread Serge Hallyn
** Also affects: linux (Ubuntu) Importance: Undecided Status: 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/1100843 Title: Live Migration Causes Performance Issues Status in QEMU:

Re: [Qemu-devel] [PATCHv3 for-1.5] virtio-pci: fix level interrupts

2013-05-08 Thread Michael S. Tsirkin
On Tue, May 07, 2013 at 03:49:58PM +0300, Michael S. Tsirkin wrote: > mask notifiers are never called without msix, > so devices with backend masking like vhost don't work. > Call mask notifiers explicitly at > startup/cleanup to make it work. > > Signed-off-by: Michael S. Tsirkin > Tested-by: Al

[Qemu-devel] [PATCH 2/2] PPC: Depend behavior of cmp instructions only on instruction encoding

2013-05-08 Thread Alexander Graf
When running an L=1 cmp instruction on a 64bit PPC CPU with SF off, it still behaves identical to what it does when SF is on. Remove the implicit difference in the code. Also, on most 32bit CPUs we should always treat the compare as 32bit compare, as the CPU will ignore the L bit. This is not true

[Qemu-devel] [PATCH 1/2] PPC: Fix rldcl

2013-05-08 Thread Alexander Graf
The implementation for rldcl tried to always fetch its parameters from the opcode, even though the opcode was already passed in in decoded and different forms. Use the parameters instead, fixing rldcl. Reported-by: Torbjorn Granlund Reviewed-by: Aurelien Jarno Signed-off-by: Alexander Graf ---

[Qemu-devel] [PULL 1.5 0/2] ppc patch queue 2013-05-08

2013-05-08 Thread Alexander Graf
Hi Blue / Aurelien, This is my current patch queue for ppc with fixes that need to go into 1.5. Please pull. Alex The following changes since commit c0f5f9ce86ddca0a7d7ca60012059a5a18aa9c07: Petar Jovanovic (1): target-mips: fix incorrect behaviour for INSV are available in the git

[Qemu-devel] [PATCH v2] PPC: Depend behavior of cmp instructions only on instruction encoding

2013-05-08 Thread Alexander Graf
When running an L=1 cmp instruction on a 64bit PPC CPU with SF off, it still behaves identical to what it does when SF is on. Remove the implicit difference in the code. Also, on most 32bit CPUs we should always treat the compare as 32bit compare, as the CPU will ignore the L bit. This is not true

[Qemu-devel] [Bug 1100843] Re: Live Migration Causes Performance Issues

2013-05-08 Thread C Cormier
Update: >From our testing this bug affects KVM Hypervisors on Intel processors that have the EPT feature enabled with Kernels 3.0 and greater. A list of Intel EPT supported CPUs here (http://ark.intel.com/Products/VirtualizationTechnology). When using a KVM Hypervisor Host with Linux kernel 3.0 o

Re: [Qemu-devel] [PATCH RFC 0/3] seabios: move acpi table formatting out of bios

2013-05-08 Thread Michael S. Tsirkin
On Tue, May 07, 2013 at 07:01:13PM -0400, Kevin O'Connor wrote: > On Tue, May 07, 2013 at 09:00:48PM +0300, Michael S. Tsirkin wrote: > > On Thu, Apr 25, 2013 at 12:02:20PM +0300, Michael S. Tsirkin wrote: > > > Untested yet, but I thought I'd share the > > > BIOS bits so we can agree on direction.

Re: [Qemu-devel] [PATCH V14 6/6] remove QEMUOptionParameter related functions and struct

2013-05-08 Thread Eric Blake
[assuming you mis-typed your cc:, and that you meant kwolf instead of kwol at redhat] On 05/08/2013 02:45 AM, Dong Xu Wang wrote: > Signed-off-by: Dong Xu Wang > --- > include/qemu/option.h | 32 -- > util/qemu-option.c| 285 - > - > 2

Re: [Qemu-devel] [PATCH 9/9] Make monitor command 'dump-guest-memory' dump in kdump-compressed format

2013-05-08 Thread Eric Blake
On 05/08/2013 02:50 AM, qiaonuohan wrote: > > Thanks for your suggestion. I will fix it like: > > { 'enum': 'DumpCompressionFormat', > 'data': [ 'zlib', 'lzo', 'snappy' ] } > > For zlib is treated as the default compression format, and > 'uncompressed' won't be an option. No, I was serious th

Re: [Qemu-devel] [PATCH v2 2/2] qga: unlink just created guest-file if fchmod() or fdopen() fails on it

2013-05-08 Thread Eric Blake
On 05/08/2013 09:31 AM, Laszlo Ersek wrote: > We shouldn't allow guest filesystem pollution on error paths. > > Suggested-by: Eric Blake > Signed-off-by: Laszlo Ersek > --- > qga/commands-posix.c |3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) Reviewed-by: Eric Blake > > diff

Re: [Qemu-devel] [PATCH] PPC: Depend behavior of cmp instructions only on instruction encoding

2013-05-08 Thread Torbjorn Granlund
Aurelien Jarno writes: Don't people read what I write? From one of my previous email: I do...and even scrutinise it for grammar errors. ;-) Quoting the "IBM PowerPC Microprocessor Family: The Programming

Re: [Qemu-devel] [libvirt]virtio serial device problem

2013-05-08 Thread fred . konrad
> On 05/07/2013 07:50 PM, Paolo Bonzini wrote: >> Il 07/05/2013 09:20, Li Zhang ha scritto: >>> Hi all, Hi, >>> >>> When we use the latest version of QEMU to build ovirt, >>> we get this error reported from libvirt. >> >> What QEMU commit is this? > > > b3e6d591b05538056d665572f3e3bbfb3cbb70e7 Th

Re: [Qemu-devel] [PATCH 4/5] qtest/ide-test: Add simple DMA read/write test case

2013-05-08 Thread Paolo Bonzini
Il 08/05/2013 11:43, Kevin Wolf ha scritto: > This tests that single sectors can be successfully written and correctly > read back. > > Signed-off-by: Kevin Wolf > --- > tests/ide-test.c | 221 > +++ > 1 file changed, 221 insertions(+) > > di

Re: [Qemu-devel] [PATCH] target-mips: add missing check_dspr2 for multiply instructions

2013-05-08 Thread Aurelien Jarno
On Wed, May 08, 2013 at 04:09:04PM +0200, Petar Jovanovic wrote: > From: Petar Jovanovic > > The emulator needs to check in hflags if DSP unit has been turned off before > it generates code for MUL_PH, MUL_S_PH, MULQ_S_W, and MULQ_RS_W. > > Signed-off-by: Petar Jovanovic > --- > target-mips/tr

Re: [Qemu-devel] [PATCH] PPC: Depend behavior of cmp instructions only on instruction encoding

2013-05-08 Thread Aurelien Jarno
On Wed, May 08, 2013 at 05:54:27PM +0200, Torbjorn Granlund wrote: > Aurelien Jarno writes: > > As it seems you have good contact with IBM, could you please ask them > to fix their manuals? > > What flaw have your found? Don't people read what I write? From one of my previous email: Quot

Re: [Qemu-devel] Possible ppc comparision optimisation

2013-05-08 Thread Paolo Bonzini
Il 08/05/2013 17:44, Torbjorn Granlund ha scritto: > Paolo Bonzini writes: > > I think that would be faster on 32-bit hosts, truncs are cheap. > > And slower perhaps on 64-bit hosts, at least for operations where > additional explicit trunctation will be needed (such as before > comparisions

Re: [Qemu-devel] VFIO VGA test branches

2013-05-08 Thread Alex Williamson
A few notes for anyone trying this... * I recommend the q35 machine type and using the default config file found in the docs directory. This means your command line should include: -M q35 -nodefconfig -readconfig /path/to/qemu.git/docs/q35-chipset.cfg * You'

Re: [Qemu-devel] [RFC PATCH 0/8] MemoryRegion and FlatView refcounting, replace hostmem with memory_region_find

2013-05-08 Thread Paolo Bonzini
Il 08/05/2013 08:20, liu ping fan ha scritto: > On Mon, May 6, 2013 at 10:25 PM, Paolo Bonzini wrote: >> Hi, >> >> this is an alternative approach to refactoring of dataplane's HostMem >> code. Here, I take Ping Fan's idea of RCU-style updating of the >> region list and apply it to the AddressSpa

Re: [Qemu-devel] [PATCH v2 1/3] block: add basic backup support to block driver

2013-05-08 Thread Paolo Bonzini
Il 08/05/2013 14:39, Kevin Wolf ha scritto: > Am 29.04.2013 um 09:42 hat Stefan Hajnoczi geschrieben: >> From: Dietmar Maurer >> >> backup_start() creates a block job that copies a point-in-time snapshot >> of a block device to a target block device. >> >> We call backup_do_cow() for each write du

Re: [Qemu-devel] [PATCH] PPC: Depend behavior of cmp instructions only on instruction encoding

2013-05-08 Thread Torbjorn Granlund
Aurelien Jarno writes: As it seems you have good contact with IBM, could you please ask them to fix their manuals? What flaw have your found? At least Freescale CPUs match what IBM documentation says. Which ones? Freescale 7447 and Freescale e500 disagree. (Or at least some versions

Re: [Qemu-devel] Possible ppc comparision optimisation

2013-05-08 Thread Torbjorn Granlund
Paolo Bonzini writes: I think that would be faster on 32-bit hosts, truncs are cheap. And slower perhaps on 64-bit hosts, at least for operations where additional explicit trunctation will be needed (such as before comparisions and after right shifts). > There could be a disadvantage of t

Re: [Qemu-devel] [Bug 1174654] Re: qemu-system-x86_64 takes 100% CPU after host machine resumed from suspend to ram

2013-05-08 Thread Serge Hallyn
Quoting Maxim Loparev (laplander...@gmail.com): > The issue mostly gone after cold reboot via suspend to disk. I managed to > reproduce it only once after reboot and it grubs CPU for only minute or two > while i checking it and than returned to normal CPU usage. I've checked both > distribution

[Qemu-devel] [PATCH v2 0/2] qga umask fix addenda

2013-05-08 Thread Laszlo Ersek
I should have paid more attention to portability and error path cleanup in the CVE-2013-2007 fix. (We continue to assume, like the rest of qemu code, that qemu_set_cloexec() never fails internally. This should be a reasonable assumption when the input fd is valid.) Laszlo Ersek (2): qga: distin

[Qemu-devel] [PATCH v2 2/2] qga: unlink just created guest-file if fchmod() or fdopen() fails on it

2013-05-08 Thread Laszlo Ersek
We shouldn't allow guest filesystem pollution on error paths. Suggested-by: Eric Blake Signed-off-by: Laszlo Ersek --- qga/commands-posix.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/qga/commands-posix.c b/qga/commands-posix.c index 2eec712..e199738 100644 --- a/

[Qemu-devel] [PATCH v2 1/2] qga: distinguish binary modes in "guest_file_open_modes" map

2013-05-08 Thread Laszlo Ersek
In Windows guests this may make a difference. Since the original patch (commit c689b4f1) sought to be pedantic and to consider theoretical corner cases of portability, we should fix it up where it failed to come through in that pursuit. Suggested-by: Eric Blake Reviewed-by: Eric Blake Signed-of

Re: [Qemu-devel] [PATCH] PPC: Depend behavior of cmp instructions only on instruction encoding

2013-05-08 Thread Aurelien Jarno
On Wed, May 08, 2013 at 04:48:22PM +0200, Torbjorn Granlund wrote: > Aurelien Jarno writes: > > That said this does implement neither the specification nor the silicon > behaviour. This is fine for 1.5 as we are in freeze period, but this > should be fixed for the 1.6 release. > > I talke

[Qemu-devel] [PATCH 02/10] de_DE.po: Add missing leading spaces

2013-05-08 Thread Kevin Wolf
Signed-off-by: Kevin Wolf --- po/de_DE.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/po/de_DE.po b/po/de_DE.po index 92c5df5..e35aaf4 100644 --- a/po/de_DE.po +++ b/po/de_DE.po @@ -18,11 +18,11 @@ msgstr "" #: ../ui/gtk.c:213 msgid " - Press Ctrl+Alt+G to release

[Qemu-devel] [PATCH 04/10] libqos/pci: Enable bus mastering

2013-05-08 Thread Kevin Wolf
Signed-off-by: Kevin Wolf --- tests/libqos/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/libqos/pci.c b/tests/libqos/pci.c index 95e287b..7e0907b 100644 --- a/tests/libqos/pci.c +++ b/tests/libqos/pci.c @@ -71,7 +71,7 @@ void qpci_device_enable(QPCIDevice *dev)

Re: [Qemu-devel] [PATCH] PPC: Depend behavior of cmp instructions only on instruction encoding

2013-05-08 Thread Torbjorn Granlund
Aurelien Jarno writes: That said this does implement neither the specification nor the silicon behaviour. This is fine for 1.5 as we are in freeze period, but this should be fixed for the 1.6 release. I talked to IBM now. Reserved fields should be ignored by hardware. The architecture o

[Qemu-devel] [PATCH 01/10] ahci: Don't allow creating slave drives

2013-05-08 Thread Kevin Wolf
An IDE bus provided by AHCI can only take a single IDE drive. If you add a drive as slave, qemu used to accept the command line but the device wouldn't be actually usable. Catch the situation instead and error out. Signed-off-by: Kevin Wolf --- hw/ide/ahci.c | 2 +- hw/ide/cmd646.c | 2 +

[Qemu-devel] [PATCH 06/10] qtest/ide-test: Add simple DMA read/write test case

2013-05-08 Thread Kevin Wolf
This tests that single sectors can be successfully written and correctly read back. Signed-off-by: Kevin Wolf --- tests/ide-test.c | 221 +++ 1 file changed, 221 insertions(+) diff --git a/tests/ide-test.c b/tests/ide-test.c index 45036e3..5fc

Re: [Qemu-devel] [PATCH] ahci: Don't allow creating slave drives

2013-05-08 Thread Stefan Hajnoczi
On Mon, May 06, 2013 at 04:02:58PM +0200, Kevin Wolf wrote: > An IDE bus provided by AHCI can only take a single IDE drive. If you add > a drive as slave, qemu used to accept the command line but the device > wouldn't be actually usable. Catch the situation instead and error out. > > Signed-off-by

[Qemu-devel] [PATCH 03/10] ide: Reset BMIDEA bit when the bus master is stopped

2013-05-08 Thread Kevin Wolf
The device is supposed to reset the Bus Master IDE Active bit in the status register when 0 is written to the Start/Stop Bus Master bit in the command register. In the common cases this happens automatically because bdrv_drain_all() flushes the requests, but with a large PRDT it could remain set.

[Qemu-devel] [PATCH 10/10] qemu-iotests: fix 017 018 for vmdk

2013-05-08 Thread Kevin Wolf
From: Fam Zheng 017 and 018 use /bin/mv to move base img from t.IMGFMG to t.IMGFMT.base after filling data, this is not enough for vmdk, when t.IMGFMT is only a description text file who points to t-{flat,s001,f001,...}.IMGFMT as data extent, so testing such subformats alway fails on them. This

[Qemu-devel] [PATCH 05/10] qtest: Add IDE test case

2013-05-08 Thread Kevin Wolf
This adds a simple IDE test case and starts by verifying that IDENTIFY can be successfully used and return the correct serial number, version and the WCE flag is set for cache=writeback. Signed-off-by: Kevin Wolf --- tests/Makefile | 2 + tests/ide-test.c | 165 ++

  1   2   3   >