Re: [kvm-devel] [kvm-ppc-devel] [PATCH] RFC:Use CONFIG_HAS_IOPORTaround vcpu-pio_data

2007-12-04 Thread Dong, Eddie
It's a matter of perspective. :) The PowerPC architecture has no IO instructions; therefore all IO accesses are MMIO. However, you can place devices with IO ports in a PowerPC system. In this case, the bridges are configured to translate MMIO accesses coming from the processor into IO port

Re: [kvm-devel] [PATCH][4/5] kvm: libkvm: Moving set and get shadow pages functions to arch x86

2007-12-04 Thread Avi Kivity
Zhang, Xiantao wrote: From: Zhang Xiantao [EMAIL PROTECTED] Date: Mon, 3 Dec 2007 22:06:04 +0800 Subject: [PATCH] kvm: libkvm. Moving set and get shadow pages to x86 arch. Move kvm_setget_shadow_pages to arch-x86 for libkvm Signed-off-by: Zhang Xiantao [EMAIL PROTECTED] Please put a

Re: [kvm-devel] [PATCH][0/5] kvm:libkvm : KVM/IA64 libkvmfor ia64

2007-12-04 Thread Avi Kivity
Zhang, Xiantao wrote: Hi, Avi These patches enable libkvm built successfully for ia64. This is the preparation support for kvm/ia64. It will help us to reduce the maintain effor once check-in. I will send the subsequent patches to enable ia64 userspace support. [1/5] Update

[kvm-devel] [PATCH 4/7] KVM: Use generalized exception queue for injecting #UD

2007-12-04 Thread Avi Kivity
Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- drivers/kvm/svm.c | 12 ++-- drivers/kvm/vmx.c | 11 +-- 2 files changed, 3 insertions(+), 20 deletions(-) diff --git a/drivers/kvm/svm.c b/drivers/kvm/svm.c index b896614..8b1cc60 100644 --- a/drivers/kvm/svm.c +++

Re: [kvm-devel] [PATCH] [0/10]Patches to split qemu-kvm.c

2007-12-04 Thread Avi Kivity
Zhang, Xiantao wrote: Hi, Avi This series of patches are introduced to split qemu-kvm.c, and make it arch-independent. In these patches, one file called qemu-kvm-x86.c is created. For arch-specific stuff, I also use kvm_arch prefix to hold arch-specific code. Tested on x86 and x86_64

[kvm-devel] [PATCH 0/7] Rework irq injection infrastructure

2007-12-04 Thread Avi Kivity
The current irq and exception injection infrastructure is quite complex and has been the source of a number of bugs in the past. This patchset simplifies irq and exception injection: - Much more work is carried out in common code rather than vmx/svm specific code. Information is kept in C

[kvm-devel] [PATCH 3/7] KVM: Replace #GP injection by the generalized exception queue

2007-12-04 Thread Avi Kivity
Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- drivers/kvm/svm.c | 17 ++--- drivers/kvm/vmx.c | 18 ++ drivers/kvm/x86.c | 43 +++ drivers/kvm/x86.h |7 +--

[kvm-devel] [PATCH 1/7] KVM: Generalize exception injection mechanism

2007-12-04 Thread Avi Kivity
Instead of each subarch doing its own thing, add an API for queuing an injection, and manage failed exception injection centerally (i.e., if an inject failed due to a shadow page fault, we need to requeue it). Signed-off-by: Avi Kivity [EMAIL PROTECTED] --- drivers/kvm/svm.c | 21

[kvm-devel] [PATCH 6/7] KVM: Move tpr threshold calculation into common code

2007-12-04 Thread Avi Kivity
This moves the tpr shadow processing into the local apic code from the vmx interrupt injection path. This will allow decoupling the irq injection path from normal execution (which needs to update the tpr threshold even when no irq is being injected). Signed-off-by: Avi Kivity [EMAIL PROTECTED]

[kvm-devel] [PATCH 7/7] KVM: Ack interrupts only after they have successfully been injected

2007-12-04 Thread Avi Kivity
Instead of acking an interrupt when we *think* the guest is ready for it, and then juggling it around in subarch-specific registers if it isn't (e.g. page fault while trying to inject the interrupt), separate the injection and ack. Subarh specific code now provides two hooks: -queue_interrupt()

[kvm-devel] [PATCH 5/7] KVM: Add explicit acks to interrupt controller model

2007-12-04 Thread Avi Kivity
The current interrupt controller emulation model supports two functions for pulling interrupts from the controller into the processor: kvm_cpu_has_interrupt(vcpu) - is an interrupt pending for the core kvm_cpu_get_interrupt(vcpu) - get pending interrupt and ack it This presents a problem

Re: [kvm-devel] [PATCH][4/5] kvm: libkvm: Moving set and get shadow pages functions to arch x86

2007-12-04 Thread Zhang, Xiantao
Avi Kivity wrote: Zhang, Xiantao wrote: From: Zhang Xiantao [EMAIL PROTECTED] Date: Mon, 3 Dec 2007 22:06:04 +0800 Subject: [PATCH] kvm: libkvm. Moving set and get shadow pages to x86 arch. Move kvm_setget_shadow_pages to arch-x86 for libkvm Signed-off-by: Zhang Xiantao [EMAIL PROTECTED]

Re: [kvm-devel] [PATCH] RFC: Use CONFIG_HAS_IOPORT around vcpu-pio_data

2007-12-04 Thread Avi Kivity
Hollis Blanchard wrote: Actually, (now that I try to build with it :) this doesn't work for PowerPC, which defines (or rather, doesn't not define) CONFIG_HAS_IOPORT. So I guess a callout to arch code will do. I'll send a patch sometime. We can also have a CONFIG_KVM_HAS_PIO and

[kvm-devel] Test Result for KVM-55 RC1

2007-12-04 Thread Zhao, Yunfeng
Hi, all, We run a nightly testing for KVM-55 RC1. No new issue has been found. Old issues: 1. Crashme causes RHEL5 guest kernel panic The guest will kernel panic immediately after starting the test. https://sourceforge.net/tracker/?func=detailatid=893831aid=1840711group_id=180599 2. Timer of

Re: [kvm-devel] [PATCH] RFC: Create kvm_arch_vcpu_runnable() function

2007-12-04 Thread Carsten Otte
Hollis Blanchard wrote: Signed-off-by: Hollis Blanchard [EMAIL PROTECTED] Acked-by: Carsten Otte [EMAIL PROTECTED] We'll need this too on big iron. - SF.Net email is sponsored by: The Future of Linux Business White Paper

Re: [kvm-devel] [PATCH 1 of 3] Move address types to their own header file

2007-12-04 Thread Carsten Otte
Hollis Blanchard wrote: Signed-off-by: Hollis Blanchard [EMAIL PROTECTED] These types work for us too. Acked-by: Carsten Otte [EMAIL PROTECTED] - SF.Net email is sponsored by: The Future of Linux Business White Paper from

Re: [kvm-devel] [PATCH 3 of 3] Stop including x86-specific headers in kvm_main.c

2007-12-04 Thread Carsten Otte
Hollis Blanchard wrote: Signed-off-by: Hollis Blanchard [EMAIL PROTECTED] Looks good. Acked-by: Carsten Otte [EMAIL PROTECTED] - SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the

Re: [kvm-devel] [PATCH 2 of 3] Move IO device definitions to its own header file

2007-12-04 Thread Carsten Otte
Hollis Blanchard wrote: diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c --- a/drivers/kvm/kvm_main.c +++ b/drivers/kvm/kvm_main.c @@ -18,6 +18,7 @@ #include kvm.h #include x86.h #include irq.h +#include iodev.h #include linux/kvm.h #include linux/module.h Why do we

[kvm-devel] [ANNOUNCE] kvm-55 release

2007-12-04 Thread Avi Kivity
The cr3 reload optimization in kvm-54 killed Solaris, so here is a fix. Changes from kvm-54: - remove old hypercall driver (Anthony Liguori) - disable dirty page logging for main memory (Izik Eidus) - fix incorrect page count calculation for dirty logging (Izik Eidus) - improve testsuite 'make

Re: [kvm-devel] [PATCH] RFC: Create kvm_arch_vcpu_runnable() function

2007-12-04 Thread Avi Kivity
Carsten Otte wrote: Hollis Blanchard wrote: Signed-off-by: Hollis Blanchard [EMAIL PROTECTED] Acked-by: Carsten Otte [EMAIL PROTECTED] We'll need this too on big iron. What about merging kvm_cpu_has_interrupt() into _runnable()? My feeling is that we can keep it separated. -- error

Re: [kvm-devel] [kvm-ppc-devel] [PATCH 2 of 3] Move IO device definitions to its own header file

2007-12-04 Thread Hollis Blanchard
On Tue, 2007-12-04 at 14:41 +0100, Carsten Otte wrote: Hollis Blanchard wrote: diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c --- a/drivers/kvm/kvm_main.c +++ b/drivers/kvm/kvm_main.c @@ -18,6 +18,7 @@ #include kvm.h #include x86.h #include irq.h +#include iodev.h

Re: [kvm-devel] [PATCH 0/7] Rework irq injection infrastructure

2007-12-04 Thread Joerg Roedel
On Tue, Dec 04, 2007 at 11:44:07AM +0200, Avi Kivity wrote: The patchset is also necessary for integrating the tpr optimization branch and for injecting interrupts in big real mode. Interesting work. Do you have an updated tpr optimization patch which applys on top of these patches? Joerg --

Re: [kvm-devel] [PATCH 0/7] Rework irq injection infrastructure

2007-12-04 Thread Avi Kivity
Joerg Roedel wrote: On Tue, Dec 04, 2007 at 11:44:07AM +0200, Avi Kivity wrote: The patchset is also necessary for integrating the tpr optimization branch and for injecting interrupts in big real mode. Interesting work. Do you have an updated tpr optimization patch which applys on

[kvm-devel] kvm on hp nx6320 laptop

2007-12-04 Thread 余上
Hi all , Did someone tried kvm on this machine . I tried and got kvm: disabled by bios , but I did enable the virtulization option in BIOS . Can someone help me with this ? Thank you very much yushang - SF.Net email is

Re: [kvm-devel] How to handle kvm-abi-10 case for other archs.

2007-12-04 Thread Avi Kivity
Zhang, Xiantao wrote: Jeremy Katz wrote: On Sat, 2007-12-01 at 12:10 +0200, Avi Kivity wrote: Zhang, Xiantao wrote: I think new archs for kvm doesn't need to care about kvm-abi case in their code, since current abi is bigger than 10. But in current libkvm.c, we can see

Re: [kvm-devel] kvm on hp nx6320 laptop

2007-12-04 Thread 余上
Exactly as you said , it works , thank you ! 2007/12/5, Laurent Vivier [EMAIL PROTECTED]: Le mercredi 05 décembre 2007 à 01:49 +0800, 余上 a écrit : Hi all , Did someone tried kvm on this machine . I tried and got kvm: disabled by bios , but I did enable the virtulization option in BIOS .

Re: [kvm-devel] How to handle kvm-abi-10 case for other archs.

2007-12-04 Thread Carlo Marcelo Arenas Belon
On Sat, Dec 01, 2007 at 12:10:16PM +0200, Avi Kivity wrote: Zhang, Xiantao wrote: Hi, Avi I think new archs for kvm doesn't need to care about kvm-abi case in their code, since current abi is bigger than 10. But in current libkvm.c, we can see that many abi-specific code in it. How to

[kvm-devel] KVM running on Mac?

2007-12-04 Thread Neo Jia
hi, I have seen the Qemu is ported to OSX. Is there any plan for KVM? Just curious. Thanks, Neo -- I would remember that if researchers were not ambitious probably today we haven't the technology we are using! - SF.Net

Re: [kvm-devel] KVM running on Mac?

2007-12-04 Thread Javier Guerra
On 12/4/07, Neo Jia [EMAIL PROTECTED] wrote: I have seen the Qemu is ported to OSX. Is there any plan for KVM? Just curious. similarily, there are OSX installs over VMWare, but haven't seen one on KVM... -- Javier -

Re: [kvm-devel] KVM running on Mac?

2007-12-04 Thread Neo Jia
On Dec 4, 2007 11:03 AM, Javier Guerra [EMAIL PROTECTED] wrote: On 12/4/07, Neo Jia [EMAIL PROTECTED] wrote: I have seen the Qemu is ported to OSX. Is there any plan for KVM? Just curious. similarily, there are OSX installs over VMWare, but haven't seen one on KVM... I have seen a post

Re: [kvm-devel] [ANNOUNCE] kvm-55 release

2007-12-04 Thread Ryan Harper
* Cam Macdonell [EMAIL PROTECTED] [2007-12-04 13:08]: Hi Avi, I'm having a problem with unifdef target in the kvm-userspace/kernel/Makefile: [EMAIL PROTECTED]:~/src/KVM/kvm-userspace$ make -C kernel sync LINUX=~/src/KVM/kvm make: Entering directory

Re: [kvm-devel] KVM: Export include/linux/kvm.h only if $ARCH actually supports KVM

2007-12-04 Thread Hollis Blanchard
On Sun, 02 Dec 2007 10:50:06 +0200, Avi Kivity wrote: diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 368864d..eded44e 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -112,6 +112,9 @@ config GENERIC_TIME_VSYSCALL bool default X86_64 +config ARCH_SUPPORTS_KVM

[kvm-devel] Strange network behaviour

2007-12-04 Thread Mike
Hello, I already spoke to Izik Eidus. He told me to publish the results to the problem at the mailinglist. Some time ago I wrote to the kvm-devel mailinglist that I had a problem with my guests' networking dying. I got the hint to change the network card emulation. That worked. Now I noticed a

Re: [kvm-devel] [ANNOUNCE] kvm-55 release

2007-12-04 Thread Cam Macdonell
Ryan Harper wrote: * Cam Macdonell [EMAIL PROTECTED] [2007-12-04 13:08]: Hi Avi, I'm having a problem with unifdef target in the kvm-userspace/kernel/Makefile: [EMAIL PROTECTED]:~/src/KVM/kvm-userspace$ make -C kernel sync LINUX=~/src/KVM/kvm make: Entering directory

Re: [kvm-devel] How to handle kvm-abi-10 case for other archs.

2007-12-04 Thread Zhang, Xiantao
Avi Kivity wrote: Zhang, Xiantao wrote: Jeremy Katz wrote: On Sat, 2007-12-01 at 12:10 +0200, Avi Kivity wrote: Zhang, Xiantao wrote: I think new archs for kvm doesn't need to care about kvm-abi case in their code, since current abi is bigger than 10. But in current libkvm.c, we can

[kvm-devel] Fwd: Does KVM bios support DMI ?

2007-12-04 Thread walter tech
Hi, guys, Where can I find the latest DMI status? Thanks/Walter -- Forwarded message -- From: walter tech [EMAIL PROTECTED] Date: Nov 21, 2007 4:56 PM Subject: Re: [kvm-devel] Does KVM bios support DMI ? To: Avi Kivity [EMAIL PROTECTED] Good news, I am looking forward to this.

[kvm-devel] [patch 05/18] kvm: nopage

2007-12-04 Thread npiggin
Convert KVM from nopage to fault. Signed-off-by: Nick Piggin [EMAIL PROTECTED] Cc: kvm-devel@lists.sourceforge.net Cc: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] --- drivers/kvm/kvm_main.c | 38 +- 1 file changed, 13 insertions(+), 25 deletions(-) Index:

[kvm-devel] KVM Test result, kernel efdeac0.. , userspace ac9b2c5..

2007-12-04 Thread Zhao, Yunfeng
Hi, all This is today's KVM test result against kvm.git efdeac066fbc73cbb4cc2d8c8975192454ea2a50 and kvm-userspace.git ac9b2c5584c67f7c97b6b6acb41a74891b4e6f7f. No new issue has been found. Old issues: 1. Crashme causes RHEL5 guest kernel panic The guest will kernel panic immediately after

Re: [kvm-devel] Strange network behaviour

2007-12-04 Thread Lynn Kerby
Hi Mike, Glad to hear that your networks are up now, but what are you using to connect/bridge them? Those response times are horrible across the board! All my VMs are connected to my internal network via a bridge on the host through their tap interfaces and a few lucky machines share