Re: [Qemu-devel] DOS VM problem with QEMU-KVM and newer kernels

2012-04-16 Thread Gleb Natapov
On Tue, Apr 17, 2012 at 08:04:16AM +0200, Gerhard Wiesinger wrote: > On 15.04.2012 11:44, Avi Kivity wrote: > >On 04/12/2012 09:32 PM, Gerhard Wiesinger wrote: > >>Hello, > >> > >>I'm having problems with recents kernels and qemu-kvm with a DOS VM: > >>TD286 > >>System: Bad selector: 0007 > >>Syste

Re: [Qemu-devel] [PATCH 7/8] block: add witness argument to drive-reopen

2012-04-16 Thread Paolo Bonzini
Il 16/04/2012 23:55, Eric Blake ha scritto: > > Do transient guests have persistent storage for them in /var while they > > are running? > > Yes - that's how libvirt tracks the pid of the qemu process that it > should be re-attaching to on a libvirtd restart, as well as several > other aspects (fo

Re: [Qemu-devel] DOS VM problem with QEMU-KVM and newer kernels

2012-04-16 Thread Gerhard Wiesinger
On 15.04.2012 11:44, Avi Kivity wrote: On 04/12/2012 09:32 PM, Gerhard Wiesinger wrote: Hello, I'm having problems with recents kernels and qemu-kvm with a DOS VM: TD286 System: Bad selector: 0007 System: Bad selector: 0D87 System: Bad selector: 001F System: Bad selector: 0007 GP at 0020 21D4 E

[Qemu-devel] [PATCH] iotests: fix error in 005

2012-04-16 Thread Dong Xu Wang
From: Dong Xu Wang According comment, we should not read again, we will write. Signed-off-by: Dong Xu Wang --- tests/qemu-iotests/005 |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tests/qemu-iotests/005 b/tests/qemu-iotests/005 index 74537db..b7970e3 100755 --- a/te

[Qemu-devel] [PATCH v3] ARM: Exynos4210 IRQ: Introduce new IRQ gate functionality.

2012-04-16 Thread Evgeny Voevodin
New IRQ gate consists of n_in input qdev gpio lines and one output sysbus IRQ line. The output IRQ level is formed as OR between all gpio inputs. Signed-off-by: Evgeny Voevodin --- hw/exynos4210.c | 32 +++- hw/exynos4210.h |2 +- hw/exynos4210_gic.c | 79

[Qemu-devel] [PATCH v3] Exynos4210 IRQ Gate improvement

2012-04-16 Thread Evgeny Voevodin
This patch introdices new functionality of exynos4210 IRQ gate. Now it has n_in inputs and one output. Exynos SOC creates NCPU instances of IRQ gate with 2 inputs each instead of creating one gate with 4 inputs and 2 outputs. This device could be used as stand-alone, so, if somebody else needs th

Re: [Qemu-devel] qemu softmmu inlined lookup sequence

2012-04-16 Thread Xin Tong
that is possible. but if that is the case, why not split the tlb walking and the tlb fill ? can anyone please confirm ? Xin 2012/4/16 陳韋任 : >> > If TLB miss, it will call something like __ldb_mmu (b). __ldb_mmu will try >> > to >> > walk guest page table, then fill TLB entry if page table hit,

Re: [Qemu-devel] A error when gdb the newest branch, can you help me? Thank you very much!

2012-04-16 Thread Zhi Hui Li
On 2012年04月16日 17:50, Stefan Hajnoczi wrote: On Mon, Apr 16, 2012 at 3:58 AM, Zhi Hui Li wrote: when I git pull to the newest branch, then gdb ./x86_64-softmmu/qemu-system-x86_64 set args, then run the gdb, but have the error: Warning: Cannot insert breakpoint -1. Error accessing memory addr

Re: [Qemu-devel] qemu softmmu inlined lookup sequence

2012-04-16 Thread Xin Tong
On Mon, Apr 16, 2012 at 10:51 PM, 陳韋任 wrote: >> what does the inline sequence look like ? what kind of things (other >> than refill tlb) performed in callout but not the inlined sequence ? > >  What do you mean by the inline sequence, the host binary? If so, > > --- >   0xe86c8 >  mov_i32 tmp2

Re: [Qemu-devel] [PATCH 0/2 v3] kvm: notify host when guest panicked

2012-04-16 Thread Wen Congyang
At 03/20/2012 11:45 PM, Gleb Natapov Wrote: > On Tue, Mar 20, 2012 at 05:59:16PM +0800, Wen Congyang wrote: >> At 03/19/2012 03:33 PM, Wen Congyang Wrote: >>> At 03/08/2012 03:57 PM, Wen Congyang Wrote: We can know the guest is paniced when the guest runs on xen. But we do not have such f

[Qemu-devel] block-stream/drive-mirror and default bandwidth

2012-04-16 Thread Eric Blake
Libvirt found out that we have a pretty nasty data race between block-stream and block-job-set-speed. If a user wants to throttle a job, they cannot request the throttling until after the job has been started (thanks to the DeviceNotActive error of block-job-set-speed), but by the time you actuall

Re: [Qemu-devel] [PATCH 2/3] qtest: enable qtest for most targets

2012-04-16 Thread Anthony Liguori
On 04/16/2012 05:54 PM, Peter Maydell wrote: On 15 April 2012 17:32, Blue Swirl wrote: Skip ROM or kernel loading and TCG init for qtest. For Xtensa there is no default board and the default board (g3beige) for PPCEMB seems to be wrong. Signed-off-by: Blue Swirl --- hw/an5206.c

Re: [Qemu-devel] [ANNOUNCE] SeaBIOS 1.7.0

2012-04-16 Thread Kevin O'Connor
On Mon, Apr 16, 2012 at 02:28:20PM -0600, Eric Blake wrote: > On 04/15/2012 01:59 PM, Michael Tokarev wrote: > > On 15.04.2012 06:48, Kevin O'Connor wrote: > >> The 1.7.0 version of SeaBIOS has now been released. For more > >> information on the release, please see: > >> > >> http://seabios.org/Re

[Qemu-devel] [PATCH RFC 6/6] target-i386: make cpus childs of /machine

2012-04-16 Thread Igor Mammedov
From: Igor Mammedov Signed-off-by: Igor Mammedov --- target-i386/helper.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/target-i386/helper.c b/target-i386/helper.c index de7637c..1996b97 100644 --- a/target-i386/helper.c +++ b/target-i386/helper.c @@ -1134,6 +1134,

[Qemu-devel] [PATCH RFC 4/6] target-i386: convert cpu to 2-stage initialization

2012-04-16 Thread Igor Mammedov
From: Igor Mammedov Use realize to start a cpu prepared by x86_cpu_initfn. v2: Create apic for cpu only once. Signed-off-by: Igor Mammedov --- hw/pc.c | 35 - target-i386/cpu.c| 69 +- target-i386/hel

[Qemu-devel] [PATCH RFC 3/6] pc: move apic_mapped intialization into common apic init code

2012-04-16 Thread Igor Mammedov
From: Igor Mammedov and get rid of apic_init in pc.c Signed-off-by: Igor Mammedov --- hw/apic_common.c | 16 hw/msi.h |2 ++ hw/pc.c | 41 + 3 files changed, 27 insertions(+), 32 deletions(-) diff --git a/hw/api

[Qemu-devel] [PATCH RFC 1/6] target-i386: move cpu halted decision into x86_cpu_reset

2012-04-16 Thread Igor Mammedov
From: Igor Mammedov cpu should know if it should be halted after reset. so move this decision form pc.c into cpu.c. patch is based on Jan Kiszka's proposal: http://thread.gmane.org/gmane.comp.emulators.qemu/100806 Signed-off-by: Igor Mammedov --- hw/apic.h|2 +- hw/apic_co

[Qemu-devel] [PATCH RFC 5/6] target-i386: move reset callback to cpu.c

2012-04-16 Thread Igor Mammedov
From: Igor Mammedov Signed-off-by: Igor Mammedov --- hw/pc.c |8 target-i386/cpu.c |8 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index db381ab..157327a 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -887,13 +887,6 @@ void pc_acpi

[Qemu-devel] [PATCH RFC 2/6] target-i386: add cpu-model property to x86_cpu

2012-04-16 Thread Igor Mammedov
From: Igor Mammedov Signed-off-by: Igor Mammedov --- cpu-defs.h |2 +- hw/pc.c | 10 -- target-i386/cpu.c| 33 + target-i386/helper.c | 12 4 files changed, 42 insertions(+), 15 deletions(-) diff --git a/

[Qemu-devel] [PATCH RFC 0/6] target-i386: use realize for cpu initialization

2012-04-16 Thread Igor Mammedov
Attempt to use realize for x86 cpu initialization. based on Paolo's "[PATCH v2] qom: Introduce object_realize_nofail()" working tree at: https://github.com/imammedo/qemu/tree/x86-cpu-realize

Re: [Qemu-devel] [PATCH 2/3] qtest: enable qtest for most targets

2012-04-16 Thread Peter Maydell
On 15 April 2012 17:32, Blue Swirl wrote: > Skip ROM or kernel loading and TCG init for qtest. > > For Xtensa there is no default board and the > default board (g3beige) for PPCEMB seems to be wrong. > > Signed-off-by: Blue Swirl > --- >  hw/an5206.c                   |    4 +- >  hw/axis_dev88.c

Re: [Qemu-devel] [PATCH 2/3] qtest: enable qtest for most targets

2012-04-16 Thread Max Filippov
> Skip ROM or kernel loading and TCG init for qtest. > > For Xtensa there is no default board and the What is the use case of the default board? Are there any specific requirements for it? -- Thanks. -- Max

Re: [Qemu-devel] [PATCH 7/8] block: add witness argument to drive-reopen

2012-04-16 Thread Eric Blake
On 04/16/2012 03:03 AM, Paolo Bonzini wrote: > Il 14/04/2012 00:32, Eric Blake ha scritto: >> But if the world conspires against me, such as libvirt going down, then >> qemu completing the reopen, then the guest VM halting itself so that the >> qemu process goes away, all before libvirt restarts, t

Re: [Qemu-devel] Just what *is* qemu's raw disk image file format?

2012-04-16 Thread Eric Blake
On 04/16/2012 11:22 AM, Hendrik Boom wrote: > Just what *is* qemu's raw disk image file format? > > Is it just a byte-by-byte, block-by-block copy of the hard drive, such as > can be produced by executing > > cp /dev/hda imagefile Yep. Doesn't get any more raw than that :) > > ? Or does it

Re: [Qemu-devel] [RFC 00/14] MAINTAINERS cleanups - please read

2012-04-16 Thread Anthony Liguori
On 04/16/2012 04:24 PM, Peter Maydell wrote: On 16 April 2012 18:42, Anthony Liguori wrote: On 04/16/2012 12:17 PM, Peter Maydell wrote: Here's my stab at it: Maintained: Someone actually looks after it. The maintainer will have a git subtree for this area

Re: [Qemu-devel] [PATCH 7/7 v5] VMXNET3 paravirtualized device implementation Interface type "vmxnet3" added.

2012-04-16 Thread Anthony Liguori
On 04/16/2012 03:34 PM, Anthony Liguori wrote: On 04/16/2012 03:14 PM, Paolo Bonzini wrote: The bits I'm more interested about is edge case testing (things that could pose a security concern). Since WHQL interfaces at the expected paths for the driver, it's unlikely that it can test any of this.

[Qemu-devel] qemu softmmu inlined lookup sequence

2012-04-16 Thread Xin Tong
it seems qemu has an inlined sequence to walk the tlb. if that fails, it does a call out. tcg_out_tlb_load(s, addrlo_idx, mem_index, s_bits, args, label_ptr, offsetof(CPUTLBEntry, addr_write)); /* TLB Hit. */ tcg_out_qemu_st_direct(s, data_reg, data_reg2,

Re: [Qemu-devel] [RFC 00/14] MAINTAINERS cleanups - please read

2012-04-16 Thread Peter Maydell
On 16 April 2012 18:42, Anthony Liguori wrote: > On 04/16/2012 12:17 PM, Peter Maydell wrote: >> Here's my stab at it: >>            Maintained:  Someone actually looks after it. The maintainer >>                         will have a git subtree for this area and patches >>                        

Re: [Qemu-devel] [PATCH 2/3] qtest: enable qtest for most targets

2012-04-16 Thread Blue Swirl
On Mon, Apr 16, 2012 at 20:47, Anthony Liguori wrote: > On 04/15/2012 11:32 AM, Blue Swirl wrote: >> >> Skip ROM or kernel loading and TCG init for qtest. >> >> For Xtensa there is no default board and the >> default board (g3beige) for PPCEMB seems to be wrong. >> >> Signed-off-by: Blue Swirl > >

Re: [Qemu-devel] [PATCH 19/20] w64: Fix time conversion for some versions of MinGW-w64

2012-04-16 Thread Eric Blake
On 04/15/2012 08:13 AM, Stefan Weil wrote: > tb.time is a time value, but not necessarily of the same size as time_t: > while time_t is 64 bit for w64, tb.time still is 32 bit only. That's a POSIX compliance bug, but one that mingw64 inherited from Microsoft :( https://lists.gnu.org/archive/html/

Re: [Qemu-devel] [PATCH 2/3] qtest: enable qtest for most targets

2012-04-16 Thread Anthony Liguori
On 04/15/2012 11:32 AM, Blue Swirl wrote: Skip ROM or kernel loading and TCG init for qtest. For Xtensa there is no default board and the default board (g3beige) for PPCEMB seems to be wrong. Signed-off-by: Blue Swirl Why tcg_enabled() vs. !qtest_enabled()? Regards, Anthony Liguori ---

[Qemu-devel] [PATCH] xen: Support guest reboots

2012-04-16 Thread John V. Baboval
Call xc_domain_shutdown with the reboot flag when the guest requests a reboot. Signed-off-by: John V. Baboval Signed-off-by: Tom Goetz Signed-off-by: Anthony PERARD --- hw/xen_common.h |2 +- xen-all.c | 18 +++--- 2 files changed, 12 insertions(+), 8 deletions(-) dif

Re: [Qemu-devel] [PULL][PATCH 1/5] signrom: Rewrite as python script

2012-04-16 Thread Stefan Weil
Am 16.04.2012 17:36, schrieb Jan Kiszka: Now that we have a hard dependency on python anyway, we can replace the slow shell script to calculate the option ROM checksum with a fast AND portable python version. Tested both with python 2.7 and 3.1. Signed-off-by: Jan Kiszka --- pc-bios/optionrom/M

Re: [Qemu-devel] [PATCH 7/7 v5] VMXNET3 paravirtualized device implementation Interface type "vmxnet3" added.

2012-04-16 Thread Anthony Liguori
On 04/16/2012 03:14 PM, Paolo Bonzini wrote: The bits I'm more interested about is edge case testing (things that could pose a security concern). Since WHQL interfaces at the expected paths for the driver, it's unlikely that it can test any of this. It does include fuzz tests. But VMXNET3 is

Re: [Qemu-devel] [PATCH 7/7 v5] VMXNET3 paravirtualized device implementation Interface type "vmxnet3" added.

2012-04-16 Thread Anthony Liguori
On 04/16/2012 03:14 PM, Paolo Bonzini wrote: The bits I'm more interested about is edge case testing (things that could pose a security concern). Since WHQL interfaces at the expected paths for the driver, it's unlikely that it can test any of this. It does include fuzz tests. But VMXNET3 is

Re: [Qemu-devel] [ANNOUNCE] SeaBIOS 1.7.0

2012-04-16 Thread Eric Blake
On 04/15/2012 01:59 PM, Michael Tokarev wrote: > On 15.04.2012 06:48, Kevin O'Connor wrote: >> The 1.7.0 version of SeaBIOS has now been released. For more >> information on the release, please see: >> >> http://seabios.org/Releases > > Um. I can't compile it here, due to an error in ./tools/bui

Re: [Qemu-devel] [PATCH v2] tcg/i386: Use GDB JIT debugging interface only for hosts with ELF

2012-04-16 Thread Tom Tromey
> "Stefan" == Stefan Weil writes: Stefan> Fixing problems at their source - in this Stefan> case fixing gdb - is of course the best solution. Could you file a gdb bug report? Tom

[Qemu-devel] Just what *is* qemu's raw disk image file format?

2012-04-16 Thread Hendrik Boom
Just what *is* qemu's raw disk image file format? Is it just a byte-by-byte, block-by-block copy of the hard drive, such as can be produced by executing cp /dev/hda imagefile ? Or does it have more structure or headers or such? -- hendrik

Re: [Qemu-devel] DOS VM problem with QEMU-KVM and newer kernels

2012-04-16 Thread Roedel, Joerg
On Mon, Apr 16, 2012 at 12:25:37PM +0200, Jan Kiszka wrote: > On 2012-04-15 11:44, Avi Kivity wrote: > > Jan, Joerg, was an AMD erratum published for the bug? > > It wasn't an erratum but a documented feature limitation in the AMD > architecture that was simply ignored by the old code. Right. But

[Qemu-devel] qemu-kvm 1.0.1?

2012-04-16 Thread Peter Lieven
Hi, i was wondering if there will be a qemu-kvm version 1.0.1? The last tag I see here is 1.0: http://git.kernel.org/?p=virt/kvm/qemu-kvm.git;a=summary Any hints? Thanks, Peter

Re: [Qemu-devel] [PULL][PATCH 0/5] Pending assorted patches in my queue

2012-04-16 Thread Anthony Liguori
On 04/16/2012 10:36 AM, Jan Kiszka wrote: The following changes since commit e6f5d0be730a41bacb10edba19d1369ec2949486: Merge branch 'w64' of git://qemu.weilnetz.de/qemu (2012-04-15 19:56:06 +) are available in the git repository at: git://git.kiszka.org/qemu.git queues/pending All h

Re: [Qemu-devel] [PATCH v2] qemu-timer.c: Remove 250us timeouts

2012-04-16 Thread Anthony Liguori
On 04/05/2012 10:00 AM, Peter Portante wrote: Basically, the main wait loop calls qemu_run_all_timers() unconditionally. The first thing this routine used to do is to see if a timer had been serviced, and then reset the loop timeout to the next deadline. However, the new deadlines had not been c

Re: [Qemu-devel] [PATCH 7/7 v5] VMXNET3 paravirtualized device implementation Interface type "vmxnet3" added.

2012-04-16 Thread Paolo Bonzini
> The bits I'm more interested about is edge case testing (things that > could pose a security concern). Since WHQL interfaces at the expected > paths for the driver, it's unlikely that it can test any of this. It does include fuzz tests. > >> But VMXNET3 isn't really special here. From this po

Re: [Qemu-devel] [PULL] virtio, pci fixes

2012-04-16 Thread Anthony Liguori
On 04/16/2012 08:21 AM, Michael S. Tsirkin wrote: The following changes since commit 4e1957acc854b2f3f3068c75cef2a429f9b97011: Merge commit 'ff71f2e8cacefae99179993204172bc65e4303df' into staging (2012-04-10 08:21:58 -0500) are available in the git repository at: git://github.com/mstsi

Re: [Qemu-devel] [PULL] Xen MSI, mapcache, xen_disk

2012-04-16 Thread Anthony Liguori
On 04/13/2012 01:01 PM, Stefano Stabellini wrote: Hi Anthony, please pull the following branch: git://xenbits.xen.org/people/sstabellini/qemu-dm.git for_anthony Pulled. Thanks. Regards, Anthony Liguori It includes two mapcache fixes, one xen_disk fix, two patches to allow MSI injection

Re: [Qemu-devel] [ANNOUNCE] SeaBIOS 1.7.0

2012-04-16 Thread Anthony Liguori
On 04/16/2012 06:35 AM, Gerd Hoffmann wrote: Hi, WinXP guest is unable to find drivers for the video adaptor with -vga std and this vgabios.bin, not even its "standard VGA" fallback driver. The device in question is detected as "Other devices / Video controller (VGA compat.)", and its ident

Re: [Qemu-devel] [PATCH 6/7 v5] Packet abstraction used by VMWARE network devices

2012-04-16 Thread Anthony Liguori
On 03/18/2012 04:27 AM, Dmitry Fleytman wrote: Signed-off-by: Dmitry Fleytman Signed-off-by: Yan Vugenfirer --- hw/vmxnet_pkt.c | 1243 +++ hw/vmxnet_pkt.h | 479 + 2 files changed, 1722 insertions(+), 0 deletions(-) c

Re: [Qemu-devel] [PATCH 03/14] MAINTAINERS: Fix TCI file pattern

2012-04-16 Thread Stefan Weil
Am 16.04.2012 16:31, schrieb Andreas Färber: tcg/tci is a directory, so for recursive semantics add a trailing slash. Signed-off-by: Andreas Färber Cc: Stefan Weil --- MAINTAINERS | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 3e18a8a..d17

Re: [Qemu-devel] [PATCH 7/7 v5] VMXNET3 paravirtualized device implementation Interface type "vmxnet3" added.

2012-04-16 Thread Anthony Liguori
On 04/16/2012 02:49 PM, Paolo Bonzini wrote: Regarding the testing - we ran WHQL networking tests on the device. If we provide the logs will it be sufficient? I believe the test coverage is much more comprehensive than anything that we will do with qtest. I'm not sure I'd agree about comprehe

Re: [Qemu-devel] [PATCH 7/7 v5] VMXNET3 paravirtualized device implementation Interface type "vmxnet3" added.

2012-04-16 Thread Paolo Bonzini
> > Regarding the testing - we ran WHQL networking tests on the device. > > If we provide the logs will it be sufficient? I believe the test > > coverage is much more comprehensive than anything that we will do with > > qtest. > > I'm not sure I'd agree about comprehensive Let's just say that pa

Re: [Qemu-devel] [PATCH 00/20] PPC: AREG0 conversion

2012-04-16 Thread Blue Swirl
On Mon, Apr 16, 2012 at 19:28, Peter Maydell wrote: > On 16 April 2012 20:12, Blue Swirl wrote: >> On Mon, Apr 16, 2012 at 16:53, Alexander Graf wrote: >>> If you can update it on top of ppc-next and add patch descriptions >>> in every patch (more than just the subject line), I'll happily apply

Re: [Qemu-devel] [PATCH 1/4] tcg: Add debug_info to JIT ELF image.

2012-04-16 Thread Richard Henderson
On 04/16/2012 11:28 AM, Avi Kivity wrote: > Unable to read JIT descriptor from remote memory! > (gdb) bt > #0 0x7f4a1257cae5 in ?? () > #1 0x in ?? () > (gdb) set debug jit 1 r~

Re: [Qemu-devel] [PATCH 00/20] PPC: AREG0 conversion

2012-04-16 Thread Peter Maydell
On 16 April 2012 20:12, Blue Swirl wrote: > On Mon, Apr 16, 2012 at 16:53, Alexander Graf wrote: >> If you can update it on top of ppc-next and add patch descriptions >> in every patch (more than just the subject line), I'll happily apply >> it and if possible also pull it in before the hard free

Re: [Qemu-devel] [PATCH 00/20] PPC: AREG0 conversion

2012-04-16 Thread Alexander Graf
On 16.04.2012, at 21:12, Blue Swirl wrote: > On Mon, Apr 16, 2012 at 16:53, Alexander Graf wrote: >> >> On 31.03.2012, at 18:25, Blue Swirl wrote: >> >>> Split PPC op helpers, convert to AREG0 free operation. Survives simple >>> tests. >>> >>> FPU and SPE as well as integer and vector ops co

Re: [Qemu-devel] [PATCH 00/20] PPC: AREG0 conversion

2012-04-16 Thread Blue Swirl
On Mon, Apr 16, 2012 at 16:53, Alexander Graf wrote: > > On 31.03.2012, at 18:25, Blue Swirl wrote: > >> Split PPC op helpers, convert to AREG0 free operation. Survives simple tests. >> >> FPU and SPE as well as integer and vector ops could be split further, >> each to their own file. This can be

Re: [Qemu-devel] [PATCH 20/20] ppc: move load and store helpers, switch to AREG0 free mode

2012-04-16 Thread Blue Swirl
On Mon, Apr 16, 2012 at 16:52, Alexander Graf wrote: > > On 31.03.2012, at 18:32, Blue Swirl wrote: > >> Add an explicit CPUPPCState parameter instead of relying on AREG0 >> and rename op_helper.c (which only contains load and store helpers) >> to mem_helper.c. Remove AREG0 swapping in >> tlb_fill

Re: [Qemu-devel] [PATCH 3/3] qtest: add m48t59 tests for Sparc

2012-04-16 Thread Blue Swirl
On Mon, Apr 16, 2012 at 13:01, Andreas Färber wrote: > Am 15.04.2012 18:32, schrieb Blue Swirl: >> Add simple m48t59 qtests, enable test only for Sparc32 >> and Sparc64. On PPC, the device is behind PCI bus. >> >> Signed-off-by: Blue Swirl >> --- >>  tests/Makefile      |    5 + >>  tests/m48t59-

Re: [Qemu-devel] [PATCH 1/3] qtest: add register fuzzing to RTC test

2012-04-16 Thread Blue Swirl
On Mon, Apr 16, 2012 at 00:49, Andreas Färber wrote: > Am 15.04.2012 18:32, schrieb Blue Swirl: >> Signed-off-by: Blue Swirl >> --- >>  tests/rtc-test.c |   17 + >>  1 file changed, 17 insertions(+) >> >> diff --git a/tests/rtc-test.c b/tests/rtc-test.c >> index 983a980..f23ac3a 1

Re: [Qemu-devel] [PATCH 7/7 v5] VMXNET3 paravirtualized device implementation Interface type "vmxnet3" added.

2012-04-16 Thread Anthony Liguori
On 04/15/2012 04:16 AM, Yan Vugenfirer wrote: On Wed, Apr 11, 2012 at 10:10 PM, Anthony Liguori wrote: On 04/11/2012 02:08 PM, Paolo Bonzini wrote: Il 11/04/2012 19:25, Anthony Liguori ha scritto: Off the top of my head: issues with v5: polluting global namespace, must scope names appropri

Re: [Qemu-devel] [PATCH 1/4] tcg: Add debug_info to JIT ELF image.

2012-04-16 Thread Avi Kivity
On 03/24/2012 07:47 PM, Richard Henderson wrote: > This allows us to actually supply a function name in softmmu builds; > gdb doesn't pick up the minimal symbol table otherwise. Also add a > bit of documentation and statically generate more of the ELF image. > > Looks like this is the cause of #

Re: [Qemu-devel] [RFC PATCH 3/3] qtest: add virtio-test test-case

2012-04-16 Thread Anthony Liguori
On 04/13/2012 09:27 AM, Stefan Hajnoczi wrote: Signed-off-by: Stefan Hajnoczi --- tests/Makefile |3 +- tests/virtio-test.c | 88 +++ 2 files changed, 90 insertions(+), 1 deletion(-) create mode 100644 tests/virtio-test.c diff --gi

Re: [Qemu-devel] [RFC PATCH 1/3] tests: add libpci qtest library

2012-04-16 Thread Anthony Liguori
On 04/16/2012 04:14 AM, Stefan Hajnoczi wrote: On Sat, Apr 14, 2012 at 12:32:00PM +, Blue Swirl wrote: On Fri, Apr 13, 2012 at 14:27, Stefan Hajnoczi wrote: This patch adds a common PCI bus driver library which works for i386/x86-64 targets. Tests can use the library to probe for PCI dev

Re: [Qemu-devel] [PATCH] gdbstub: Synchronize CPU state unconditionally in gdb_set_cpu_pc

2012-04-16 Thread Peter Maydell
gdbstub isn't my domain, patches should go via Anthony or Blue I guess. Patchwork url: http://patchwork.ozlabs.org/patch/146153/ thanks -- PMM On 16 April 2012 18:49, Alexander Graf wrote: > Looks great to me, push it :) > > Alex > > On 10.04.2012, at 14:43, Peter Maydell wrote: > >> Combinatio

Re: [Qemu-devel] [Qemu-ppc] [PATCH v2 0/5] QOM'ify Power Architecture CPU

2012-04-16 Thread Alexander Graf
On 10.04.2012, at 16:09, Andreas Färber wrote: > Am 10.04.2012 08:41, schrieb David Gibson: >> On Fri, Apr 06, 2012 at 06:17:07PM +0200, Andreas Färber wrote: >>> Hello, >>> >>> This series follows up on my PowerPC QOM'ification patches from the >>> qom-cpu-others.v1 RFC series and splits it int

Re: [Qemu-devel] [PATCH] gdbstub: Synchronize CPU state unconditionally in gdb_set_cpu_pc

2012-04-16 Thread Alexander Graf
Looks great to me, push it :) Alex On 10.04.2012, at 14:43, Peter Maydell wrote: > Combination ping^2 and apology for forgetting to cc qemu-ppc. > > -- PMM > > On 3 April 2012 12:57, Peter Maydell wrote: >> Ping? >> >> -- PMM >> >> On 12 March 2012 16:24, Peter Maydell wrote: >>> Synchroni

Re: [Qemu-devel] [RFC 00/14] MAINTAINERS cleanups - please read

2012-04-16 Thread Anthony Liguori
On 04/16/2012 12:40 PM, Peter Maydell wrote: On 16 April 2012 18:17, Peter Maydell wrote: Here's my stab at it: Supported: Someone is actually paid to look after this. This is the same as Maintained (see below) but you might have a g

Re: [Qemu-devel] [RFC 00/14] MAINTAINERS cleanups - please read

2012-04-16 Thread Anthony Liguori
On 04/16/2012 12:17 PM, Peter Maydell wrote: On 16 April 2012 17:03, Andreas Färber wrote: Am 16.04.2012 18:00, schrieb Anthony Liguori: On 04/16/2012 09:31 AM, Andreas Färber wrote: Hello, Sparked by conversations with Anthony and the discussion on a recent KVM call, I've started overhaulin

Re: [Qemu-devel] [RFC 00/14] MAINTAINERS cleanups - please read

2012-04-16 Thread Peter Maydell
On 16 April 2012 18:17, Peter Maydell wrote: > Here's my stab at it: > >           Supported:   Someone is actually paid to look after this. This >                        is the same as Maintained (see below) but you might >                        have a greater chance of faster response times. >

Re: [Qemu-devel] [PATCH 08/17] linux-user: fix fallocate

2012-04-16 Thread Alexander Graf
On 06.04.2012, at 18:35, riku.voi...@linaro.org wrote: > From: Alexander Graf > > Fallocate gets off_t parameters passed in, so we should also read them out > accordingly. > > Signed-off-by: Alexander Graf > > --- > > v1 -> v2: > > - unbreak 64-bit guests > > Signed-off-by: Riku Voipio

Re: [Qemu-devel] [PATCH] tracetool: handle DTrace keywords 'in', 'next', 'self'

2012-04-16 Thread Lluís Vilanova
Stefan Hajnoczi writes: > Language keywords cannot be used as argument names. The DTrace backend > appends an underscore to the argument name in order to make the argument > name legal. > This patch adds 'in', 'next', and 'self' keywords to dtrace.py. > Also drop the unnecessary argument name l

Re: [Qemu-devel] [RFC 00/14] MAINTAINERS cleanups - please read

2012-04-16 Thread Peter Maydell
On 16 April 2012 17:03, Andreas Färber wrote: > Am 16.04.2012 18:00, schrieb Anthony Liguori: >> On 04/16/2012 09:31 AM, Andreas Färber wrote: >>> Hello, >>> >>> Sparked by conversations with Anthony and the discussion on a recent >>> KVM call, >>> I've started overhauling our MAINTAINERS file. >>

Re: [Qemu-devel] [PATCH] xen_disk: implement BLKIF_OP_FLUSH_DISKCACHE, remove BLKIF_OP_WRITE_BARRIER

2012-04-16 Thread Konrad Rzeszutek Wilk
On Mon, Apr 16, 2012 at 06:05:57PM +0100, Stefano Stabellini wrote: > Signed-off-by: Stefano Stabellini Reviewed-by: Konrad Rzeszutek Wilk > --- > hw/xen_disk.c |8 > 1 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/hw/xen_disk.c b/hw/xen_disk.c > index 015d2af..3

Re: [Qemu-devel] [PATCH 03/20] ppc: avoid AREG0 for FPU and SPE helpers

2012-04-16 Thread Alexander Graf
On 16.04.2012, at 18:49, Peter Maydell wrote: > On 16 April 2012 17:27, Alexander Graf wrote: >> >> On 31.03.2012, at 18:26, Blue Swirl wrote: >> >>> Add an explicit CPUPPCState parameter instead of relying on AREG0. >>> >>> Signed-off-by: Blue Swirl >>> --- >>> Makefile.target |

[Qemu-devel] [PATCH] xen_disk: implement BLKIF_OP_FLUSH_DISKCACHE, remove BLKIF_OP_WRITE_BARRIER

2012-04-16 Thread Stefano Stabellini
Signed-off-by: Stefano Stabellini --- hw/xen_disk.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/xen_disk.c b/hw/xen_disk.c index 015d2af..3e4a47b 100644 --- a/hw/xen_disk.c +++ b/hw/xen_disk.c @@ -183,12 +183,12 @@ static int ioreq_parse(struct ioreq *ioreq)

Re: [Qemu-devel] [PATCH 00/20] PPC: AREG0 conversion

2012-04-16 Thread Alexander Graf
On 31.03.2012, at 18:25, Blue Swirl wrote: > Split PPC op helpers, convert to AREG0 free operation. Survives simple tests. > > FPU and SPE as well as integer and vector ops could be split further, > each to their own file. This can be done also later. > > It could be possible to move some code

Re: [Qemu-devel] [PATCH 20/20] ppc: move load and store helpers, switch to AREG0 free mode

2012-04-16 Thread Alexander Graf
On 31.03.2012, at 18:32, Blue Swirl wrote: > Add an explicit CPUPPCState parameter instead of relying on AREG0 > and rename op_helper.c (which only contains load and store helpers) > to mem_helper.c. Remove AREG0 swapping in > tlb_fill(). > > Switch to AREG0 free mode. Use cpu_ld{l,uw}_code in t

Re: [Qemu-devel] [PATCH 03/20] ppc: avoid AREG0 for FPU and SPE helpers

2012-04-16 Thread Peter Maydell
On 16 April 2012 17:27, Alexander Graf wrote: > > On 31.03.2012, at 18:26, Blue Swirl wrote: > >> Add an explicit CPUPPCState parameter instead of relying on AREG0. >> >> Signed-off-by: Blue Swirl >> --- >> Makefile.target         |    3 - >> target-ppc/fpu_helper.c |  350 >> +++

[Qemu-devel] [PATCH v2 05/18] qcow2: Fail write_compressed when overwriting data

2012-04-16 Thread Kevin Wolf
qcow2_alloc_compressed_cluster_offset() already fails if the copied flag is set, because qcow2_write_compressed() doesn't perform COW as it would have to do to allow this. However, what we really want to check here is whether the cluster is allocated or not. With internal snapshots the copied flag

Re: [Qemu-devel] [PATCH 03/20] ppc: avoid AREG0 for FPU and SPE helpers

2012-04-16 Thread Andreas Färber
Am 16.04.2012 18:27, schrieb Alexander Graf: > > On 31.03.2012, at 18:26, Blue Swirl wrote: > >> Add an explicit CPUPPCState parameter instead of relying on AREG0. >> >> Signed-off-by: Blue Swirl >> --- >> Makefile.target |3 - >> target-ppc/fpu_helper.c | 350 >> +++

[Qemu-devel] [PATCH v2 04/18] qcow2: Ignore reserved bits in count_contiguous_clusters()

2012-04-16 Thread Kevin Wolf
Until now, count_contiguous_clusters() has an argument that allowed to specify flags that should be ignored in the comparison, i.e. that are allowed to change between contiguous clusters. This patch changes the function so that it ignores all flags by default now and you need to pass the flags on

[Qemu-devel] [PATCH 03/14] MAINTAINERS: Fix TCI file pattern

2012-04-16 Thread Andreas Färber
tcg/tci is a directory, so for recursive semantics add a trailing slash. Signed-off-by: Andreas Färber Cc: Stefan Weil --- MAINTAINERS |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 3e18a8a..d179d52 100644 --- a/MAINTAINERS +++ b/MAINTA

[Qemu-devel] [PATCH v2 15/18] qemu-iotests: Test backing file COW with zero clusters

2012-04-16 Thread Kevin Wolf
Signed-off-by: Kevin Wolf --- tests/qemu-iotests/034 | 113 tests/qemu-iotests/034.out | 81 +++ tests/qemu-iotests/group |1 + 3 files changed, 195 insertions(+), 0 deletions(-) create mode 100755 tests/qemu-i

Re: [Qemu-devel] [RFC 11/14] MAINTAINERS: Upgrade NBD to Maintained

2012-04-16 Thread Paolo Bonzini
Il 16/04/2012 16:31, Andreas Färber ha scritto: > Signed-off-by: Andreas Färber > Cc: Paolo Bonzini > --- > MAINTAINERS |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/MAINTAINERS b/MAINTAINERS > index 503c0d3..707b455 100644 > --- a/MAINTAINERS > +++ b/MAINTAINER

[Qemu-devel] [PATCH v2 09/18] qcow2: Ignore reserved bits in refcount table entries

2012-04-16 Thread Kevin Wolf
Signed-off-by: Kevin Wolf --- block/qcow2-refcount.c |2 +- block/qcow2.h |2 ++ 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/block/qcow2-refcount.c b/block/qcow2-refcount.c index 2ec3aa7..50bf44e 100644 --- a/block/qcow2-refcount.c +++ b/block/qcow2-refcount.c

[Qemu-devel] [RFC 10/14] MAINTAINERS: Upgrade IDE to Maintained

2012-04-16 Thread Andreas Färber
Signed-off-by: Andreas Färber Cc: Kevin Wolf --- MAINTAINERS |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 80700b8..503c0d3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -421,7 +421,7 @@ Devices --- IDE M: Kevin Wolf -S: Odd Fix

Re: [Qemu-devel] [PATCH 03/20] ppc: avoid AREG0 for FPU and SPE helpers

2012-04-16 Thread Alexander Graf
On 31.03.2012, at 18:26, Blue Swirl wrote: > Add an explicit CPUPPCState parameter instead of relying on AREG0. > > Signed-off-by: Blue Swirl > --- > Makefile.target |3 - > target-ppc/fpu_helper.c | 350 --- > target-ppc/helper.h | 20

[Qemu-devel] [PULL][PATCH 2/5] pcnet: Clear ERR in CSR0 on stop

2012-04-16 Thread Jan Kiszka
pcnet_stop already clears any reason (BABL, CERR, MISS, MERR) why ERR (bit 15) should be set in CRS0. So we have to clear that bit as well. Signed-off-by: Jan Kiszka --- hw/pcnet.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/pcnet.c b/hw/pcnet.c index c53f06e..74

[Qemu-devel] [PULL][PATCH 3/5] pcnet: Properly handle TX requests during Link Fail

2012-04-16 Thread Jan Kiszka
As long as we have no link and we aren't in internal loopback mode, no packet must be sent. Instead, LCAR needs to be set in any active TX descriptor and also CERR in CSR0. Signed-off-by: Jan Kiszka --- hw/pcnet.c | 11 +++ hw/pcnet.h |1 + 2 files changed, 12 insertions(+), 0 dele

Re: [Qemu-devel] [PATCH] softfloat: make USE_SOFTFLOAT_STRUCT_TYPES compile

2012-04-16 Thread Peter Maydell
On 20 March 2012 15:36, Peter Maydell wrote: > On 20 March 2012 15:24, Juan Quintela wrote: >> This change makes it compile and return the same value than the #undef one. >> >> Signed-off-by: Juan Quintela > > Oops, that would have been my fault when I put in the fused multiply > accumulate supp

[Qemu-devel] [PATCH 12/14] MAINTAINERS: Downgrade target-m68k to Odd Fixes

2012-04-16 Thread Andreas Färber
m68k patches are not being handled, so let's downgrade to Odd Fixes. Signed-off-by: Andreas Färber Cc: Paul Brook --- MAINTAINERS |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 707b455..d9628ee 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

[Qemu-devel] [PATCH v2 06/18] qcow2: Ignore reserved bits in L1/L2 entries

2012-04-16 Thread Kevin Wolf
This changes the still existing places that assume that the only flags are QCOW_OFLAG_COPIED and QCOW_OFLAG_COMPRESSED to properly mask out reserved bits. It does not convert bdrv_check yet. Signed-off-by: Kevin Wolf --- block/qcow2-cluster.c | 26 +- block/qcow2-refc

[Qemu-devel] [PULL][PATCH 1/5] signrom: Rewrite as python script

2012-04-16 Thread Jan Kiszka
Now that we have a hard dependency on python anyway, we can replace the slow shell script to calculate the option ROM checksum with a fast AND portable python version. Tested both with python 2.7 and 3.1. Signed-off-by: Jan Kiszka --- pc-bios/optionrom/Makefile |2 +- scripts/signrom.py

[Qemu-devel] [PATCH v2 17/18] qemu-iotests: Add -o and make v3 the default for qcow2

2012-04-16 Thread Kevin Wolf
This adds an -o option to qemu-iotests, which is an option string that is passed through to qemu-img create -o... This allows testing different subformat with a command like './check -qcow2 -o compat=0.10'. For qcow2, if no compat option is specified, compat=1.1 is the new default. Signed-off-by:

[Qemu-devel] [PATCH v2 10/18] qcow2: Ignore reserved bits in check_refcounts

2012-04-16 Thread Kevin Wolf
Also don't infer the cluster type directly from the L2 entries, but use qcow2_get_cluster_type() to keep everything in a single place. Signed-off-by: Kevin Wolf --- block/qcow2-refcount.c | 98 ++- 1 files changed, 54 insertions(+), 44 deletions(-)

[Qemu-devel] [PULL][PATCH 5/5] vapic: Disable for pre-1.1 machines

2012-04-16 Thread Jan Kiszka
The kvmvapic was not present in older QEMU versions, thus must be disabled in compat machines. Signed-off-by: Jan Kiszka --- hw/pc_piix.c | 43 +-- 1 files changed, 33 insertions(+), 10 deletions(-) diff --git a/hw/pc_piix.c b/hw/pc_piix.c index fadca4c

[Qemu-devel] [PATCH v2 18/18] qemu-iotests: Fix test 031 for qcow2 v3 support

2012-04-16 Thread Kevin Wolf
qcow2.py must be updated to work with version 3 images at all, the output has changed since the feature table extension has been added, and version 2 and version 3 images can't possibly have the same test output. Change the test case to completely ignore IMGOPTS and run the test for both compat=1.

Re: [Qemu-devel] [RFC 00/14] MAINTAINERS cleanups - please read

2012-04-16 Thread Andreas Färber
Am 16.04.2012 18:00, schrieb Anthony Liguori: > On 04/16/2012 09:31 AM, Andreas Färber wrote: >> Hello, >> >> Sparked by conversations with Anthony and the discussion on a recent >> KVM call, >> I've started overhauling our MAINTAINERS file. >> >> Patches 1-5 fix syntax issues. >> >> Patch 6 docume

[Qemu-devel] KVM call agenda for April, Tuesday 17

2012-04-16 Thread Juan Quintela
Hi Please send in any agenda items you are interested in covering. Cheers, Juan.

Re: [Qemu-devel] [RFC 00/14] MAINTAINERS cleanups - please read

2012-04-16 Thread Anthony Liguori
On 04/16/2012 09:31 AM, Andreas Färber wrote: Hello, Sparked by conversations with Anthony and the discussion on a recent KVM call, I've started overhauling our MAINTAINERS file. Patches 1-5 fix syntax issues. Patch 6 documents our orphaned stable trees, as requested by Anthony. Patch 7 drops

Re: [Qemu-devel] [PATCH v2] signrom: Rewrite as python script

2012-04-16 Thread Jan Kiszka
On 2012-04-16 17:53, Alexander Graf wrote: > > On 29.03.2012, at 19:44, Jan Kiszka wrote: > >> On 2012-03-05 15:09, Jan Kiszka wrote: >>> Now that we have a hard dependency on python anyway, we can replace the >>> slow shell script to calculate the option ROM checksum with a fast AND >>> portable

  1   2   3   >