[Qemu-devel] [PATCH v8 2/8] ARM: Samsung exynos4210-based boards emulation

2012-01-19 Thread Evgeny Voevodin
Add initial support of NURI and SMDKC210 boards Signed-off-by: Evgeny Voevodin --- Makefile.target |3 +- hw/exynos4210.c | 202 +++ hw/exynos4210.h | 37 + hw/exynos4_boards.c | 143

[Qemu-devel] [PATCH v8 4/8] ARM: exynos4210: PWM support.

2012-01-19 Thread Evgeny Voevodin
Signed-off-by: Evgeny Voevodin --- Makefile.target |2 +- hw/exynos4210.c | 12 ++ hw/exynos4210_pwm.c | 413 +++ 3 files changed, 426 insertions(+), 1 deletions(-) create mode 100644 hw/exynos4210_pwm.c diff --git a/Makefile.targe

[Qemu-devel] [PATCH v8 1/8] ARM: exynos4210: IRQ subsystem support.

2012-01-19 Thread Evgeny Voevodin
Signed-off-by: Evgeny Voevodin --- Makefile.target |1 + hw/exynos4210.h | 82 hw/exynos4210_combiner.c | 472 ++ hw/exynos4210_gic.c | 436 ++ 4 files changed, 991 inserti

[Qemu-devel] [PATCH v8 6/8] hw/lan9118: Add basic 16-bit mode support.

2012-01-19 Thread Evgeny Voevodin
Signed-off-by: Evgeny Voevodin Reviewed-by: Peter Maydell --- hw/lan9118.c | 115 +++--- 1 files changed, 110 insertions(+), 5 deletions(-) diff --git a/hw/lan9118.c b/hw/lan9118.c index 8b83fe2..5e5e644 100644 --- a/hw/lan9118.c +++ b/hw/la

[Qemu-devel] [PATCH v8 5/8] ARM: exynos4210: MCT support.

2012-01-19 Thread Evgeny Voevodin
Signed-off-by: Evgeny Voevodin --- Makefile.target |1 + hw/exynos4210.c | 19 + hw/exynos4210_mct.c | 1479 +++ 3 files changed, 1499 insertions(+), 0 deletions(-) create mode 100644 hw/exynos4210_mct.c diff --git a/Makefile.target

Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

2012-01-19 Thread Charles . Tsai-蔡清海-研究發展部
Vadim, It is SMP system. -Original Message- From: Vadim Rozenfeld [mailto:vroze...@redhat.com] Sent: Thursday, January 19, 2012 3:58 PM To: Charles.Tsai-蔡清海-研究發展部 Cc: Michael Roth; Stefan Hajnoczi; spice-de...@lists.freedesktop.org; Alex Huang-黃必賢-研究發展部; Alon Levy; qemu-devel Subject: R

[Qemu-devel] qemu-kvm upstreaming: Do we need -no-kvm-pit and -no-kvm-pit-reinjection semantics?

2012-01-19 Thread Jan Kiszka
Hi all, I've finished a first version of cleaned-up in-kernel KVM PIT support. That will be rolled out once the base support for irqchip has been merged. I'm now wondering if and how to model two control knobs we have in qemu-kvm: o -no-kvm-pit, ie. disable the in-kernel PIT even when {A,IOA,}P

Re: [Qemu-devel] [PATCH][resend] Add -f option to qemu-nbd

2012-01-19 Thread Chunyan Liu
Thanks, Paolo! 2012/1/18 Paolo Bonzini : > On 01/18/2012 09:48 AM, Chunyan Liu wrote: >> >> Stefan, could you help commit it if it's OK? Thanks. >> Same as in thread: >> http://lists.gnu.org/archive/html/qemu-devel/2011-12/msg01083.html >> but rebase it to latest code. >> >> Add -f option to qemu-

Re: [Qemu-devel] [PATCH][resend] Add -f option to qemu-nbd

2012-01-19 Thread Paolo Bonzini
On 01/19/2012 09:52 AM, Chunyan Liu wrote: Currently, to print the connected device name, we can also change code a little as following: ("-v" can still indicate working on background or not. ) Unfortunately not, that will cause the parent to exit with a status code of 1. Paolo

[Qemu-devel] [PATCH v8 7/8] hw/exynos4210.c: Add LAN support for SMDKC210.

2012-01-19 Thread Evgeny Voevodin
SMDKC210 uses lan9215 chip, but lan9118 in 16-bit mode seems to be enough. Signed-off-by: Evgeny Voevodin Reviewed-by: Peter Maydell --- hw/exynos4_boards.c | 27 +-- 1 files changed, 25 insertions(+), 2 deletions(-) diff --git a/hw/exynos4_boards.c b/hw/exynos4_board

Re: [Qemu-devel] [PATCH][resend] Add -f option to qemu-nbd

2012-01-19 Thread Chunyan Liu
2012/1/18 Paolo Bonzini : > On 01/18/2012 11:56 AM, Michael Tokarev wrote: >> >> On 18.01.2012 12:48, Chunyan Liu wrote: >>> >>> Stefan, could you help commit it if it's OK? Thanks. >>> Same as in thread: >>> http://lists.gnu.org/archive/html/qemu-devel/2011-12/msg01083.html >>> but rebase it to la

[Qemu-devel] [PATCH v8 0/8] ARM: Samsung Exynos4210-based boards support.

2012-01-19 Thread Evgeny Voevodin
This set of patches adds support for Samsung S5PC210-based boards NURI and SMDKC210. Tested on Linux kernel v3.x series. Usage of "-smp 2" option is required for now. Changelog: v7->v8 - exynos4_boards.c: lack of spaces fix - exynos4210_gic.c: lack of spaces fix - exynos4210_combiner.c: lack

[Qemu-devel] [PATCH v8 3/8] ARM: exynos4210: UART support

2012-01-19 Thread Evgeny Voevodin
From: Maksim Kozlov Add basic support of exynos4210 UART Signed-off-by: Evgeny Voevodin --- Makefile.target |2 +- hw/exynos4210.c | 29 +++ hw/exynos4210.h |9 + hw/exynos4210_uart.c | 668 ++ 4 files changed, 707 inser

Re: [Qemu-devel] [PATCH][resend] Add -f option to qemu-nbd

2012-01-19 Thread Paolo Bonzini
On 01/19/2012 10:16 AM, Chunyan Liu wrote: > Yes, that's true. He could have two definitions (SOCKET_PATH with %d and > SOCKET_PATH_HELP without) so that the occurrences would stay close in the > source code. Not clear how it will use SOCKET_PATH and SOCKET_PATH_HELP. SOCKET_PATH_HELP stores

Re: [Qemu-devel] [PATCH 3/3] add cpu_set qmp command

2012-01-19 Thread Igor Mammedov
On 01/17/2012 03:18 PM, Jan Kiszka wrote: On 2012-01-17 14:17, Igor Mammedov wrote: Signed-off-by: Igor Mammedov --- qapi-schema.json |9 + qmp-commands.hx | 26 ++ qmp.c| 15 +++ 3 files changed, 50 insertions(+), 0 deletions

Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

2012-01-19 Thread Vadim Rozenfeld
On Thu, 2012-01-19 at 16:33 +0800, Charles.Tsai-蔡清海-研究發展部 wrote: > Vadim, > > It is SMP system. What about vioserial driver itself? did you build it from sources or is it one, available through RHEL channels? > > -Original Message- > From: Vadim Rozenfeld [mailto:vroze...@redhat.com] >

Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

2012-01-19 Thread Charles . Tsai-蔡清海-研究發展部
Vadim, We built it from the driver source. Up to this moment, we always use the same binary to test Qemu. -Original Message- From: Vadim Rozenfeld [mailto:vroze...@redhat.com] Sent: Thursday, January 19, 2012 5:39 PM To: Charles.Tsai-蔡清海-研究發展部 Cc: Michael Roth; Stefan Hajnoczi; spice-d

[Qemu-devel] [Bug 648356] Re: VirtFS possible memory leak in 9p virtio mapped

2012-01-19 Thread Deepak Shetty
1) Host memory consumption is not the right measure to conclude on VM mem leaks, esp. because QEMU does a mmap for the VM memory so as pages are touched inside the guest, host will allocate and this will be seen as increase in QEMU RSS size, as long as we don't get OOM, it should not be considered

Re: [Qemu-devel] [Qemu-trivial] [PATCH] tests: Silence gtester in Makefile

2012-01-19 Thread Stefan Hajnoczi
On Mon, Jan 16, 2012 at 07:26:27AM +0100, Stefan Weil wrote: > This prettifies make output a little by avoiding a very long line. > As gtester prints the checks when they are run, no information is lost. > > Signed-off-by: Stefan Weil > --- > tests/Makefile |2 +- > 1 files changed, 1 insert

Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

2012-01-19 Thread Stefan Hajnoczi
On Thu, Jan 19, 2012 at 09:41:15AM +0800, Charles.Tsai-蔡清海-研究發展部 wrote: > I tested on Qemu 1.0.50. and found the VioSerial driver had problem to > install on 64-bit Win7 guest. > During the driver installation, the system hung after the driver being > installed. After I rebooted the > guest OS, t

Re: [Qemu-devel] [Qemu-trivial] [PATCH v2] lm32: Fix mixup of uint32 and uint32_t

2012-01-19 Thread Stefan Hajnoczi
On Tue, Jan 17, 2012 at 10:44:40AM +0100, Andreas Färber wrote: > Commit d23948b15a9920fb7f6374b55a6db1ecff81f3ee (lm32: add Milkymist > VGAFB support) introduced a stray usage of the softfloat uint32 type. > > Use uint32_t instead. > > Signed-off-by: Andreas Färber > Acked-by: Michael Walle >

Re: [Qemu-devel] [PATCH 3/3] add cpu_set qmp command

2012-01-19 Thread Jan Kiszka
On 2012-01-19 10:38, Igor Mammedov wrote: > On 01/17/2012 03:18 PM, Jan Kiszka wrote: >> On 2012-01-17 14:17, Igor Mammedov wrote: >>> Signed-off-by: Igor Mammedov >>> --- >>> qapi-schema.json |9 + >>> qmp-commands.hx | 26 ++ >>> qmp.c| 15

[Qemu-devel] [PULL 0/5] Trivial patches for 14 to 19 January 2012

2012-01-19 Thread Stefan Hajnoczi
The following changes since commit 8c4ec5c0269bda18bb777a64b2008088d1c632dc: pxa2xx_keypad: fix unbalanced parenthesis. (2012-01-17 02:14:42 +0100) are available in the git repository at: git://github.com/stefanha/qemu.git trivial-patches Andreas Färber (4): qemu-tool: Fix mixup of int

[Qemu-devel] [PATCH 1/5] qemu-tool: Fix mixup of int64 and int64_t

2012-01-19 Thread Stefan Hajnoczi
From: Andreas Färber Commit cbcfa0418f0c196afa765f5c9837b9344d1adcf3 (link the main loop and its dependencies into the tools) introduced stray usages of int64. Use int64_t instead. Signed-off-by: Andreas Färber Cc: Paolo Bonzini Signed-off-by: Stefan Hajnoczi --- qemu-tool.c |4 ++-- 1

[Qemu-devel] [PATCH 4/5] Makefile: Exclude tests/Makefile in unconfigured tree

2012-01-19 Thread Stefan Hajnoczi
From: Andreas Färber Since commit dbfe06c62ccedc5b64e1c6466445133dd50f6de1 (build: split unit test builds to a separate makefile fragment), in absence of config-host.mak an undefined $(SRC_PATH) breaks `make distclean' due to /tests/Makefile not being include'able. Fix by only including when con

[Qemu-devel] [PATCH 5/5] Makefile: Remove generated headers on clean

2012-01-19 Thread Stefan Hajnoczi
From: Andreas Färber Running `make distclean' followed by a new out-of-tree build would fail due to stale generated QMP headers in the tree. Commit 611b727374ad76fb0078ea65bc1387194913980e (Makefile: remove more generated files on clean) made sure generated sources are removed. Also remove gene

[Qemu-devel] [PATCH 3/5] lm32: Fix mixup of uint32 and uint32_t

2012-01-19 Thread Stefan Hajnoczi
From: Andreas Färber Commit d23948b15a9920fb7f6374b55a6db1ecff81f3ee (lm32: add Milkymist VGAFB support) introduced a stray usage of the softfloat uint32 type. Use uint32_t instead. Signed-off-by: Andreas Färber Acked-by: Michael Walle Cc: Peter Maydell Signed-off-by: Stefan Hajnoczi --- h

[Qemu-devel] [PATCH 2/5] tests: Silence gtester in Makefile

2012-01-19 Thread Stefan Hajnoczi
From: Stefan Weil This prettifies make output a little by avoiding a very long line. As gtester prints the checks when they are run, no information is lost. Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- tests/Makefile |2 +- 1 files changed, 1 insertions(+), 1 deletions(-)

[Qemu-devel] [PATCH] hyper-v. Fix broken build due to missing references. All credits go to Jan Kiszka, who reported and fixed this issue.

2012-01-19 Thread Vadim Rozenfeld
--- target-i386/hyperv.h |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/target-i386/hyperv.h b/target-i386/hyperv.h index 0d742f8..15467bf 100644 --- a/target-i386/hyperv.h +++ b/target-i386/hyperv.h @@ -24,9 +24,15 @@ #define KVM_CPUID_SIGNATURE_NEXT

Re: [Qemu-devel] [PATCH 3/3] add cpu_set qmp command

2012-01-19 Thread Igor Mammedov
On 01/19/2012 11:24 AM, Jan Kiszka wrote: On 2012-01-19 10:38, Igor Mammedov wrote: On 01/17/2012 03:18 PM, Jan Kiszka wrote: On 2012-01-17 14:17, Igor Mammedov wrote: Signed-off-by: Igor Mammedov --- qapi-schema.json |9 + qmp-commands.hx | 26 ++

[Qemu-devel] [PATCH v8 00/18] uq/master: Introduce basic irqchip support

2012-01-19 Thread Jan Kiszka
Changes in v8: - rebased over uq/master - fixed build issue of patch 16 with !CONFIG_KVM - converted forgotten container_of to DO_UPCAST You can pull this from git://git.kiszka.org/qemu-kvm.git queues/kvm-irqchip CC: Lai Jiangshan Jan Kiszka (18): msi: Generalize msix_supported to msi_suppor

[Qemu-devel] [PATCH v8 06/18] apic: Factor out base class for KVM reuse

2012-01-19 Thread Jan Kiszka
The KVM in-kernel APIC model will reuse parts of the user space model while providing the same frontend view to guest and most management interfaces. Factor out an APIC base class to encapsulate those parts that will be shared by user space and KVM model. This class offers callback hooks for init,

[Qemu-devel] [PATCH v8 09/18] i8259: Factor out base class for KVM reuse

2012-01-19 Thread Jan Kiszka
Analogously to the APIC, we will reuse some parts of the user space i8259 model for KVM. The base class provides a common device state, the vmstate, the property list, a reset core and some shared init bits. This also introduces a common helper to instantiate a single i8259 chip from the cascade-c

[Qemu-devel] [PATCH v8 05/18] apic: Introduce apic_report_irq_delivered

2012-01-19 Thread Jan Kiszka
The in-kernel i8259 and IOAPIC backends for KVM will need this, so encapsulate the shared bits. Signed-off-by: Jan Kiszka --- hw/apic.c| 11 --- hw/apic.h|1 + trace-events |2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/hw/apic.c b/hw/apic.c inde

[Qemu-devel] [PATCH v8 11/18] ioapic: Factor out base class for KVM reuse

2012-01-19 Thread Jan Kiszka
Split up the IOAPIC analogously to APIC and i8259. KVM will share the IOAPICCommonState, the vmstate, reset logic and certain init parts with the user space model. Signed-off-by: Jan Kiszka --- Makefile.target |2 +- hw/ioapic.c | 130 ++

[Qemu-devel] [PATCH v8 12/18] memory: Introduce memory_region_init_reservation

2012-01-19 Thread Jan Kiszka
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, but could theoretically be triggered by guest code (DMA to reser

[Qemu-devel] [PATCH v8 08/18] i8259: Completely privatize PicState

2012-01-19 Thread Jan Kiszka
Use DeviceState instead of PicState in the public i8259 API. This is cleaner and allows to reorganize the PIC data structures for KVM reuse. Signed-off-by: Jan Kiszka --- hw/i8259.c | 17 +++-- hw/pc.h|7 +++ 2 files changed, 14 insertions(+), 10 deletions(-) diff --gi

[Qemu-devel] [PATCH v8 03/18] apic: Stop timer on reset

2012-01-19 Thread Jan Kiszka
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 --- hw/apic.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/apic.c b/hw/apic.c index

[Qemu-devel] [PATCH v8 18/18] kvm: Activate in-kernel irqchip support

2012-01-19 Thread Jan Kiszka
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 --- qemu-config.c |4 qemu-options.hx |5 - 2 files changed, 8 insertions(+), 1 deletions(-)

Re: [Qemu-devel] [PATCH v8 1/8] ARM: exynos4210: IRQ subsystem support.

2012-01-19 Thread Peter Maydell
On 19 January 2012 08:31, Evgeny Voevodin wrote: > +#define GIC_NIRQ            160 > +#include "arm_gic.c" NB that when my current outstanding arm-devs pullreq lands you'll need to update this to handle the changes in http://patchwork.ozlabs.org/patch/136609/ This shouldn't be too hard -- you c

[Qemu-devel] [PATCH v8 17/18] kvm: x86: Add user space part for in-kernel IOAPIC

2012-01-19 Thread Jan Kiszka
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 will allow to disentangle PIC and IOAPIC

[Qemu-devel] [PATCH v8 15/18] kvm: x86: Add user space part for in-kernel APIC

2012-01-19 Thread Jan Kiszka
This introduces the alternative APIC device which makes use of KVM's in-kernel device model. External NMI injection via LINT1 is emulated by checking the current state of the in-kernel APIC, only injecting a NMI into the VCPU if LINT1 is unmasked and configured to DM_NMI. MSI is not yet supported,

Re: [Qemu-devel] [PATCH] iSCSI: add configuration variables for iSCSI

2012-01-19 Thread Kevin Wolf
Am 18.12.2011 05:48, schrieb Ronnie Sahlberg: > This patch adds configuration variables for iSCSI to set > initiator-name to use when logging in to the target, > which type of header-digest to negotiate with the target > and username and password for CHAP authentication. > > This allows specifying

[Qemu-devel] [PATCH v8 07/18] apic: Open-code timer save/restore

2012-01-19 Thread Jan Kiszka
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. This patch therefore factors out the gen

[Qemu-devel] [PATCH v8 10/18] ioapic: Drop post-load irr initialization

2012-01-19 Thread Jan Kiszka
As all devices undergo a reset prior to vmloa, and the reset value of irr is 0, we do not need to do this clearing for older vmstates explicitly. Dropping this redundant code will also make KVM integration a bit simpler. Signed-off-by: Jan Kiszka --- hw/ioapic.c | 12 1 files chan

Re: [Qemu-devel] [PATCH v8 2/8] ARM: Samsung exynos4210-based boards emulation

2012-01-19 Thread Peter Maydell
On 19 January 2012 08:31, Evgeny Voevodin wrote: > +    /* > +     * Secondary CPU startup code will be placed here. > +     */ > +    memory_region_init_ram(&s->hack_mem, "exynos4210.hack", 0x1000); > +    memory_region_add_subregion(system_mem, EXYNOS4210_SMP_BOOT_ADDR, > +            &s->hack_

Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

2012-01-19 Thread Alon Levy
On Thu, Jan 19, 2012 at 08:09:57AM +, Stefan Hajnoczi wrote: > On Thu, Jan 19, 2012 at 09:41:15AM +0800, Charles.Tsai-蔡清海-研究發展部 wrote: > > I tested on Qemu 1.0.50. and found the VioSerial driver had problem to > > install on 64-bit Win7 guest. > > During the driver installation, the system hun

[Qemu-devel] [PATCH v8 14/18] kvm: x86: Establish IRQ0 override control

2012-01-19 Thread Jan Kiszka
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 --- hw/pc.c|3 ++- kvm-all.c |5 + kvm-stub.c |5 + k

[Qemu-devel] [PATCH v8 02/18] kvm: Move kvmclock into hw/kvm folder

2012-01-19 Thread Jan Kiszka
More KVM-specific devices will come, so let's start with moving the kvmclock into a dedicated folder. Signed-off-by: Jan Kiszka --- Makefile.target|4 ++-- configure |1 + hw/{kvmclock.c => kvm/clock.c} |4 ++-- hw/{kvmclock.h => kvm/clock.h} |

Re: [Qemu-devel] [Xen-devel] [PATCH v3 5/6] xen: record physmap changes to xenstore

2012-01-19 Thread Ian Campbell
On Thu, 2012-01-19 at 11:56 +, Stefano Stabellini wrote: > Write to xenstore any physmap changes so that the hypervisor can be > aware of them. What is the structure of the xenstore values? Looks like /physmap//start_addr ? Who defines the meaning of original-addr, in particular what

Re: [Qemu-devel] [Spice-devel] Vioserial of Windows guest OS on Qemu 0.15

2012-01-19 Thread Vadim Rozenfeld
Just to be sure that we are on the same page: could you tell me about the origin of the source? Is it the latest from the Yan's repository at github.com? - Original Message - From: "Charles.Tsai-蔡清海-研究發展部" To: "Vadim Rozenfeld" Cc: "Michael Roth" , "Stefan Hajnoczi" , spice-de...@lists.

[Qemu-devel] [PATCH v8 01/18] msi: Generalize msix_supported to msi_supported

2012-01-19 Thread Jan Kiszka
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 --- hw/msi.c |8 hw/msi.h |2 ++ hw/msix.c |9 - hw/msix.h |2

Re: [Qemu-devel] [PATCH v8 3/8] ARM: exynos4210: UART support

2012-01-19 Thread Peter Maydell
On 19 January 2012 08:31, Evgeny Voevodin wrote: > From: Maksim Kozlov > +static Exynos4210UartReg exynos4210_uart_regs[] = { > +        {"ULCON"   , ULCON   , 0x}, > +        {"UCON"    , UCON    , 0x3000}, > +        {"UFCON"   , UFCON   , 0x}, > +        {"UMCON"   , UMCON

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

2012-01-19 Thread Jan Kiszka
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. GSI injection differs in KVM mode from the user space model. As we can dispatch ISA-range IRQs to both IOAPIC and PIC

[Qemu-devel] [PATCH v8 13/18] kvm: Introduce core services for in-kernel irqchip support

2012-01-19 Thread Jan Kiszka
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 looe the HPET as we can't route GSI0 to IOAPIC pin 2.

Re: [Qemu-devel] [PATCH v8 4/8] ARM: exynos4210: PWM support.

2012-01-19 Thread Peter Maydell
On 19 January 2012 08:31, Evgeny Voevodin wrote: > > Signed-off-by: Evgeny Voevodin Reviewed-by: Peter Maydell -- PMM

[Qemu-devel] [PATCH v8 04/18] apic: Inject external NMI events via LINT1

2012-01-19 Thread Jan Kiszka
On real hardware, NMI button events are injected via the LINT1 line of the APICs. E.g. kdump expect this wiring and gets upset if the per-APIC LINT1 mask is not respected, i.e. if NMIs are injected to VCPUs that should not receive them. Change the APIC emulation code to reflect this. Based on qemu

Re: [Qemu-devel] [PATCH v8 6/8] hw/lan9118: Add basic 16-bit mode support.

2012-01-19 Thread Peter Maydell
On 19 January 2012 08:31, Evgeny Voevodin wrote: > > Signed-off-by: Evgeny Voevodin > Reviewed-by: Peter Maydell NB that this will need updating to add the save/load support for the new fields when my current arm-devs pullreq lands (due to patch http://patchwork.ozlabs.org/patch/136608/) -- PM

Re: [Qemu-devel] [PATCH v8 8/8] Exynos4210: added display controller implementation

2012-01-19 Thread Peter Maydell
On 19 January 2012 08:31, Evgeny Voevodin wrote: > From: Mitsyanko Igor > > Exynos4210 display controller (FIMD) has 5 hardware windows with alpha and > chroma key blending functions. > > Signed-off-by: Evgeny Voevodin Reviewed-by: Peter Maydell (at an admittedly rather superficial level). -

[Qemu-devel] qemu-kvm upstreaming: Do we want -kvm-shadow-memory semantics?

2012-01-19 Thread Jan Kiszka
Hi again, do we need some KVM knob comparable to qemu-kvm's -kvm-shadow-memory in upstream? If yes: The underlying IOCTL is x86-only. Are other archs interested in this long-term as well, ie. should the control become arch-independent? Jan -- Siemens AG, Corporate Technology, CT T DE IT 1 Corp

Re: [Qemu-devel] [PATCH v8 5/8] ARM: exynos4210: MCT support.

2012-01-19 Thread Peter Maydell
On 19 January 2012 08:31, Evgeny Voevodin wrote: > > Signed-off-by: Evgeny Voevodin Reviewed-by: Peter Maydell -- PMM

Re: [Qemu-devel] Error booting from USB Storage Device in QEMU-KVM GIT MASTER

2012-01-19 Thread Gerd Hoffmann
On 01/19/12 13:57, Dyweni - Qemu-Devel wrote: > Hi, > > I am unable to boot KVM using a usb flash drive. I'm using QEMU-KVM built > from GIT MASTER as of this morning. > Start bios (version 1.6.3) > USB MSC vendor='QEMU' product='QEMU HARDDISK' rev='1.0.' type=0 removable=0 > Unable to configure

Re: [Qemu-devel] [PATCH v8 2/8] ARM: Samsung exynos4210-based boards emulation

2012-01-19 Thread Evgeny Voevodin
On 01/19/2012 04:19 PM, Peter Maydell wrote: On 19 January 2012 08:31, Evgeny Voevodin wrote: +/* + * Secondary CPU startup code will be placed here. + */ +memory_region_init_ram(&s->hack_mem, "exynos4210.hack", 0x1000); +memory_region_add_subregion(system_mem, EXYNOS4210_S

Re: [Qemu-devel] [PATCH v8 2/8] ARM: Samsung exynos4210-based boards emulation

2012-01-19 Thread Andreas Färber
Evgeny, Am 19.01.2012 09:31, schrieb Evgeny Voevodin: > Add initial support of NURI and SMDKC210 boards > > Signed-off-by: Evgeny Voevodin Could you please supply examples of how to use these? Whether for the Release Notes or as part of the commit message (or both). What's the NURI board? I do

Re: [Qemu-devel] [PATCH v2 3/6] suspend: add wakeup monitor command

2012-01-19 Thread Luiz Capitulino
On Mon, 16 Jan 2012 19:15:12 +0100 Gerd Hoffmann wrote: > This patch adds a wakeup monitor command which will simply wake up > suspended guests. > > Signed-off-by: Gerd Hoffmann > --- > hmp-commands.hx | 14 ++ > hmp.c|5 + > hmp.h|1 + > qapi

Re: [Qemu-devel] qemu-kvm upstreaming: Do we want -kvm-shadow-memory semantics?

2012-01-19 Thread Alexander Graf
On 19.01.2012, at 13:46, Jan Kiszka wrote: > Hi again, > > do we need some KVM knob comparable to qemu-kvm's -kvm-shadow-memory in > upstream? What does it do? Never heard of it :) Alex > > If yes: The underlying IOCTL is x86-only. Are other archs interested in > this long-term as well, ie

Re: [Qemu-devel] [PATCH v8 2/8] ARM: Samsung exynos4210-based boards emulation

2012-01-19 Thread Peter Maydell
On 19 January 2012 13:15, Evgeny Voevodin wrote: > On 01/19/2012 04:19 PM, Peter Maydell wrote: >> >> On 19 January 2012 08:31, Evgeny Voevodin  wrote: >> >>> +    /* >>> +     * Secondary CPU startup code will be placed here. >>> +     */ >>> +    memory_region_init_ram(&s->hack_mem, "exynos4210.

[Qemu-devel] [PATCH] unin_pci: Clean up qdev names

2012-01-19 Thread Andreas Färber
Add -pcihost to SysBus devices to resolve name conflicts, and clarify PCI vs. Internal PCI. Signed-off-by: Andreas Färber Cc: Alexander Graf Cc: Anthony Liguori --- hw/unin_pci.c | 53 ++--- 1 files changed, 38 insertions(+), 15 deletions(-) d

Re: [Qemu-devel] qemu-kvm upstreaming: Do we want -kvm-shadow-memory semantics?

2012-01-19 Thread Jan Kiszka
On 2012-01-19 14:24, Alexander Graf wrote: > > > On 19.01.2012, at 13:46, Jan Kiszka wrote: > >> Hi again, >> >> do we need some KVM knob comparable to qemu-kvm's -kvm-shadow-memory in >> upstream? > > What does it do? Never heard of it :) According to inline docs: "Chang[e] the number of mmu

Re: [Qemu-devel] [PATCH] unin_pci: Clean up qdev names

2012-01-19 Thread Andreas Färber
Am 19.01.2012 14:24, schrieb Andreas Färber: > Add -pcihost to SysBus devices to resolve name conflicts, > and clarify PCI vs. Internal PCI. > > Signed-off-by: Andreas Färber > Cc: Alexander Graf > Cc: Anthony Liguori > --- NB: Further cleanups based on these are still being worked on. Andrea

Re: [Qemu-devel] [PATCH V3 1/5] vmstate: introduce get_bufsize entry in VMStateField

2012-01-19 Thread Andreas Färber
Am 28.12.2011 16:32, schrieb Mitsyanko Igor: > New get_bufsize field in VMStateField is supposed to help us easily add > save/restore > support of dynamically allocated buffers in device's states. > There are some cases when information about size of dynamically allocated > buffer is > already pr

Re: [Qemu-devel] qemu-kvm upstreaming: Do we want -kvm-shadow-memory semantics?

2012-01-19 Thread Alexander Graf
On 19.01.2012, at 14:30, Jan Kiszka wrote: > On 2012-01-19 14:24, Alexander Graf wrote: >> >> >> On 19.01.2012, at 13:46, Jan Kiszka wrote: >> >>> Hi again, >>> >>> do we need some KVM knob comparable to qemu-kvm's -kvm-shadow-memory in >>> upstream? >> >> What does it do? Never heard of it

Re: [Qemu-devel] [PATCH 1/3][Seabios] Add bitmap for cpu _EJ0 callback

2012-01-19 Thread Vasilis Liaskovitis
On Fri, Jan 13, 2012 at 07:27:01PM -0500, Kevin O'Connor wrote: > > [...] > > Method (CPEJ, 2, NotSerialized) { > > // _EJ0 method - eject callback > > +Store(ShiftLeft(1, Arg0), PRE) > > Sleep(200) > > } > I have another question here: the P

Re: [Qemu-devel] [Xen-devel] [PATCH v3 5/6] xen: record physmap changes to xenstore

2012-01-19 Thread Ian Campbell
On Thu, 2012-01-19 at 13:08 +, Stefano Stabellini wrote: > On Thu, 19 Jan 2012, Ian Campbell wrote: > > On Thu, 2012-01-19 at 11:56 +, Stefano Stabellini wrote: > > > Write to xenstore any physmap changes so that the hypervisor can be > > > aware of them. > > > > What is the structure of t

Re: [Qemu-devel] [PATCH v6 00/16] block: generic image streaming

2012-01-19 Thread Kevin Wolf
Am 18.01.2012 15:40, schrieb Stefan Hajnoczi: > This series adds the 'block_stream' command which copies the contents of a > backing file into the image file while the VM is running. These patches are > based on Kevin Wolf's block tree. Previously this series was based on the > zero > detection

[Qemu-devel] [Bug 917824] Re: qemu loops/hangs on extending qcow2-diskspace

2012-01-19 Thread Serge Hallyn
Thanks for reporting this bug and doing the analysis. Despite your pinpointing, I'm afraid I don't quite understand where you are saying the problem is. I'm sorry, please bear with me. The QLIST_FOREACH variables are (var, head, field), so we start with &s->cluster_allocs as head, assign 'old_al

[Qemu-devel] [PATCH v11 0/5] arm: add support for Calxeda Highbank

2012-01-19 Thread Mark Langsdorf
This patch series adds support for the Calxeda Highbank SoC.

[Qemu-devel] [PATCH v11 1/6] Add xgmac ethernet model

2012-01-19 Thread Mark Langsdorf
From: Rob Herring This adds very basic support for the xgmac ethernet core. Missing things include: - statistics counters - WoL support - rx checksum offload - chained descriptors (only linear descriptor ring) - broadcast and multicast handling Signed-off-by: Rob Herring Signed-off-by: Mark La

[Qemu-devel] [PATCH v11 5/6] arm: SoC model for Calxeda Highbank

2012-01-19 Thread Mark Langsdorf
From: Rob Herring Adds support for Calxeda's Highbank SoC. Signed-off-by: Rob Herring Signed-off-by: Mark Langsdorf --- Changes from v10 Added secondary core boot functions Changes from v9 Made typedef struct names in CamelCase Changes from v7, v8 None Changes from v3,

[Qemu-devel] [PATCH v11 6/6] arm: Remove incorrect comment in arm_timer

2012-01-19 Thread Mark Langsdorf
The current comment says that the arm_timers are restricted to between 32 KHz and 1 MHz, but sp804 TRM does not specify those limits. Signed-off-by: Mark Langsdorf Reviewed-by: Andreas Färber --- Changes from v7-v10 None Changes from v2-v6 Skipped Changes from v1 Clarifie

Re: [Qemu-devel] Get only TCG code without execution

2012-01-19 Thread Rajat Goyal
Thank you so much for your help Peter. I was using version 0.15.1. On 1.0, it works like a dream! I was not talking about semantics of individual instructions but semantics of the whole multi-threaded program. Multi-threaded programs can lead to several different (most of which are unintended) sta

[Qemu-devel] [PATCH v11 3/6] ahci: add support for non-PCI based controllers

2012-01-19 Thread Mark Langsdorf
From: Rob Herring Add support for ahci on sysbus. Signed-off-by: Rob Herring Signed-off-by: Mark Langsdorf Reviewed-by: Andreas Färber --- Changes from v10 None Changes from v9 Changed typedef struct names to CamelCase Changes from v7, v8 None Changes from v5, v6

Re: [Qemu-devel] Get only TCG code without execution

2012-01-19 Thread Peter Maydell
On 19 January 2012 16:00, Rajat Goyal wrote: > Thank you so much for your help Peter. I was using version 0.15.1. On 1.0, > it works like a dream! Good. > I was not talking about semantics of individual instructions but semantics > of the whole multi-threaded program. Multi-threaded programs can

[Qemu-devel] [PATCH 5/5] qmp: add balloon-get-memory-stats & event

2012-01-19 Thread Luiz Capitulino
This commit adds a QMP API for the guest provided memory statistics (long disabled by commit 07b0403dfc2b2ac179ae5b48105096cc2d03375a). The approach taken by the original commit (625a5befc2e3200b396594f002218d235e375da5) was to extend the query-balloon command. That approach introduced a severe bu

Re: [Qemu-devel] [v9 Patch 0/6]Qemu: Host pagecache setting from cmdline and monitor

2012-01-19 Thread Kevin Wolf
Am 11.11.2011 07:47, schrieb Supriya Kannery: > Following patchset is for enabling dynamic change of > host pagecache setting of block devices through qemu > monitor. > > This patchset introduces > a. monitor command 'block_set_hostcache' using which host >pagecache setting for a block dev

[Qemu-devel] [RFC 0/5]: QMP: add balloon-get-memory-stats command

2012-01-19 Thread Luiz Capitulino
Long ago, commit 625a5be added the guest provided memory statistics to the query-balloon command. Unfortunately, it also introduced a severe bug: query-balloon would hang if the guest didn't respond. This, in turn, would also cause a hang in libvirt. Because of that, we decided to disable the gues

[Qemu-devel] [PATCH v11 2/6] arm: make the number of GIC interrupts configurable

2012-01-19 Thread Mark Langsdorf
Increase the maximum number of GIC interrupts for a9mp and a11mp to 1020, and create a configurable property for each defaulting to 96 and 64 (respectively) so that device modelers can set the value appropriately for their SoC. Other ARM processors also set their maximum number of used IRQs appropr

[Qemu-devel] [PATCH 1/5] balloon: qmp_balloon(): Use error_set()

2012-01-19 Thread Luiz Capitulino
Commit d72f326431e280a619a0fd55e27d3737747f8178 converted the balloon command to the QAPI, but forgot to convert one qerror_report() usage. Fix it. Signed-off-by: Luiz Capitulino --- balloon.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/balloon.c b/balloon.c index 0

Re: [Qemu-devel] [RFC][PATCH 09/15] introduce a new monitor command 'dump' to dump guest's memory

2012-01-19 Thread Eric Blake
On 01/18/2012 08:07 PM, Wen Congyang wrote: > Signed-off-by: Wen Congyang > --- > Makefile.target |8 +- > dump.c | 590 > ++ > dump.h |3 + > hmp-commands.hx | 16 ++ > hmp.c|9 + > hmp.h

Re: [Qemu-devel] [RFC][PATCH 00/15 v5] introducing a new, dedicated memory dump mechanism

2012-01-19 Thread Eric Blake
On 01/18/2012 08:39 PM, Wen Congyang wrote: > At 01/19/2012 11:32 AM, Jun Koi Wrote: >> On Thu, Jan 19, 2012 at 10:50 AM, Wen Congyang wrote: >>> Hi, all >>> >>> 'virsh dump' can not work when host pci device is used by guest. We have >>> discussed this issue here: >>> http://lists.nongnu.org/arch

Re: [Qemu-devel] bad USB tablet update rate on qemu-1.0

2012-01-19 Thread Erik Rull
Erik Rull wrote: Erik Rull wrote: Erik Rull wrote: Anthony Liguori wrote: On 12/19/2011 03:33 PM, Erik Rull wrote: Hi all, coming from qemu 0.14 the usbdevice tablet update rate gets really bad in qemu-1.0 with the same guest. What's the specific guest? Regards, Anthony Liguori It's a

[Qemu-devel] [PATCH 2/5] balloon: Drop unused include

2012-01-19 Thread Luiz Capitulino
Signed-off-by: Luiz Capitulino --- balloon.h |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/balloon.h b/balloon.h index b60fd5d..17fe300 100644 --- a/balloon.h +++ b/balloon.h @@ -14,7 +14,6 @@ #ifndef _QEMU_BALLOON_H #define _QEMU_BALLOON_H -#include "monitor.h" #i

[Qemu-devel] [Bug 917824] Re: qemu loops/hangs on extending qcow2-diskspace

2012-01-19 Thread warum
sorry, if it was not as clear as it should be... the assignment you describe is done until old_allocs is NULL (well the asm-test checks against zero, I've not looked at the macrodef of QLIST_FOREACH), but in this special case old_allocs points to address "foobar" *and* old_allocs->next_in_flight.l

Re: [Qemu-devel] [RFC 0/5]: QMP: add balloon-get-memory-stats command

2012-01-19 Thread Michael Roth
On 01/19/2012 09:56 AM, Luiz Capitulino wrote: Long ago, commit 625a5be added the guest provided memory statistics to the query-balloon command. Unfortunately, it also introduced a severe bug: query-balloon would hang if the guest didn't respond. This, in turn, would also cause a hang in libvirt.

Re: [Qemu-devel] [PATCH] unin_pci: Clean up qdev names

2012-01-19 Thread Alexander Graf
On 19.01.2012, at 14:24, Andreas Färber wrote: > Add -pcihost to SysBus devices to resolve name conflicts, > and clarify PCI vs. Internal PCI. > > Signed-off-by: Andreas Färber > Cc: Alexander Graf > Cc: Anthony Liguori > --- > hw/unin_pci.c | 53 ++--

[Qemu-devel] [Bug 917824] Re: qemu loops/hangs on extending qcow2-diskspace

2012-01-19 Thread warum
sorry forgot the requested cmdline of kvm: kvm -mem-path /VM/tmp -S -M pc-0.12 -cpu qemu32 -enable-kvm -m 512 -smp 1,sockets=1,cores=1,threads=1 -name winxp -uuid 1c4f4992-9212-4b4c-a14d-25f2f3f28ed2 -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/winxp.monitor

Re: [Qemu-devel] [PATCH v2 00/15] SCSI s/g + SCSI migration + virtio-scsi

2012-01-19 Thread Paolo Bonzini
On 01/18/2012 08:39 AM, Hu Tao wrote: Hi Paolo, I found a problem that a virtio-scsi disk gets offline during mkfs. The scsi disk is of 100G or bigger, and the corresponding image is a freshly created qcow2 image. If the disk is small enough, or not freshly created, the problem doesn't appear.

[Qemu-devel] [PATCH v11 4/6] arm: add secondary cpu book callbacks to arm_boot.c

2012-01-19 Thread Mark Langsdorf
Create two functions, write_secondary_boot() and secondary_cpu_reset_hook(), to allow platforms more control of how secondary CPUs are brought up. The new functions default to NULL and aren't called unless they are populated so there are no changes to existing platform models. Signed-off-by: Mark

[Qemu-devel] [PATCH 3/5] balloon: Drop old stats interface

2012-01-19 Thread Luiz Capitulino
It has never been used and next patches will introduce a new, usable interface. Note that dropping this won't break compatibility because all fields are optional. Signed-off-by: Luiz Capitulino --- hmp.c| 25 + qapi-schema.json | 21 +

Re: [Qemu-devel] [RFC 0/5]: QMP: add balloon-get-memory-stats command

2012-01-19 Thread Luiz Capitulino
On Thu, 19 Jan 2012 10:43:35 -0600 Michael Roth wrote: > On 01/19/2012 09:56 AM, Luiz Capitulino wrote: > > Long ago, commit 625a5be added the guest provided memory statistics to > > the query-balloon command. Unfortunately, it also introduced a severe > > bug: query-balloon would hang if the gue

  1   2   >