Re: [PATCH 08/10] Move IO APIC to its own lock.

2009-07-16 Thread Gleb Natapov
On Thu, Jul 16, 2009 at 03:09:30PM -0300, Marcelo Tosatti wrote: On Thu, Jul 16, 2009 at 10:51:16AM +0300, Gleb Natapov wrote: On Wed, Jul 15, 2009 at 06:38:48PM -0300, Marcelo Tosatti wrote: On Wed, Jul 15, 2009 at 11:48:17PM +0300, Gleb Natapov wrote: +

Re: Qemu 0.10.50 CAN NOT get ip from dhcp server

2009-07-16 Thread John Wong
Amit Shah 提到: Is the host a 64-bit host and are you running a 64 bit kernel on the host? Yes, the host is Debian/64-bit/kernel-2.6.30. John Wong 提到: My host system is(uname -a): Linux Debian 2.6.30-1-amd64 #1 SMP Wed Jul 8 12:20:34 UTC 2009 x86_64 GNU/Linux My cpu is Intel core2duo

Set the iothread's eventfd/pipe descriptors to non-blocking

2009-07-16 Thread Dor Laor
It replaces the previous fix of using select. From ab5ae4bb69f8ab6c9a476f7823cb8d6729d31594 Mon Sep 17 00:00:00 2001 From: Dor Laor d...@redhat.com Date: Wed, 15 Jul 2009 17:53:16 +0300 Subject: [PATCH] Set the iothread's eventfd/pipe descriptors to non-blocking. It fixes migration issue when

Re: KVM for Linux 2.6.16?

2009-07-16 Thread Anthony Liguori
Fischer, Anna wrote: Hi, I am trying to compile the kvm-87 module for Linux 2.6.16. I thought that it has been back-ported to such an old kernel. However, I don't seem to be able to compile the module on my kernel. I get the following error: CCtsc2005.o CCscsi-disk.o CC

Re: [Qemu-devel] [PATCH] rev3: support colon in filenames

2009-07-16 Thread Paul Brook
So I propose this as a universal quoting scheme: \char where char is not ASCII alphanumeric. No thank you. This sounds dangerously like the windows command shell quoting rules. At first clance they appear to just work, however when you actually try to figure out what's going on it gets

Re: [KVM PATCH] KVM: introduce xinterface API for external interaction with guests

2009-07-16 Thread Gregory Haskins
Arnd Bergmann wrote: On Thursday 16 July 2009, Gregory Haskins wrote: Arnd Bergmann wrote: Your approach allows passing the vmid from a process that does not own the kvm context. This looks like an intentional feature, but I can't see what this gains us. This work is

Re: [PATCH 3/3] Update VMX_EPT_IDENTITY_PAGETABLE_ADDR to synchronize with kernel code.

2009-07-16 Thread Yang, Sheng
On Friday 17 July 2009 03:14:54 Marcelo Tosatti wrote: On Thu, Jul 16, 2009 at 11:48:46AM -0700, Jordan Justen wrote: On Thu, 2009-07-16 at 11:18 -0700, Marcelo Tosatti wrote: On Thu, Jul 16, 2009 at 11:02:22AM -0700, Jordan Justen wrote: Although VMX_EPT_IDENTITY_PAGETABLE_ADDR does not

Failed to compile kvm-88

2009-07-16 Thread Jun Koi
Hi, I am trying to compile kvm-88, like followings: ./configure --disable-xen make Then I get following errors. Why do I have such a problem, if I already disalbe Xen support, like above? How to fix this problem? Thanks lot, J  CC    x86_64-softmmu/disas.o  CC    

Re: Failed to compile kvm-88

2009-07-16 Thread Sheng Yang
On Friday 17 July 2009 11:34:03 Jun Koi wrote: Hi, I am trying to compile kvm-88, like followings: ./configure --disable-xen make Then I get following errors. Why do I have such a problem, if I already disalbe Xen support, like above? How to fix this problem? Comment out all XEN related

How much physical memory can be used to run domains in a KVM machine?

2009-07-16 Thread Zhang Qian
Hi, I have a KVM box which has 4GB physical memory totally, I'd like to know how much I can use to run my domains, and how much will be reserved by hypervisor(KVM) itself? Thanks! Regards, Qian -- To unsubscribe from this list: send the line unsubscribe kvm in the body of a message to

Re: Failed to compile kvm-88

2009-07-16 Thread Jun Koi
On Fri, Jul 17, 2009 at 2:45 PM, Sheng Yangsh...@linux.intel.com wrote: On Friday 17 July 2009 11:34:03 Jun Koi wrote: Hi, I am trying to compile kvm-88, like followings: ./configure --disable-xen make Then I get following errors. Why do I have such a problem, if I already disalbe Xen

[PATCH 04/23] Add asm/kvm_book3s.h

2009-07-16 Thread Alexander Graf
This adds the book3s specific header file that contains structs that are only valid on book3s specific code. Signed-off-by: Alexander Graf ag...@suse.de --- arch/powerpc/include/asm/kvm_book3s.h | 131 + 1 files changed, 131 insertions(+), 0 deletions(-) create

[PATCH 05/23] Add Book3s_64 intercept helpers

2009-07-16 Thread Alexander Graf
We need to intercept interrupt vectors. To do that, let's add a file we can always include which only activates the intercepts when we have then configured. Signed-off-by: Alexander Graf ag...@suse.de --- arch/powerpc/include/asm/kvm_book3s_64_asm.h | 58 ++ 1 files

[PATCH 07/23] Add SLB switching code for entry/exit

2009-07-16 Thread Alexander Graf
This is the really low level of guest entry/exit code. Usually the Linux kernel resides in virtual memory 0xc000 to 0x. These addresses are mapped into every userspace application. When going into a 32 bit guest, this is perfectly fine. That one can't access memory

[PATCH 08/23] Add interrupt handling code

2009-07-16 Thread Alexander Graf
Getting from host state to the guest is only half the story. We also need to return to our host context and handle whatever happened to get us out of the guest. On PowerPC every guest exit is an interrupt. So all we need to do is trap the host's interrupt handlers and get into our #VMEXIT code to

[PATCH 10/23] Add book3s_64 Host MMU handling

2009-07-16 Thread Alexander Graf
We designed the Book3S port of KVM as modular as possible. Most of the code could be easily used on a Book3S_32 host as well. The main difference between 32 and 64 bit cores is the MMU. To keep things well separated, we treat the book3s_64 MMU as one possible compile option. This patch adds all

[PATCH 11/23] Add book3s_64 guest MMU

2009-07-16 Thread Alexander Graf
To be able to run a guest, we also need to implement a guest MMU. This patch adds MMU handling for Book3s_64 guests. Signed-off-by: Alexander Graf ag...@suse.de --- arch/powerpc/kvm/book3s_64_mmu.c | 466 ++ 1 files changed, 466 insertions(+), 0 deletions(-)

[PATCH 12/23] Add book3s_32 guest MMU

2009-07-16 Thread Alexander Graf
This patch adds an implementation for a G3/G4 MMU, so we can run G3 and G4 guests in KVM on Book3s_64. Signed-off-by: Alexander Graf ag...@suse.de --- arch/powerpc/kvm/book3s_32_mmu.c | 357 ++ 1 files changed, 357 insertions(+), 0 deletions(-) create mode

[PATCH 13/23] Add book3s_64 specific opcode emulation

2009-07-16 Thread Alexander Graf
There are generic parts of PowerPC that can be shared across all implementations and specific parts that only apply to BookE or desktop PPCs. This patch adds emulation for desktop specific opcodes that don't apply to BookE CPUs. Signed-off-by: Alexander Graf ag...@suse.de ---

[PATCH 14/23] Add mfdec emulation

2009-07-16 Thread Alexander Graf
We support setting the DEC to a certain value right now. Doing that basically triggers the CPU local timer. But there's also an mfdec command that enabled the OS to read the decrementor. This is required at least by all desktop and server PowerPC Linux kernels. It can't really hurt to allow

[PATCH 15/23] Add desktop PowerPC specific emulation

2009-07-16 Thread Alexander Graf
Little opcodes behave differently on desktop and embedded PowerPC cores. In order to reflect those differences, let's add some #ifdef code to emulate.c. We could probably also handle them in the core specific emulation files, but I would prefer to reuse as much code as possible. Signed-off-by:

[PATCH 17/23] Patch SLB size

2009-07-16 Thread Alexander Graf
We need to loop through the SLB several times when switching from guest to host or vice versa. We only really know the SLB size of the system we're running on on bootup. Linux patches its own assembly code on bootup to know how big its SLB is. Let's just take that code and patch our own assembly

[PATCH 18/23] Add Book3s_64 offsets to asm-offsets.c

2009-07-16 Thread Alexander Graf
We need to access some VCPU fields from assembly code. In order to get the proper offsets, we have to define them in asm-offsets.c. Signed-off-by: Alexander Graf ag...@suse.de --- arch/powerpc/kernel/asm-offsets.c | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff

[PATCH 19/23] Export symbols for KVM module

2009-07-16 Thread Alexander Graf
We want to be able to build KVM as a module. To enable us doing so, we need some more exports from core Linux parts. This patch exports all functions and variables that are required for KVM. Signed-off-by: Alexander Graf ag...@suse.de --- arch/powerpc/kernel/ppc_ksyms.c |3 ++-

[PATCH 22/23] Fix trace.h

2009-07-16 Thread Alexander Graf
It looks like the variable pc is defined. At least the current code always failed on me stating that pc is already defined somewhere else. Let's use _pc instead, because that doesn't collide. Is this the right approach? Does it break on 440 too? If not, why not? Signed-off-by: Alexander Graf

[PATCH 23/23] Hack in dirty logging for VGA

2009-07-16 Thread Alexander Graf
I haven't implemented dirty logging yet, but without things are just way too slow. So for the time being I hacked in a dummy function that always tells userspace we're dirty in VGA regions. Please don't apply this. This patch is for reference only. Signed-off-by: Alexander Graf ag...@suse.de ---

[PATCH 21/23] Include Book3s_64 target in buildsystem

2009-07-16 Thread Alexander Graf
Now we have everything in place to be able to build KVM, so let's add it as config option and in the Makefile. Signed-off-by: Alexander Graf ag...@suse.de --- arch/powerpc/kvm/Kconfig | 17 + arch/powerpc/kvm/Makefile | 27 +++ 2 files changed, 40

<    1   2