Re: [Qemu-devel] [PATCH V3] Guest stop notification

2011-12-03 Thread Jan Kiszka
On 2011-12-02 22:27, Eric B Munson wrote: On Fri, 02 Dec 2011, Jan Kiszka wrote: On 2011-12-02 20:19, Eric B Munson wrote: Often when a guest is stopped from the qemu console, it will report spurious soft lockup warnings on resume. There are kernel patches being discussed that will give

[Qemu-devel] [PATCH] Convert keymap file to UTF-8 encoding

2011-12-03 Thread Stefan Weil
Most QEMU files either are pure ASCII or use UTF-8. Convert this keymap file which still used ISO-8859-1 to UTF-8. Signed-off-by: Stefan Weil s...@weilnetz.de --- pc-bios/keymaps/is |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/pc-bios/keymaps/is b/pc-bios/keymaps/is

Re: [Qemu-devel] [PATCH] Convert keymap file to UTF-8 encoding

2011-12-03 Thread Peter Maydell
On 3 December 2011 09:45, Stefan Weil s...@weilnetz.de wrote: Most QEMU files either are pure ASCII or use UTF-8. Convert this keymap file which still used ISO-8859-1 to UTF-8. Good catch -- I'd assumed the keymap files were binary :-) -- PMM

Re: [Qemu-devel] [PATCH for v1.0 1/3] msix: track function masked in pci device state

2011-12-03 Thread Jan Kiszka
On 2011-12-03 00:34, Cam Macdonell wrote: So I believe my bug is due to the fact the new logic included in this patch requires msix_write_config() to be called to unmask the vectors. Virtio-pci calls msix_write_config(), but ivshmem does not (nor does PCIe so I'm not sure if it's also

[Qemu-devel] [RFC][PATCH 03/16] apic: Stop timer on reset

2011-12-03 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com All LVTs are masked on reset, so the timer becomes ineffective. Letting it tick nevertheless is harmless, but will at least create a spurious trace event. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- hw/apic.c |2 ++ 1 files changed, 2

[Qemu-devel] [RFC][PATCH 12/16] kvm: x86: Establish IRQ0 override control

2011-12-03 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com KVM is forced to disable the IRQ0 override when we run with in-kernel irqchip but without IRQ routing support of the kernel. Set the fwcfg value correspondingly. This aligns us with qemu-kvm. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- hw/pc.c

[Qemu-devel] [RFC][PATCH 09/16] ioapic: Factor out core for KVM reuse

2011-12-03 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com KVM will share the IOAPICState, the vmstate, the reset logic and certain init parts with the user space model. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- Makefile.target |2 +- hw/ioapic.c | 108

[Qemu-devel] [RFC][PATCH 06/16] i8259: Factor out core for KVM reuse

2011-12-03 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com Analogously to the APIC, we will reuse some parts of the user space i8259 model for KVM. In this case it is the PicState, vmstate description, a reset core and some init bits. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- Makefile.objs |2

Re: [Qemu-devel] [PATCH V3] Guest stop notification

2011-12-03 Thread Marcelo Tosatti
On Sat, Dec 03, 2011 at 10:06:56AM +0100, Jan Kiszka wrote: On 2011-12-02 22:27, Eric B Munson wrote: On Fri, 02 Dec 2011, Jan Kiszka wrote: On 2011-12-02 20:19, Eric B Munson wrote: Often when a guest is stopped from the qemu console, it will report spurious soft lockup warnings on

Re: [Qemu-devel] [PATCH V3] Guest stop notification

2011-12-03 Thread Jan Kiszka
On 2011-12-03 12:19, Marcelo Tosatti wrote: On Sat, Dec 03, 2011 at 10:06:56AM +0100, Jan Kiszka wrote: On 2011-12-02 22:27, Eric B Munson wrote: On Fri, 02 Dec 2011, Jan Kiszka wrote: On 2011-12-02 20:19, Eric B Munson wrote: Often when a guest is stopped from the qemu console, it will

[Qemu-devel] [RFC][PATCH 14/16] kvm: x86: Add user space part for in-kernel i8259

2011-12-03 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com Introduce the alternative 'kvm-i8259' device model that exploits KVM in-kernel acceleration. The PIIX3 initialization code is furthermore extended by KVM specific IRQ route setup. Moreover, GSI injection differs in KVM mode from the user space model. As we

Re: [Qemu-devel] [PATCH 1.0] 9pfs: improve portability to older systems

2011-12-03 Thread Erik Rull
Paolo Bonzini wrote: On 11/30/2011 10:27 PM, Erik Rull wrote: Erik, if you can test on your Debian 4.0 installation, that would be nice. Thanks! I will do so. Can you provide me a snapshot (.tgz) of the git? I have heard that there are possibilities to create the tgz over some web interfaces

Re: [Qemu-devel] [PATCH 1.0] 9pfs: improve portability to older systems

2011-12-03 Thread Erik Rull
Paolo Bonzini wrote: On 11/30/2011 10:27 PM, Erik Rull wrote: Erik, if you can test on your Debian 4.0 installation, that would be nice. Thanks! I will do so. Can you provide me a snapshot (.tgz) of the git? I have heard that there are possibilities to create the tgz over some web interfaces

Re: [Qemu-devel] [PATCH V3] Guest stop notification

2011-12-03 Thread Marcelo Tosatti
On Sat, Dec 03, 2011 at 12:25:37PM +0100, Jan Kiszka wrote: On 2011-12-03 12:19, Marcelo Tosatti wrote: On Sat, Dec 03, 2011 at 10:06:56AM +0100, Jan Kiszka wrote: On 2011-12-02 22:27, Eric B Munson wrote: On Fri, 02 Dec 2011, Jan Kiszka wrote: On 2011-12-02 20:19, Eric B Munson wrote:

[Qemu-devel] [RFC][PATCH 16/16] kvm: Arm in-kernel irqchip support

2011-12-03 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com Make the basic in-kernel irqchip support selectable via -machine ...,kernel_irqchip=on. Leave it off by default until it can fully replace user space models. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- qemu-config.c |4 qemu-options.hx

Re: [Qemu-devel] [PATCH V3] Guest stop notification

2011-12-03 Thread Jan Kiszka
On 2011-12-03 12:42, Marcelo Tosatti wrote: On Sat, Dec 03, 2011 at 12:25:37PM +0100, Jan Kiszka wrote: On 2011-12-03 12:19, Marcelo Tosatti wrote: On Sat, Dec 03, 2011 at 10:06:56AM +0100, Jan Kiszka wrote: On 2011-12-02 22:27, Eric B Munson wrote: On Fri, 02 Dec 2011, Jan Kiszka wrote: On

[Qemu-devel] [RFC][PATCH 02/16] kvm: Move kvmclock into hw/kvm folder

2011-12-03 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com More KVM-specific devices will come, so let's start with moving the kvmclock into a dedicated folder. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- Makefile.target|4 ++-- configure |1 + hw/{kvmclock.c

[Qemu-devel] [RFC][PATCH 13/16] kvm: x86: Add user space part for in-kernel APIC

2011-12-03 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com This introduces the alternative APIC model 'kvm-apic' which makes use of KVM's in-kernel device model. MSI is not yet supported, so we disable this when the in-kernel model is in use. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- Makefile.target

[Qemu-devel] [RFC][PATCH 01/16] msi: Generalize msix_supported to msi_supported

2011-12-03 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com Rename msix_supported to msi_supported and control MSI and MSI-X activation this way. That was likely to original intention for this flag, but MSI support came after MSI-X. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- hw/msi.c |8

[Qemu-devel] [RFC][PATCH 15/16] kvm: x86: Add user space part for in-kernel IOAPIC

2011-12-03 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com This introduces the KVM-accelerated IOAPIC model 'kvm-ioapic' and extends the IRQ routing setup by the 0-2 redirection when needed. The kvm-ioapic model has a property that allows to define its GSI base for injecting interrupts into the kernel model. This

[Qemu-devel] [RFC][PATCH 08/16] ioapic: Reject non-dword accesses to IOWIN register

2011-12-03 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com Aligns the model with the spec. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- hw/ioapic.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/hw/ioapic.c b/hw/ioapic.c index 56b1612..eb75766 100644 --- a/hw/ioapic.c +++

[Qemu-devel] [RFC][PATCH 00/16] uq/master: Introduce basic irqchip support

2011-12-03 Thread Jan Kiszka
Some weeks back I posted my MSI rework for qemu-kvm that shall once help integrating those bits into upstream. After that I wondered how a rewritten in-kernel irqchip model could look like and make use of this. But then I realized that there is actually no technical need to role out a first

[Qemu-devel] [RFC][PATCH 04/16] apic: Factor out core for KVM reuse

2011-12-03 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com The KVM in-kernel APIC model will reuse parts of the user space model, namely the vmstate, reset handling, IRQ coalescing tracker, some init steps and the base and tpr set/get routines. For the latter, we also prepare set callbacks as KVM will override

[Qemu-devel] [RFC][PATCH 11/16] kvm: Introduce core services for in-kernel irqchip support

2011-12-03 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com Add the basic infrastructure to active in-kernel irqchip support, inject interrupts into these models, and maintain IRQ routes. Routing is optional and depends on the host arch supporting KVM_CAP_IRQ_ROUTING. When it's not available on x86, we loose the

[Qemu-devel] [RFC][PATCH 07/16] ioapic: Convert to memory API

2011-12-03 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com This maintains the old imprecise access size handling. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- hw/ioapic.c | 28 +++- 1 files changed, 11 insertions(+), 17 deletions(-) diff --git a/hw/ioapic.c b/hw/ioapic.c index

[Qemu-devel] [RFC][PATCH 05/16] apic: Open-code timer save/restore

2011-12-03 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com To enable migration between accelerated and non-accelerated APIC models, we will need to handle the timer saving and restoring specially and can no longer rely on the automatics of VMSTATE_TIMER. Specifically, accelerated model will not start any QEMUTimer.

[Qemu-devel] [RFC][PATCH 10/16] memory: Introduce memory_region_init_reservation

2011-12-03 Thread Jan Kiszka
From: Jan Kiszka jan.kis...@siemens.com Introduce a memory region type that can reserve I/O space. Such regions are useful for modeling I/O that is only handled outside of QEMU, i.e. in the context of an accelerator like KVM. Any access to such a region from QEMU is a bug and will be reported as

[Qemu-devel] Western Union Online : Message Alert!

2011-12-03 Thread westernunion
Dear Western Union Customer From: westernun...@westernunion.com Subject: Western Union Online : Message Alert! You have (1) unread Message! Your Western Union Account is currently locked. As a security measure you must provide your credit card cvv ( the last 3 digits on the back of your card

Re: [Qemu-devel] [PATCH v2 00/18] qom: dynamic properties and composition tree (v2)

2011-12-03 Thread Paolo Bonzini
On 12/03/2011 03:40 AM, Anthony Liguori wrote: That is still true. The next step, inheritance, will pull the properties into a base class. That base class can be used elsewhere outside of the device model. But this is already a 20 patch series. If you want all of that in one series, it's going

[Qemu-devel] [Bug 899664] [NEW] Bad internet performance for Host to Guest or Guest to Host

2011-12-03 Thread max
Public bug reported: Hi, Internet performance for Host to Quest is low. The speed Guest to same Guest is 11.3 Gbits/sec The speed Host to same Host is similar (9.8-11 Gbits/sec) But the speed from Guest to Host is slow and around 1Gbit/sec. In the reality traffic never leave a Host. I

Re: [Qemu-devel] [Bug 899143] [NEW] Raw img not recognized by Windows

2011-12-03 Thread Stefan Hajnoczi
On Fri, Dec 2, 2011 at 2:45 PM, Vincent Autefage 899...@bugs.launchpad.net wrote: $ qemu-img create -f raw root.img 100GB $ mkntfs -F root.img $ qemu -name W -sdl -m 2048 -enable-kvm -localtime -k fr -hda root.img -cdrom windows7.iso -boot d -net nic,macaddr=a0:00:00:00:00:01 -net user,vlan=0

Re: [Qemu-devel] [Bug 899140] Re: Problem with Linux Kernel Traffic Control

2011-12-03 Thread Stefan Hajnoczi
On Fri, Dec 2, 2011 at 2:42 PM, Vincent Autefage 899...@bugs.launchpad.net wrote: *root@A# tc qdisc add dev eth0 root tbf rate 20mbit burst 20480 latency 50ms* *root@B# **ifconfig eth0 192.168.0.2* Then if we check with /Iperf/, the real rate will be about 100kbit/s : What is the iperf

Re: [Qemu-devel] [RFC][PATCH 02/16] kvm: Move kvmclock into hw/kvm folder

2011-12-03 Thread Andreas Färber
Am 03.12.2011 12:17, schrieb Jan Kiszka: From: Jan Kiszka jan.kis...@siemens.com More KVM-specific devices will come, so let's start with moving the kvmclock into a dedicated folder. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- diff --git a/Makefile.target b/Makefile.target

[Qemu-devel] [PATCH] w32: QEMU applications with SDL are always GUI applications

2011-12-03 Thread Stefan Weil
Since commit 1d14ffa97eacd3cb722271eaf6f093038396eac4 (in 2005), QEMU applications on W32 don't use the default SDL compiler flags: Instead of a GUI application, a console application is created. This has disadvantages (there is always an empty console window) and no obvious reason, so this

[Qemu-devel] [PATCH] w32: Disable buffering for log file

2011-12-03 Thread Stefan Weil
W32 does not support line buffering, but it supports unbuffered output. Unbuffered output is better for writing to qemu.log than fully buffered output because it also shows the latest log messages when an application crash occurs. Signed-off-by: Stefan Weil s...@weilnetz.de --- exec.c |6

Re: [Qemu-devel] [PATCH v2 00/18] qom: dynamic properties and composition tree (v2)

2011-12-03 Thread Anthony Liguori
On 12/03/2011 08:24 AM, Paolo Bonzini wrote: On 12/03/2011 03:40 AM, Anthony Liguori wrote: That is still true. The next step, inheritance, will pull the properties into a base class. That base class can be used elsewhere outside of the device model. But this is already a 20 patch series. If

Re: [Qemu-devel] endless loop when use qemu-system-mipsel to load bios

2011-12-03 Thread Stefan Weil
Am 16.11.2011 16:21, schrieb rui chen: sorry, here is my new patch file: From 05f4abe8d8c37f1585f2bb7cb89b15426044bb65 Mon Sep 17 00:00:00 2001 From: Chen Rui chenn...@gmail.com mailto:chenn...@gmail.com Date: Sun, 13 Nov 2011 19:42:42 +0800 Subject: [PATCH] resolve an endless loop when use

Re: [Qemu-devel] [RFC][PATCH 02/16] kvm: Move kvmclock into hw/kvm folder

2011-12-03 Thread Jan Kiszka
On 2011-12-03 20:00, Andreas Färber wrote: Am 03.12.2011 12:17, schrieb Jan Kiszka: From: Jan Kiszka jan.kis...@siemens.com More KVM-specific devices will come, so let's start with moving the kvmclock into a dedicated folder. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- diff

Re: [Qemu-devel] Improve QEMU performance with LLVM codegen and other techniques

2011-12-03 Thread 陳韋任
3. Then a trace composed of TCG blocks is sent to a LLVM translator. The translator generates the host binary for the trace into a LLVM code cache, and patch the I don't fully understand this part. Do you disassemble the x86 blob that TCG emitted? We ask TCG to disassemble the

Re: [Qemu-devel] Still build failure for qemu-1.0

2011-12-03 Thread Aneesh Kumar K.V
On Fri, 02 Dec 2011 14:22:03 +0100, erik.r...@rdsoftware.de wrote: Hi all, there was the promise to test the build failure from rc4 with the released version and that it should work. Its still present :-( please assist me here: CClibhw64/9pfs/coxattr.o CC