Re: vmx real mode emulated mmio?

2012-12-15 Thread Gleb Natapov
On Fri, Dec 14, 2012 at 04:42:36PM -0700, Alex Williamson wrote: > > I don't really know what I'm doing messing around with realmode > exception handling, but are we missing something like this: > > --- a/arch/x86/kvm/vmx.c > +++ b/arch/x86/kvm/vmx.c > @@ -4332,7 +4332,8 @@ static int handle_exce

Re: DMAR and DRHD errors[DMAR:[fault reason 06] PTE Read access is not set] Vt-d & intel_iommu

2012-12-15 Thread Jason Gao
On Sat, Dec 15, 2012 at 5:54 AM, Don Dutile wrote: > mptsas or smi fw has to be different this server: # inventory_firmware Wait while we inventory system: System inventory: BIOS = 6.3.0 SAS/SATA Backplane 0:0 Backplane Firmware = 1.07 PERC 6/i Integrated Controller 0 F

Re: DMAR and DRHD errors[DMAR:[fault reason 06] PTE Read access is not set] Vt-d & intel_iommu

2012-12-15 Thread Jason Gao
On Sat, Dec 15, 2012 at 5:55 AM, Don Dutile wrote: > forgot: did you check that all the bios settings are the same btwn > the 710 systems? Bios settings should be the same between servers, I'v ignored these errors and run KVM on this server,deployed non-critical java production applicati

Re: Memory leak in vmx.c

2012-12-15 Thread Jan Kiszka
On 2012-12-10 19:36, Andrew Honig wrote: > Jan, > > Thanks for taking a look at that for me. It still looks like it leaks > to me. Could you point me to the actual free? In > kvm_arch_destroy_vm, it calls put_page on apic_access_page and > ept_identity_pagetable, but that doesn't actually free

[user question] Opinions about running Windows in KVM

2012-12-15 Thread Marc Haber
Hi, I am a heavy user of virtualization in my private zoo of systems. My main Operating System is Debian, and I am running a multitude of other Linuxen inside KVM, and also a handful of Windows systems that are still using VirtualBox. However, VirtualBox has losing attractivity since there are is

Re: vmx real mode emulated mmio?

2012-12-15 Thread Alex Williamson
On Sat, 2012-12-15 at 10:07 +0200, Gleb Natapov wrote: > On Fri, Dec 14, 2012 at 04:42:36PM -0700, Alex Williamson wrote: > > > > I don't really know what I'm doing messing around with realmode > > exception handling, but are we missing something like this: > > > > --- a/arch/x86/kvm/vmx.c > > ++

Re: vmx real mode emulated mmio?

2012-12-15 Thread Gleb Natapov
On Sat, Dec 15, 2012 at 08:54:22AM -0700, Alex Williamson wrote: > On Sat, 2012-12-15 at 10:07 +0200, Gleb Natapov wrote: > > On Fri, Dec 14, 2012 at 04:42:36PM -0700, Alex Williamson wrote: > > > > > > I don't really know what I'm doing messing around with realmode > > > exception handling, but a

Re: DMAR and DRHD errors[DMAR:[fault reason 06] PTE Read access is not set] Vt-d & intel_iommu

2012-12-15 Thread Robert Hancock
On 12/14/2012 03:32 PM, Don Dutile wrote: On 12/13/2012 04:50 AM, Jason Gao wrote: Dear List: Description of problem: After installed Centos 6.3(RHEL6.3) on my Dell R710(lastest bios:Version: 6.3.0,Release Date: 07/24/2012) server,and updated lastest kernel "2.6.32-279.14.1.el6.x86_64",I want t

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

2012-12-15 Thread Andreas Färber
Hello, 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. If no one objects, I will thus include it in my

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

2012-12-15 Thread Andreas Färber
Signed-off-by: Andreas Färber --- 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-defs.h +++ b/cpu-def

[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 --- 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 --- 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/ppc.c +++ b/hw/ppc.c

[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 --- 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..b1b93a1 100644 -

[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 --- hw/ppc.c | 66 ++-- hw/ppc.h |2 +- hw/ppc_booke.c | 28 3 Dateien

[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 --- hw/kvm/apic.c | 10 +-- hw/kvm/clock.c |2 +- hw/ppc.c |2 +- hw/s390-virtio-bus.c | 12 ++-- hw/spapr.c |2 +- kvm-all

[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 --- 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 100644 --- a/hw/ppc_bo

[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 --- 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 Dateien geändert, 7 Ze

[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 --- cpu-defs.h |2 -- include/qemu/cpu.h |3 +++ kvm-all.c | 28 ++-- kvm.h |4 ++-- target-i386/cpu.c |7 +-- target-i38

[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 --- cpu-defs.h |4 +-- include/qemu/cpu.h |2 ++ kvm-all.c |8 +++--- target-i386/kvm.c |9 +++--- target-s390x/kvm.c | 77 5

[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 --- 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/ppc405_uc.c b/hw/p