Re: [Qemu-devel] [PATCH 6/8] kvm: consume internal signal with sigtimedwait

2011-03-06 Thread Andreas Färber
Hello, Am 22.02.2010 um 22:26 schrieb Marcelo Tosatti: Change the way the internal qemu signal, used for communication between iothread and vcpus, is handled. Block and consume it with sigtimedwait on the outer vcpu loop, which allows more precise timing control. Mac OS X v10.5 does not

Re: [Qemu-devel] [PATCH 1/2] Add kvm_set_ioeventfd_mmio_long definition for non-KVM systems

2010-08-14 Thread Andreas Färber
addr, uint16_t val, bool assign) { return -ENOSYS; } + +int kvm_set_ioeventfd_mmio_long(int fd, uint32_t adr, uint32_t val, bool assign) +{ +return -ENOSYS; +} -- 1.6.2.5 Acked-by: Andreas Färber andreas.faer...@web.de This fixes linking [1] on Mac OS X. The patch is missing a Signed

Re: [Qemu-devel] Re: [PATCHv8 00/16] boot order specification

2010-12-14 Thread Andreas Färber
Am 12.12.2010 um 00:22 schrieb Benjamin Herrenschmidt: On Sat, 2010-12-11 at 18:06 +0200, Gleb Natapov wrote: http://playground.sun.com/pub/p1275/bindings/pci/pci2_1.pdf has table on page 10 that defines how pci class code should be translated into OF name. This is what my patch is using.

Re: [Qemu-devel] Re: [PATCHv8 00/16] boot order specification

2010-12-17 Thread Andreas Färber
Am 15.12.2010 um 00:02 schrieb Alexander Graf: On 14.12.2010, at 21:31, Benjamin Herrenschmidt wrote: The only working system emulation we have are Macs (G3 beige, G4, G5), so we can't just ignore Apple. Alex even made me stick to their odd 0x41 rtas-version property. ;) Hah :-) Nothing

Re: [Qemu-devel] [patch uq/master 0/8] port qemu-kvm's MCE support

2010-10-05 Thread Andreas Färber
Marcelo, Am 04.10.2010 um 20:54 schrieb Marcelo Tosatti: I assume something went wrong with your cover letter here. It would've been nice to see MCE spelled out or summarized for those of us that don't speak x86. Cheers, Andreas -- To unsubscribe from this list: send the line

Re: [PATCH v6 03/16] target-i386: Add cpu object access routines for Hypervisor level.

2012-10-10 Thread Andreas Färber
Am 10.10.2012 17:22, schrieb Don Slutz: On 10/09/12 15:13, Don Slutz wrote: On 10/09/12 12:25, Marcelo Tosatti wrote: On Mon, Sep 24, 2012 at 10:32:05AM -0400, Don Slutz wrote: +static void x86_cpuid_set_hv_level(Object *obj, Visitor *v, void *opaque, +const

Re: [Qemu-devel] [RFC v2 4/6] hw/kvm/arm_gic: Implement support for KVM in-kernel ARM GIC

2012-10-10 Thread Andreas Färber
Am 10.10.2012 17:07, schrieb Peter Maydell: Implement support for using the KVM in-kernel GIC for ARM. Signed-off-by: Peter Maydell peter.mayd...@linaro.org --- hw/a15mpcore.c |8 ++- hw/arm/Makefile.objs |1 + hw/kvm/arm_gic.c | 162

Re: [Qemu-devel] [RFC v2 3/6] hw/arm_gic: Add presave/postload hooks

2012-10-10 Thread Andreas Färber
Am 10.10.2012 17:07, schrieb Peter Maydell: Add presave/postload hooks to the ARM GIC common base class. These will be used by the KVM in-kernel GIC subclass to sync state between kernel and userspace when migrating. Signed-off-by: Peter Maydell peter.mayd...@linaro.org Reviewed-by: Andreas

[PATCH v2 6/7] spapr: Pass PowerPCCPU to spapr_hypercall()

2012-10-10 Thread Andreas Färber
Needed for changing the hypercall handlers' argument type to PowerPCCPU. Signed-off-by: Andreas Färber afaer...@suse.de --- hw/spapr.c |2 +- hw/spapr.h |2 +- hw/spapr_hcall.c |4 +++- target-ppc/kvm.c |3 ++- 4 Dateien geändert, 7 Zeilen hinzugefügt(+), 4 Zeilen

[PATCH v2 3/7] target-ppc: Rename kvm_kick_{env = cpu} and pass PowerPCCPU

2012-10-10 Thread Andreas Färber
Needed for changing qemu_cpu_kick() argument type to CPUState. Signed-off-by: Andreas Färber afaer...@suse.de --- target-ppc/kvm.c |8 ++-- 1 Datei geändert, 6 Zeilen hinzugefügt(+), 2 Zeilen entfernt(-) diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c index 5cbe98a..d7d8e8f 100644

[PATCH qom-cpu v2 4/7] cpus: Pass CPUState to qemu_cpu_is_self()

2012-10-11 Thread Andreas Färber
Change return type to bool, move to include/qemu/cpu.h and add documentation. Signed-off-by: Andreas Färber afaer...@suse.de --- cpus.c | 10 -- exec.c |3 ++- hw/apic.c |6 -- include/qemu/cpu.h | 10 ++ kvm-all.c |4

Re: [Qemu-devel] [PATCH qom-cpu v2 4/7] cpus: Pass CPUState to qemu_cpu_is_self()

2012-10-30 Thread Andreas Färber
Am 16.10.2012 02:49, schrieb Igor Mammedov: On Fri, 12 Oct 2012 03:26:40 +0200 Andreas Färber afaer...@suse.de wrote: Change return type to bool, move to include/qemu/cpu.h and add documentation. Signed-off-by: Andreas Färber afaer...@suse.de --- cpus.c | 10

[PATCH 07/35] cpus: Pass CPUState to qemu_cpu_is_self()

2012-10-30 Thread Andreas Färber
Change return type to bool, move to include/qemu/cpu.h and add documentation. Signed-off-by: Andreas Färber afaer...@suse.de Reviewed-by: Igor Mammedov imamm...@redhat.com [AF: Updated new caller qemu_in_vcpu_thread()] --- cpus.c | 12 +--- exec.c |3 ++- hw

[PATCH 13/35] cpus: Pass CPUState to cpu_is_stopped()

2012-10-30 Thread Andreas Färber
CPUArchState is no longer needed there. Also change the return type to bool. Signed-off-by: Andreas Färber afaer...@suse.de --- cpu-all.h |1 - cpus.c |4 +--- include/qemu/cpu.h | 11 +++ target-i386/kvm.c |4 ++-- 4 Dateien geändert, 14 Zeilen

[PATCH 19/35] target-ppc: Rename kvm_kick_{env = cpu} and pass PowerPCCPU

2012-10-30 Thread Andreas Färber
Needed for changing qemu_cpu_kick() argument type to CPUState. Signed-off-by: Andreas Färber afaer...@suse.de --- target-ppc/kvm.c |8 ++-- 1 Datei geändert, 6 Zeilen hinzugefügt(+), 2 Zeilen entfernt(-) diff --git a/target-ppc/kvm.c b/target-ppc/kvm.c index 5cbe98a..d7d8e8f 100644

[PATCH 20/35] cpus: Pass CPUState to qemu_cpu_kick()

2012-10-30 Thread Andreas Färber
CPUArchState is no longer needed there. Signed-off-by: Andreas Färber afaer...@suse.de --- cpus.c | 13 + exec.c |2 +- hw/ppc.c |4 ++-- hw/ppce500_spin.c |2 +- hw/spapr_rtas.c|5 - hw/sun4m.c |2 +- hw

[PATCH 30/35] target-i386: Pass X86CPU to kvm_mce_inject()

2012-10-30 Thread Andreas Färber
Needed for changing cpu_x86_inject_mce() argument to X86CPU. Signed-off-by: Andreas Färber afaer...@suse.de [AF: Rebased onto hwaddr] --- target-i386/kvm.c |8 +--- 1 Datei geändert, 5 Zeilen hinzugefügt(+), 3 Zeilen entfernt(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index

[PATCH 27/35] spapr: Pass PowerPCCPU to spapr_hypercall()

2012-10-30 Thread Andreas Färber
Needed for changing the hypercall handlers' argument type to PowerPCCPU. Signed-off-by: Andreas Färber afaer...@suse.de --- hw/spapr.c |2 +- hw/spapr.h |2 +- hw/spapr_hcall.c |4 +++- target-ppc/kvm.c |3 ++- 4 Dateien geändert, 7 Zeilen hinzugefügt(+), 4 Zeilen

[PATCH 32/35] cpus: Pass CPUState to run_on_cpu()

2012-10-30 Thread Andreas Färber
CPUArchState is no longer needed. Move the declaration to include/qemu/cpu.h and add documentation. Signed-off-by: Andreas Färber afaer...@suse.de --- cpu-all.h|1 - cpus.c |3 +-- hw/kvm/apic.c|2 +- hw/kvmvapic.c|6 -- hw

[PATCH 35/35] target-i386: Pass X86CPU to kvm_handle_halt()

2012-10-30 Thread Andreas Färber
Needed for moving interrupt_request and halted fields to CPUState. Signed-off-by: Andreas Färber afaer...@suse.de --- target-i386/kvm.c |7 +-- 1 Datei geändert, 5 Zeilen hinzugefügt(+), 2 Zeilen entfernt(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 7da816f..9ccbcb5

[PATCH 34/35] target-i386: Pass X86CPU to kvm_get_mp_state()

2012-10-30 Thread Andreas Färber
Needed for moving halted field to CPUState. Signed-off-by: Andreas Färber afaer...@suse.de --- target-i386/kvm.c |9 + 1 Datei geändert, 5 Zeilen hinzugefügt(+), 4 Zeilen entfernt(-) diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 64b837b..7da816f 100644 --- a/target-i386

[PATCH 31/35] target-i386: Pass X86CPU to cpu_x86_inject_mce()

2012-10-30 Thread Andreas Färber
Needed for changing run_on_cpu() argument to CPUState. Signed-off-by: Andreas Färber afaer...@suse.de --- monitor.c|6 -- target-i386/cpu.h|2 +- target-i386/helper.c |3 ++- target-i386/kvm.c|2 +- 4 Dateien geändert, 8 Zeilen hinzugefügt(+), 5 Zeilen

Re: [Qemu-devel] [PATCH 2/5] kvm: avoid using cpu_single_env

2012-10-30 Thread Andreas Färber
or CPUArchState above, Reviewed-by: Andreas Färber afaer...@suse.de Andreas -- SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg -- To unsubscribe from this list: send the line unsubscribe kvm in the body

Re: [Qemu-devel] [PATCH 27/28] target-i386: kvm_cpu_fill_host: use GET_SUPPORTED_CPUID

2012-11-02 Thread Andreas Färber
Am 31.10.2012 10:40, schrieb Marcelo Tosatti: From: Eduardo Habkost ehabk...@redhat.com Change the kvm_cpu_fill_host() function to use kvm_arch_get_supported_cpuid() instead of running the CPUID instruction directly, when checking for supported CPUID features. This should solve two

Re: [Qemu-devel] [PATCH 27/28] target-i386: kvm_cpu_fill_host: use GET_SUPPORTED_CPUID

2012-11-02 Thread Andreas Färber
Am 02.11.2012 16:34, schrieb Andreas Färber: Am 31.10.2012 10:40, schrieb Marcelo Tosatti: From: Eduardo Habkost ehabk...@redhat.com Change the kvm_cpu_fill_host() function to use kvm_arch_get_supported_cpuid() instead of running the CPUID instruction directly, when checking for supported

Re: [PATCH] target-i386: cpu: fix --disable-kvm compilation

2012-11-02 Thread Andreas Färber
. Reported-by: Andreas Färber afaer...@suse.de Signed-off-by: Eduardo Habkost ehabk...@redhat.com Acked-by: Andreas Färber afaer...@suse.de If no one objects to this solution, unless Marcelo or Avi beat me, I'll send out an urgent pull request as requested by Anthony. Thanks, Andreas

Re: [Qemu-devel] KVM call agenda for 2012-11-12

2012-11-13 Thread Andreas Färber
Am 13.11.2012 13:29, schrieb Eduardo Habkost: On Mon, Nov 12, 2012 at 01:58:38PM +0100, Juan Quintela wrote: Please send in any agenda topics you are interested in. - Clarify 1.3 plans for CPU: From my submaintainer POV: DeviceState CPU, I was specifically tasked with the qdev split by

Re: [Qemu-devel] [PATCH 1/1] Legacy qemu-kvm options have no argument

2012-11-23 Thread Andreas Färber
Am 23.11.2012 13:41, schrieb Marcelo Tosatti: From: Bruce Rogers brog...@suse.com The options no-kvm, no-kvm-pit, no-kvm-pit-reinjection, and no-kvm-irqchip should be marked as having no argument. Signed-off-by: Bruce Rogers brog...@suse.com Reviewed-by: Jan Kiszka jan.kis...@siemens.com

Re: [Qemu-devel] [PATCH V2] Resend - Enabling IA32_TSC_ADJUST for Qemu KVM guest VMs

2012-11-26 Thread Andreas Färber
Hello, Am 26.11.2012 19:42, schrieb Will Auld: CPUID.7.0.EBX[1]=1 indicates IA32_TSC_ADJUST MSR 0x3b is supported Basic design is to emulate the MSR by allowing reads and writes to the hypervisor vcpu specific locations to store the value of the emulated MSRs. In this way the

Re: [Qemu-devel] [PATCH V3] target-i386: Enabling IA32_TSC_ADJUST for QEMU KVM guest VMs

2012-11-26 Thread Andreas Färber
Am 27.11.2012 02:40, schrieb Will Auld: CPUID.7.0.EBX[1]=1 indicates IA32_TSC_ADJUST MSR 0x3b is supported Basic design is to emulate the MSR by allowing reads and writes to the hypervisor vcpu specific locations to store the value of the emulated MSRs. In this way the IA32_TSC_ADJUST value

Re: [Qemu-devel] [PATCH V4] target-i386: Enabling IA32_TSC_ADJUST for Qemu KVM guest VMs

2012-11-26 Thread Andreas Färber
Am 27.11.2012 03:29, schrieb Will Auld: CPUID.7.0.EBX[1]=1 indicates IA32_TSC_ADJUST MSR 0x3b is supported Basic design is to emulate the MSR by allowing reads and writes to the hypervisor vcpu specific locations to store the value of the emulated MSRs. In this way the IA32_TSC_ADJUST value

Re: [Qemu-devel] [PATCH V5] target-i386: Enabling IA32_TSC_ADJUST for QEMU KVM guest VMs

2012-11-30 Thread Andreas Färber
added for migrating its value. Signed-off-by: Will Auld will.a...@intel.com Reviewed-by: Andreas Färber afaer...@suse.de from the CPU perspective. Thanks, Andreas -- SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746

[PATCH qom-cpu 01/11] cpu: Move kvm_fd into CPUState

2012-12-01 Thread Andreas Färber
Signed-off-by: Andreas Färber afaer...@suse.de --- cpu-defs.h |1 - include/qemu/cpu.h |4 kvm-all.c |8 +--- 3 Dateien geändert, 9 Zeilen hinzugefügt(+), 4 Zeilen entfernt(-) diff --git a/cpu-defs.h b/cpu-defs.h index 3669241..6373a80 100644 --- a/cpu

[PATCH qom-cpu 00/11] QOM CPUState, part 6: CPU_COMMON for KVM

2012-12-01 Thread Andreas Färber
Habkost ehabk...@redhat.com Andreas Färber (11): cpu: Move kvm_fd into CPUState kvm: Pass CPUState to kvm_arch_* kvm: Pass CPUState to kvm_vcpu_ioctl() ppc: Pass PowerPCCPU to ppc_set_irq() ppc: Pass PowerPCCPU to [h]decr callbacks ppc: Pass PowerPCCPU to [h]decr timer callbacks

[PATCH qom-cpu 02/11] kvm: Pass CPUState to kvm_arch_*

2012-12-01 Thread Andreas Färber
Move kvm_vcpu_dirty field into CPUState to simplify things. Signed-off-by: Andreas Färber afaer...@suse.de --- cpu-defs.h |3 +-- include/qemu/cpu.h |1 + kvm-all.c | 75 ++-- kvm.h | 26

[PATCH qom-cpu 04/11] ppc: Pass PowerPCCPU to ppc_set_irq()

2012-12-01 Thread Andreas Färber
Adapt static caller functions. This cleans up after passing PowerPCCPU to kvmppc_set_interrupt(). Signed-off-by: Andreas Färber afaer...@suse.de --- hw/ppc.c | 66 ++-- hw/ppc.h |2 +- hw/ppc_booke.c | 28

[PATCH qom-cpu 07/11] ppc_booke: Pass PowerPCCPU to {decr,fit,wdt} timer callbacks

2012-12-01 Thread Andreas Färber
Cleans up after passing PowerPCCPU to booke_update_irq(). Signed-off-by: Andreas Färber afaer...@suse.de --- hw/ppc_booke.c | 23 ++- 1 Datei geändert, 10 Zeilen hinzugefügt(+), 13 Zeilen entfernt(-) diff --git a/hw/ppc_booke.c b/hw/ppc_booke.c index da6bc4a..5748063

[PATCH qom-cpu 08/11] ppc4xx_devs: Return PowerPCCPU from ppc4xx_init()

2012-12-01 Thread Andreas Färber
Prepares for passing PowerPCCPU to ppc_booke_timers_init(). Signed-off-by: Andreas Färber afaer...@suse.de --- hw/ppc405_uc.c |8 ++-- hw/ppc4xx.h |6 +++--- hw/ppc4xx_devs.c |8 3 Dateien geändert, 13 Zeilen hinzugefügt(+), 9 Zeilen entfernt(-) diff --git a/hw

[PATCH qom-cpu 09/11] ppc_booke: Pass PowerPCCPU to ppc_booke_timers_init()

2012-12-01 Thread Andreas Färber
Cleans up after passing PowerPCCPU to timer callbacks. Signed-off-by: Andreas Färber afaer...@suse.de --- hw/ppc.h |2 +- hw/ppc/e500.c |2 +- hw/ppc405_uc.c |2 +- hw/ppc440_bamboo.c |2 +- hw/ppc_booke.c |5 ++--- hw/virtex_ml507.c |2 +- 6

[PATCH qom-cpu 10/11] cpu: Move kvm_state field into CPUState

2012-12-01 Thread Andreas Färber
Adapt some functions to take CPUState / {PowerPC,S390}CPU argument. Signed-off-by: Andreas Färber afaer...@suse.de --- cpu-defs.h |2 -- include/qemu/cpu.h |3 +++ kvm-all.c | 28 ++-- kvm.h |4 ++-- target-i386/cpu.c |7

[PATCH qom-cpu 11/11] cpu: Move kvm_run into CPUState

2012-12-01 Thread Andreas Färber
Pass CPUState / {X86,S390}CPU to helper functions. Signed-off-by: Andreas Färber afaer...@suse.de --- cpu-defs.h |4 +-- include/qemu/cpu.h |2 ++ kvm-all.c |8 +++--- target-i386/kvm.c |9 +++--- target-s390x/kvm.c | 77

[PATCH qom-cpu 06/11] ppc: Pass PowerPCCPU to [h]decr timer callbacks

2012-12-01 Thread Andreas Färber
Cleans up after passing PowerPCCPU to [h]decr exception callbacks. Signed-off-by: Andreas Färber afaer...@suse.de --- hw/ppc.c | 18 ++ 1 Datei geändert, 10 Zeilen hinzugefügt(+), 8 Zeilen entfernt(-) diff --git a/hw/ppc.c b/hw/ppc.c index b1b93a1..8c05eb3 100644 --- a/hw

[PATCH qom-cpu 05/11] ppc: Pass PowerPCCPU to [h]decr callbacks

2012-12-01 Thread Andreas Färber
Cleans up after passing PowerPCCPU to ppc_set_irq(). Signed-off-by: Andreas Färber afaer...@suse.de --- hw/ppc.c | 60 +--- 1 Datei geändert, 33 Zeilen hinzugefügt(+), 27 Zeilen entfernt(-) diff --git a/hw/ppc.c b/hw/ppc.c index 6db595f

[PATCH qom-cpu 03/11] kvm: Pass CPUState to kvm_vcpu_ioctl()

2012-12-01 Thread Andreas Färber
Adapt helper functions to pass X86CPU / PowerPCCPU / S390CPU. Signed-off-by: Andreas Färber afaer...@suse.de --- hw/kvm/apic.c | 10 +-- hw/kvm/clock.c |2 +- hw/ppc.c |2 +- hw/s390-virtio-bus.c | 12 ++-- hw/spapr.c

Re: [Qemu-devel] [PATCH qom-cpu 01/11] cpu: Move kvm_fd into CPUState

2012-12-01 Thread Andreas Färber
Am 02.12.2012 05:50, schrieb Andreas Färber: diff --git a/include/qemu/cpu.h b/include/qemu/cpu.h index 61b7698..6c66fc0 100644 --- a/include/qemu/cpu.h +++ b/include/qemu/cpu.h @@ -77,6 +77,10 @@ struct CPUState { bool stop; bool stopped; +#if !defined(CONFIG_USER_ONLY

[PATCH v2 00/11] QOM CPUState, part 6: CPU_COMMON for KVM

2012-12-15 Thread Andreas Färber
Maydell peter.mayd...@linaro.org Cc: Igor Mammedov imamm...@redhat.com Cc: Eduardo Habkost ehabk...@redhat.com Andreas Färber (11): cpu: Move kvm_fd into CPUState kvm: Pass CPUState to kvm_arch_* kvm: Pass CPUState to kvm_vcpu_ioctl() ppc: Pass PowerPCCPU to ppc_set_irq() ppc: Pass

[PATCH v2 01/11] cpu: Move kvm_fd into CPUState

2012-12-15 Thread Andreas Färber
Signed-off-by: Andreas Färber afaer...@suse.de --- cpu-defs.h |1 - include/qemu/cpu.h |5 + kvm-all.c |8 +--- 3 Dateien geändert, 10 Zeilen hinzugefügt(+), 4 Zeilen entfernt(-) diff --git a/cpu-defs.h b/cpu-defs.h index 3669241..6373a80 100644 --- a/cpu

[PATCH v2 02/11] kvm: Pass CPUState to kvm_arch_*

2012-12-15 Thread Andreas Färber
Move kvm_vcpu_dirty field into CPUState to simplify things and change its type to bool while at it. Signed-off-by: Andreas Färber afaer...@suse.de --- cpu-defs.h |3 +-- include/qemu/cpu.h |1 + kvm-all.c | 75 ++-- kvm.h

[PATCH v2 06/11] ppc: Pass PowerPCCPU to [h]decr timer callbacks

2012-12-15 Thread Andreas Färber
Cleans up after passing PowerPCCPU to [h]decr exception callbacks. Signed-off-by: Andreas Färber afaer...@suse.de --- hw/ppc.c | 18 ++ 1 Datei geändert, 10 Zeilen hinzugefügt(+), 8 Zeilen entfernt(-) diff --git a/hw/ppc.c b/hw/ppc.c index b1b93a1..8c05eb3 100644 --- a/hw

[PATCH v2 05/11] ppc: Pass PowerPCCPU to [h]decr callbacks

2012-12-15 Thread Andreas Färber
Cleans up after passing PowerPCCPU to ppc_set_irq(). Signed-off-by: Andreas Färber afaer...@suse.de --- hw/ppc.c | 60 +--- 1 Datei geändert, 33 Zeilen hinzugefügt(+), 27 Zeilen entfernt(-) diff --git a/hw/ppc.c b/hw/ppc.c index 6db595f

[PATCH v2 04/11] ppc: Pass PowerPCCPU to ppc_set_irq()

2012-12-15 Thread Andreas Färber
Adapt static caller functions. This cleans up after passing PowerPCCPU to kvmppc_set_interrupt(). Signed-off-by: Andreas Färber afaer...@suse.de --- hw/ppc.c | 66 ++-- hw/ppc.h |2 +- hw/ppc_booke.c | 28

[PATCH v2 03/11] kvm: Pass CPUState to kvm_vcpu_ioctl()

2012-12-15 Thread Andreas Färber
Adapt helper functions to pass X86CPU / PowerPCCPU / S390CPU. Signed-off-by: Andreas Färber afaer...@suse.de --- hw/kvm/apic.c | 10 +-- hw/kvm/clock.c |2 +- hw/ppc.c |2 +- hw/s390-virtio-bus.c | 12 ++-- hw/spapr.c

[PATCH v2 07/11] ppc_booke: Pass PowerPCCPU to {decr,fit,wdt} timer callbacks

2012-12-15 Thread Andreas Färber
Cleans up after passing PowerPCCPU to booke_update_irq(). Signed-off-by: Andreas Färber afaer...@suse.de --- hw/ppc_booke.c | 23 ++- 1 Datei geändert, 10 Zeilen hinzugefügt(+), 13 Zeilen entfernt(-) diff --git a/hw/ppc_booke.c b/hw/ppc_booke.c index da6bc4a..5748063

[PATCH v2 09/11] ppc_booke: Pass PowerPCCPU to ppc_booke_timers_init()

2012-12-15 Thread Andreas Färber
Cleans up after passing PowerPCCPU to timer callbacks. Signed-off-by: Andreas Färber afaer...@suse.de --- hw/ppc.h |2 +- hw/ppc/e500.c |2 +- hw/ppc405_uc.c |2 +- hw/ppc440_bamboo.c |2 +- hw/ppc_booke.c |5 ++--- hw/virtex_ml507.c |2 +- 6

[PATCH v2 10/11] cpu: Move kvm_state field into CPUState

2012-12-15 Thread Andreas Färber
Adapt some functions to take CPUState / {PowerPC,S390}CPU argument. Signed-off-by: Andreas Färber afaer...@suse.de --- cpu-defs.h |2 -- include/qemu/cpu.h |3 +++ kvm-all.c | 28 ++-- kvm.h |4 ++-- target-i386/cpu.c |7

[PATCH v2 11/11] cpu: Move kvm_run into CPUState

2012-12-15 Thread Andreas Färber
Pass CPUState / {X86,S390}CPU to helper functions. Signed-off-by: Andreas Färber afaer...@suse.de --- cpu-defs.h |4 +-- include/qemu/cpu.h |2 ++ kvm-all.c |8 +++--- target-i386/kvm.c |9 +++--- target-s390x/kvm.c | 77

[PATCH v2 08/11] ppc4xx_devs: Return PowerPCCPU from ppc4xx_init()

2012-12-15 Thread Andreas Färber
Prepares for passing PowerPCCPU to ppc_booke_timers_init(). Signed-off-by: Andreas Färber afaer...@suse.de --- hw/ppc405_uc.c |8 ++-- hw/ppc4xx.h |6 +++--- hw/ppc4xx_devs.c |8 3 Dateien geändert, 13 Zeilen hinzugefügt(+), 9 Zeilen entfernt(-) diff --git a/hw

[PATCH qom-cpu 4/4] target-ppc: Error out for -cpu host on unknown PVR

2012-12-17 Thread Andreas Färber
Previously we silently exited, with subclasses we got an opcode warning. Instead explicitly tell the user what's wrong. An indication for this is -cpu ? showing host with an all-zero PVR. Signed-off-by: Andreas Färber afaer...@suse.de --- target-ppc/kvm.c |7 +++ 1 Datei geändert, 7

[PATCH qom-cpu 3/4] target-ppc: Slim conversion of model definitions to QOM subclasses

2012-12-17 Thread Andreas Färber
. Turn kvmppc_host_cpu_def() into the class_init and add an initfn that asserts KVM is in fact enabled. Implement -cpu ? and the QMP equivalent in terms of subclasses. This newly exposes -cpu host to the user, ordered last for -cpu ?. Signed-off-by: Andreas Färber afaer...@suse.de --- target-ppc

Re: [Qemu-devel] [PATCH v2 00/11] QOM CPUState, part 6: CPU_COMMON for KVM

2012-12-18 Thread Andreas Färber
Am 16.12.2012 01:13, schrieb Andreas Färber: Here's a rebased version of the series moving KVM-specific fields from CPU*State struct (CPU_COMMON macro) to QOM CPUState and avoiding use of CPU*State in KVM's API. There was no review feedback on v1, which I'm interpreting as a don't-care

Re: [Qemu-devel] [PATCH qom-cpu 3/4] target-ppc: Slim conversion of model definitions to QOM subclasses

2012-12-18 Thread Andreas Färber
Am 18.12.2012 08:53, schrieb Andreas Färber: +static gint ppc_cpu_compare_class_name(gconstpointer a, gconstpointer b) +{ +ObjectClass *oc = (ObjectClass *)a; +const char *name = b; -return NULL; +if (strncasecmp(name, object_class_get_name(oc), strlen(name)) == 0

[PATCH 09/20] cpu: Move kvm_fd into CPUState

2012-12-19 Thread Andreas Färber
Signed-off-by: Andreas Färber afaer...@suse.de --- cpu-defs.h |1 - include/qemu/cpu.h |5 + kvm-all.c |8 +--- 3 Dateien geändert, 10 Zeilen hinzugefügt(+), 4 Zeilen entfernt(-) diff --git a/cpu-defs.h b/cpu-defs.h index 3669241..6373a80 100644 --- a/cpu

[PATCH 19/20] cpu: Move kvm_run into CPUState

2012-12-19 Thread Andreas Färber
Pass CPUState / {X86,S390}CPU to helper functions. Signed-off-by: Andreas Färber afaer...@suse.de --- cpu-defs.h |4 +-- include/qemu/cpu.h |2 ++ kvm-all.c |8 +++--- target-i386/kvm.c |9 +++--- target-s390x/kvm.c | 77

[PATCH 18/20] cpu: Move kvm_state field into CPUState

2012-12-19 Thread Andreas Färber
Adapt some functions to take CPUState / {PowerPC,S390}CPU argument. Signed-off-by: Andreas Färber afaer...@suse.de --- cpu-defs.h |2 -- include/qemu/cpu.h |3 +++ kvm-all.c | 28 ++-- kvm.h |4 ++-- target-i386/cpu.c |7

[PATCH 10/20] kvm: Pass CPUState to kvm_arch_*

2012-12-19 Thread Andreas Färber
Move kvm_vcpu_dirty field into CPUState to simplify things and change its type to bool while at it. Signed-off-by: Andreas Färber afaer...@suse.de --- cpu-defs.h |3 +-- include/qemu/cpu.h |1 + kvm-all.c | 75 ++-- kvm.h

[PATCH 11/20] kvm: Pass CPUState to kvm_vcpu_ioctl()

2012-12-19 Thread Andreas Färber
Adapt helper functions to pass X86CPU / PowerPCCPU / S390CPU. Signed-off-by: Andreas Färber afaer...@suse.de --- hw/kvm/apic.c | 10 +-- hw/kvm/clock.c |2 +- hw/ppc.c |2 +- hw/s390-virtio-bus.c | 12 ++-- hw/spapr.c

[PATCH qom-cpu 5/7] kvm: Pass CPUState to kvm_init_vcpu()

2012-12-19 Thread Andreas Färber
CPUArchState is no longer needed, and it thereby no longer depends on NEED_CPU_H. Signed-off-by: Andreas Färber afaer...@suse.de --- cpus.c |2 +- kvm-all.c |3 +-- kvm-stub.c |2 +- kvm.h |5 +++-- 4 Dateien geändert, 6 Zeilen hinzugefügt(+), 6 Zeilen entfernt(-) diff

[PATCH qom-cpu 4/7] cpu: Move cpu_index field to CPUState

2012-12-19 Thread Andreas Färber
Note that target-alpha accesses this field from TCG, now using a negative offset. Therefore the field is placed last in CPUState. Pass PowerPCCPU to [kvm]ppc_fixup_cpu() to facilitate this change. Move common parts of mips cpu_state_reset() to mips_cpu_reset(). Signed-off-by: Andreas Färber

Re: [Qemu-devel] [PATCH v3] qemu-kvm/pci-assign: 64 bits bar emulation

2012-12-23 Thread Andreas Färber
Am 20.12.2012 04:07, schrieb Xudong Hao: Enable 64 bits bar emulation. v3 changes from v2: - Leave original error string and drop the leading 016. v2 changes from v1: - Change 0lx% to 0x%016 when print a 64 bit variable. Test pass with the current seabios which already support 64bit

Re: [Qemu-devel] [PATCH 1/2] target-i386: kvm: -cpu host: use GET_SUPPORTED_CPUID for SVM features

2013-01-02 Thread Andreas Färber
Am 28.12.2012 19:37, schrieb Eduardo Habkost: The existing -cpu host code simply set every bit inside svm_features (initializing it to -1), and that makes it impossible to make the enforce/check options work properly when the user asks for SVM features explicitly in the command-line. So,

Re: [Qemu-devel] [PATCH 0/2] Fixes for -cpu host KVM/SVM feature initialization

2013-01-02 Thread Andreas Färber
Am 28.12.2012 19:37, schrieb Eduardo Habkost: This series has two very similar fixes for feature initizliation for -cpu host. This should allow us to make the check/enforce code check for host support of KVM and SVM features, later. I am out of my field here to verify whether this is

[PATCH ppc-next v2 1/2] target-ppc: Slim conversion of model definitions to QOM subclasses

2013-01-06 Thread Andreas Färber
. Turn kvmppc_host_cpu_def() into the class_init and add an initfn that asserts KVM is in fact enabled. Implement -cpu ? and the QMP equivalent in terms of subclasses. This newly exposes -cpu host to the user, ordered last for -cpu ?. Signed-off-by: Andreas Färber afaer...@suse.de --- target-ppc

[PATCH ppc-next v2 2/2] target-ppc: Error out for -cpu host on unknown PVR

2013-01-06 Thread Andreas Färber
Previously we silently exited, with subclasses we got an opcode warning. Instead, explicitly tell the user what's wrong. An indication for this is -cpu ? showing host with an all-zero PVR. Signed-off-by: Andreas Färber afaer...@suse.de --- target-ppc/kvm.c |8 1 Datei geändert, 8

Re: [Qemu-devel] [PATCH qom-cpu 00/11] disable-kvm_mmu + -cpu check/enforce fixes (v2)

2013-01-07 Thread Andreas Färber
Am 04.01.2013 23:01, schrieb Eduardo Habkost: Eduardo Habkost (11): [...] target-i386: kvm: -cpu host: Use GET_SUPPORTED_CPUID for SVM features target-i386: kvm: Enable all supported KVM features for -cpu host target-i386: check/enforce: Fix CPUID leaf numbers on error messages

Re: [Qemu-devel] KVM call agenda for tuesday 31

2012-08-08 Thread Andreas Färber
Am 31.01.2012 15:01, schrieb Mitsyanko Igor: On 01/31/2012 05:15 PM, Andreas Färber wrote: Am 31.01.2012 00:53, schrieb Anthony Liguori: On 01/30/2012 05:41 PM, Andreas Färber wrote: Am 30.01.2012 19:55, schrieb Juan Quintela: Please send in any agenda items you are interested in covering

Re: [Qemu-devel] [PATCH 4/4] kvm: i386: Add classic PCI device assignment

2012-08-27 Thread Andreas Färber
Hi, Am 27.08.2012 08:28, schrieb Jan Kiszka: From: Jan Kiszka jan.kis...@siemens.com This adds PCI device assignment for i386 targets using the classic KVM interfaces. This version is 100% identical to what is being maintained in qemu-kvm for several years and is supported by libvirt as

Re: [Qemu-devel] KVM call agenda for Tuesda, August 28th

2012-08-28 Thread Andreas Färber
Am 28.08.2012 16:27, schrieb Eduardo Habkost: On Tue, Aug 28, 2012 at 02:55:56PM +0100, Peter Maydell wrote: On 28 August 2012 14:30, Eduardo Habkost ehabk...@redhat.com wrote: - 1.2 branching, or creation of a cpu-next tree where good to be merged patches can live until 1.2 is done; With

Re: [Qemu-devel] [PATCH 4/4] kvm: i386: Add classic PCI device assignment

2012-08-29 Thread Andreas Färber
Am 28.08.2012 14:57, schrieb Anthony Liguori: Andreas Färber afaer...@suse.de writes: Hi, Am 27.08.2012 08:28, schrieb Jan Kiszka: From: Jan Kiszka jan.kis...@siemens.com This adds PCI device assignment for i386 targets using the classic KVM interfaces. This version is 100% identical

Re: [Qemu-devel] [PATCH] target-i386: Allow changing of Hypervisor CPUIDs.

2012-09-06 Thread Andreas Färber
Am 30.08.2012 21:20, schrieb Don Slutz: This is primarily done so that the guest will think it is running under vmware when hypervisor=vmware is specified as a property of a cpu. Also allow this to work in accel=tcg mode. The new cpu properties hyper_level, hyper_extra, hyper_extra_a, and

Re: [PATCH v3 4/4] kvm: i386: Add classic PCI device assignment

2012-09-06 Thread Andreas Färber
Am 06.09.2012 10:44, schrieb Jan Kiszka: On 2012-08-30 20:30, Jan Kiszka wrote: This adds PCI device assignment for i386 targets using the classic KVM interfaces. This version is 100% identical to what is being maintained in qemu-kvm for several years and is supported by libvirt as well. It is

Re: [Qemu-devel] [PATCH 4/4] kvm: i386: Add classic PCI device assignment

2012-09-10 Thread Andreas Färber
Am 05.09.2012 22:46, schrieb Anthony Liguori: What do we do when the FSF comes out with the GPLv4 and relicenses again in an incompatible fashion? Do we do this exercise every couple of years? That's exactly why I suggested GPLv2+ because it was supposed to be a preparation for the future.

Re: [Qemu-devel] [PATCH] kvm: Set default accelerator to kvm if the host supports it

2012-10-01 Thread Andreas Färber
Hello Jan, Am 01.10.2012 16:34, schrieb Jan Kiszka: If we built a target for a host that supports KVM in principle, set the default accelerator to KVM as well. This also means the start of QEMU will fail to start if KVM support turns out to be unavailable at runtime. From a distro point of

Re: [Qemu-devel] [patch 2/6] Use machine options to emulate -no-kvm-irqchip

2012-10-04 Thread Andreas Färber
Am 04.10.2012 16:30, schrieb Jan Kiszka: On 2012-10-04 16:21, Anthony Liguori wrote: -no-kvm should be included too. Reminds me that we still need to agree on the final default accel strategy. I just ran across a user that was injecting '-no-kvm-irqchip' in their libvirt XML via a custom

Re: [Qemu-devel] [patch 2/6] Use machine options to emulate -no-kvm-irqchip

2012-10-04 Thread Andreas Färber
Am 04.10.2012 18:04, schrieb Jan Kiszka: On 2012-10-04 17:36, Andreas Färber wrote: Am 04.10.2012 16:30, schrieb Jan Kiszka: On 2012-10-04 16:21, Anthony Liguori wrote: - avoid adding them to the help or other user documentation That's dangerous - at some point someone will notice

Re: [Qemu-devel] [PATCH] kvm: Set default accelerator to kvm if the host supports it

2012-10-08 Thread Andreas Färber
Am 05.10.2012 04:24, schrieb Alexander Graf: On 05.10.2012, at 04:17, Anthony Liguori wrote: Alexander Graf ag...@suse.de writes: On 03.10.2012, at 22:26, Peter Maydell wrote: On 3 October 2012 21:01, Blue Swirl blauwir...@gmail.com wrote: On Mon, Oct 1, 2012 at 4:20 PM, Anthony Liguori

[PULL stable-0.15] Stable-0.15 queue for qemu-kvm

2012-10-09 Thread Andreas Färber
Hello Marcelo, Here's a couple of backports for your stable-0.15 branch. Except for one (marked as backported) these were all clean cherry-picks. My proposal is to merge these KVM-only patches before qemu-stable-0.15.git, where I will be tagging v0.15.2 shortly. Cc: Marcelo Tosatti

[PATCH stable-0.15 1/6] qemu-kvm: fix improper nmi emulation

2012-10-09 Thread Andreas Färber
-by: Lai Jiangshan la...@cn.fujitsu.com Reported-by: Kenji Kaneshige kaneshige.ke...@jp.fujitsu.com Signed-off-by: Avi Kivity a...@redhat.com (cherry picked from commit 67feec6ed854b3618b37ccf050b90192cbb96e0f) Signed-off-by: Andreas Färber afaer...@suse.de --- hw/apic.c | 33

[PATCH stable-0.15 2/6] pci-assign: Fix PCI_EXP_FLAGS_TYPE shift

2012-10-09 Thread Andreas Färber
Signed-off-by: Avi Kivity a...@redhat.com (cherry picked from commit b4eccd18591f3d639bc3c923e299b3c1241a0b3f) Signed-off-by: Andreas Färber afaer...@suse.de --- hw/device-assignment.c |2 +- 1 Datei geändert, 1 Zeile hinzugefügt(+), 1 Zeile entfernt(-) diff --git a/hw/device-assignment.c b/hw

[PATCH stable-0.15 3/6] pci-assign: Fix PCIe lnkcap

2012-10-09 Thread Andreas Färber
21f5a19a10c8f6a10d79a415bf640de85acede78) [AF: Backported] Signed-off-by: Andreas Färber afaer...@suse.de --- hw/device-assignment.c |8 1 Datei geändert, 4 Zeilen hinzugefügt(+), 4 Zeilen entfernt(-) diff --git a/hw/device-assignment.c b/hw/device-assignment.c index dc41bfd..c4c2535 100644

[PATCH stable-0.15 5/6] pci-assign: Update legacy interrupts only if used

2012-10-09 Thread Andreas Färber
096392efe1e5ee670f880c96c31f7ea8d6d76cf4) Signed-off-by: Andreas Färber afaer...@suse.de --- hw/device-assignment.c |9 ++--- 1 Datei geändert, 6 Zeilen hinzugefügt(+), 3 Zeilen entfernt(-) diff --git a/hw/device-assignment.c b/hw/device-assignment.c index d586ce4..43029a4 100644 --- a/hw/device

[PATCH stable-0.15 4/6] pci-assign: Harden I/O port test

2012-10-09 Thread Andreas Färber
at a stale errno. Signed-off-by: Alex Williamson alex.william...@redhat.com Signed-off-by: Avi Kivity a...@redhat.com (cherry picked from commit 1d1c8a498b7ce5c5636f1014f7ad18aa4e1acc0a) Signed-off-by: Andreas Färber afaer...@suse.de --- hw/device-assignment.c |5 +++-- 1 Datei geändert, 3

[PATCH stable-0.15 6/6] pci-assign: Remove bogus PCIe lnkcap wmask setting

2012-10-09 Thread Andreas Färber
. Signed-off-by: Alex Williamson alex.william...@redhat.com Signed-off-by: Avi Kivity a...@redhat.com (cherry picked from commit 0cbb68b1ce40e9b7e0b8cea5fd849f5c6bd09aee) Signed-off-by: Andreas Färber afaer...@suse.de --- hw/device-assignment.c |6 +- 1 Datei geändert, 1 Zeile hinzugefügt

Re: [Qemu-devel] [PATCH] Warn if a qcow (not qcow2) file is opened

2009-07-01 Thread Andreas Färber
Am 30.06.2009 um 15:32 schrieb Anthony Liguori: Kevin Wolf wrote: Avi Kivity schrieb: The qcow block driver format is no longer maintained and likely contains serious data corruptors. Urge users to stay away for it, and advertise the new and improved replacement. Signed-off-by: Avi

Re: [Qemu-devel] [PULL 00/20 1.2] kvm updates

2012-06-04 Thread Andreas Färber
Am 04.06.2012 07:46, schrieb Anthony Liguori: On 05/22/2012 12:37 AM, Avi Kivity wrote: Please pull from: git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git uq/master Pulled. Thanks. This broke the ppc build. Guys, why wasn't this tested? There's only three KVM targets to test compared

[PATCH 26/74] target-i386: Pass X86CPU to do_cpu_{init,sipi}()

2012-06-04 Thread Andreas Färber
Allows to use cpu_reset() in place of cpu_state_reset(). Signed-off-by: Andreas Färber afaer...@suse.de Reviewed-by: Igor Mammedov imamm...@redhat.com --- cpu-exec.c |4 ++-- target-i386/cpu.h|4 ++-- target-i386/helper.c | 13 - target-i386/kvm.c|6

Re: [Qemu-devel] [PULL 00/20 1.2] kvm updates

2012-06-04 Thread Andreas Färber
Am 05.06.2012 03:58, schrieb Anthony Liguori: Is build bot running against uq/master? If it's not, maybe we should add it to build bot to catch this sort of thing. That's a question for Stefan and Daniel to answer. Regards, Andreas -- SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg,

[PATCH 27/27] target-s390x: Pass S390CPU to s390_cpu_restart()

2012-06-10 Thread Andreas Färber
Needed for qemu_cpu_kick(). Signed-off-by: Andreas Färber afaer...@suse.de --- target-s390x/kvm.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/target-s390x/kvm.c b/target-s390x/kvm.c index 2153e38..5800fd6 100644 --- a/target-s390x/kvm.c +++ b/target-s390x/kvm.c

[PATCH 26/27] s390-virtio: Let s390_cpu_addr2state() return S390CPU

2012-06-10 Thread Andreas Färber
Convert ipi_states to S390CPU**. Needed for s390_cpu_restart() in handle_sigp(). Signed-off-by: Andreas Färber afaer...@suse.de --- hw/s390-virtio-bus.c |6 -- hw/s390-virtio.c |8 target-s390x/cpu.h |2 +- target-s390x/kvm.c |6 -- 4 files changed, 13

Re: [Qemu-devel] [PATCH] Fixes related to processing of qemu's -numa option

2012-06-18 Thread Andreas Färber
Am 17.06.2012 22:12, schrieb Chegu Vinod: diff --git a/vl.c b/vl.c index 204d85b..1906412 100644 --- a/vl.c +++ b/vl.c @@ -28,6 +28,7 @@ #include errno.h #include sys/time.h #include zlib.h +#include sched.h Did you check whether this and the macros you're using are available on POSIX

Re: [Qemu-devel] [PATCH] spapr_vscsi: Error handling fixes

2012-06-19 Thread Andreas Färber
Am 19.06.2012 08:02, schrieb Benjamin Herrenschmidt: We were incorrectly g_free'ing an object that isn't allocated in one error path and failed to release it completely in another This fixes qemu crashes with some cases of IO errors. Signed-off-by: Benjamin Herrenschmidt

  1   2   3   4   >