Re: [kvm-devel] KVM Testing Result for KVM-61

2008-02-20 Thread Zhao, Yunfeng
Zhao, Yunfeng wrote: > Izik Eidus wrote: >> On Wed, 2008-02-20 at 21:12 +0800, Zhao, Yunfeng wrote: >>> On Wed, 2008-02-20 at 20:58 +0800, Zhao, Yunfeng wrote: >>> Five old issues: >>> 1. Fails to save/restore guests >>> Save/restore may cause host to hang. >>> >> https://sou

Re: [kvm-devel] howto set up a virtual firewall?

2008-02-20 Thread Kurt Neufeld
Avi Kivity wrote: > > Assuming you have eth0 on the host, tap0 on the host visible as eth0 in > the guest, and tap1 in the host visible as eth1 in the guest, you can > add a bridge between eth0 and tap0, and use tap1 as the nic in the host > for IP (e.g. run 'dhclient tap1' to obtain an intern

Re: [kvm-devel] KVM Testing Result for KVM-61

2008-02-20 Thread Zhao, Yunfeng
Izik Eidus wrote: > On Wed, 2008-02-20 at 21:12 +0800, Zhao, Yunfeng wrote: >> >>> On Wed, 2008-02-20 at 20:58 +0800, Zhao, Yunfeng wrote: >> Five old issues: >> 1. Fails to save/restore guests >> Save/restore may cause host to hang. >> > https://sourceforge.net/tracker/index.php?

Re: [kvm-devel] [PATCH] mmu notifiers #v6

2008-02-20 Thread Nick Piggin
On Wed, Feb 20, 2008 at 01:03:24PM +0100, Andrea Arcangeli wrote: > If there's agreement that the VM should alter its locking from > spinlock to mutex for its own good, then Christoph's > one-config-option-fits-all becomes a lot more appealing (replacing RCU > with a mutex in the mmu notifier list

Re: [kvm-devel] [PATCH] mmu notifiers #v6

2008-02-20 Thread Nick Piggin
On Wed, Feb 20, 2008 at 11:39:42AM +0100, Andrea Arcangeli wrote: > Given Nick's comments I ported my version of the mmu notifiers to > latest mainline. There are no known bugs AFIK and it's obviously safe > (nothing is allowed to schedule inside rcu_read_lock taken by > mmu_notifier() with my patc

Re: [kvm-devel] [patch] my mmu notifiers

2008-02-20 Thread Nick Piggin
On Wed, Feb 20, 2008 at 02:09:41AM +0100, Andrea Arcangeli wrote: > On Wed, Feb 20, 2008 at 12:11:57AM +0100, Nick Piggin wrote: > > Sorry, I realise I still didn't get this through my head yet (and also > > have not seen your patch recently). So I don't know exactly what you > > are doing... > >

Re: [kvm-devel] [patch] my mmu notifiers

2008-02-20 Thread Nick Piggin
On Tue, Feb 19, 2008 at 05:40:50PM -0600, Jack Steiner wrote: > On Wed, Feb 20, 2008 at 12:11:57AM +0100, Nick Piggin wrote: > > On Tue, Feb 19, 2008 at 02:58:51PM +0100, Andrea Arcangeli wrote: > > > On Tue, Feb 19, 2008 at 09:43:57AM +0100, Nick Piggin wrote: > > > > anything when changing the pt

Re: [kvm-devel] [patch 5/6] mmu_notifier: Support for drivers with revers maps (f.e. for XPmem)

2008-02-20 Thread Nick Piggin
On Wednesday 20 February 2008 20:00, Robin Holt wrote: > On Wed, Feb 20, 2008 at 02:51:45PM +1100, Nick Piggin wrote: > > On Wednesday 20 February 2008 14:12, Robin Holt wrote: > > > For XPMEM, we do not currently allow file backed > > > mapping pages from being exported so we should never reach th

[kvm-devel] kvm-lite status

2008-02-20 Thread Fabio Checconi
Hi, what's the status of kvm-lite? Has anybody worked on it since the last september posting[1]? I'd like to play a little bit with the idea and with the code, so I would be really thankful to you or anybody else for providing any relevant info on this subject. [1] http://thread.gmane.org/g

[kvm-devel] [PATCH] fix widescreen resolution issues

2008-02-20 Thread Andreas Winkelbauer
hi, the attached patch fixes the issues with widescreen resolutions for me when using -std-vga. in vgabios/vbetables-gen.c I changed the video memory from 8MB to 16MB which is sufficient for resolutions up to 2560x1600. I've also added some more video modes (up to 2560x1600) with 16, 24, 32b

Re: [kvm-devel] Widescreen troubles again --> solved

2008-02-20 Thread Haydn Solomon
Great Job, Any chance on getting it up to resolution 1900x1200? Looking forward to these updates. On Wed, Feb 20, 2008 at 1:00 PM, Andreas Winkelbauer < [EMAIL PROTECTED]> wrote: > hi, > > I managed to get kvm-61 working at a resolution of 1680x1050 (using > -std-vga; > windowed as well as fulls

Re: [kvm-devel] [PATCH] mmu notifiers #v6

2008-02-20 Thread Jack Steiner
On Wed, Feb 20, 2008 at 11:39:42AM +0100, Andrea Arcangeli wrote: > Given Nick's comments I ported my version of the mmu notifiers to > latest mainline. There are no known bugs AFIK and it's obviously safe > (nothing is allowed to schedule inside rcu_read_lock taken by > mmu_notifier() with my patc

Re: [kvm-devel] Widescreen troubles again --> solved

2008-02-20 Thread Andreas Winkelbauer
hi, I managed to get kvm-61 working at a resolution of 1680x1050 (using -std-vga; windowed as well as fullscreen) with windows xp as guest os. Basically I took the following steps: * increase vga memory from 8MB to 16MB (in vbetables-gen.c) * add modes to vbetables-gen.c * change qemu/hw/vga_int.

[kvm-devel] [patch 6/5] KVM: use lockless __emulator_write_phys in kvm_hypercall_mmu_write()

2008-02-20 Thread Marcelo Tosatti
Subject says it all. Signed-off-by: Marcelo Tosatti <[EMAIL PROTECTED]> Index: kvm.paravirt2/arch/x86/kvm/x86.c === --- kvm.paravirt2.orig/arch/x86/kvm/x86.c +++ kvm.paravirt2/arch/x86/kvm/x86.c @@ -2400,7 +2400,7 @@ static int kvm_

[kvm-devel] [patch 5/5] KVM: VMX cr3 cache support (v2)

2008-02-20 Thread Marcelo Tosatti
Add support for the cr3 cache feature on Intel VMX CPU's. This avoids vmexits on context switch if the cr3 value is cached in one of the entries (currently 4 are present). This is especially important for Xenner, where each guest syscall involves a cr3 switch. v1->v2: - handle the race which hap

[kvm-devel] [patch 4/5] KVM: ignore zapped root pagetables (v2)

2008-02-20 Thread Marcelo Tosatti
Mark zapped root pagetables as invalid and ignore such pages during lookup. This is a problem with the cr3-target feature, where a zapped root table fools the faulting code into creating a read-only mapping. The result is a lockup if the instruction can't be emulated. v1->v2: - reload mmu of remo

[kvm-devel] [patch 3/5] KVM: hypercall batching (v2)

2008-02-20 Thread Marcelo Tosatti
Batch pte updates and tlb flushes in lazy MMU mode. v1->v2: - report individual hypercall error code, have multicall return number of processed entries. - cover entire multicall duration with slots_lock instead of acquiring/reacquiring. Signed-off-by: Marcelo Tosatti <[EMAIL PROTECTED]> Cc: Ant

[kvm-devel] [patch 2/5] KVM: hypercall based pte updates and TLB flushes (v2)

2008-02-20 Thread Marcelo Tosatti
Hypercall based pte updates are faster than faults, and also allow use of the lazy MMU mode to batch operations. Don't report the feature if two dimensional paging is enabled. v1->v2: - guest passes physical destination addr, which is cheaper than doing v->p translation in the host. - infer size

[kvm-devel] [patch 1/5] KVM: add basic paravirt support (v2)

2008-02-20 Thread Marcelo Tosatti
Add basic KVM paravirt support. Avoid vm-exits on IO delays. Add KVM_GET_PARA_FEATURES ioctl so paravirt features can be reported in a single bitmask. This allows the host to disable features on runtime if appropriate, which would require one ioctl per feature otherwise. The limit of 32 features

[kvm-devel] [patch 0/5] KVM paravirt MMU updates and cr3 caching (v2)

2008-02-20 Thread Marcelo Tosatti
The following patchset, based on earlier work by Anthony and Ingo, adds paravirt_ops support for KVM guests enabling hypercall based pte updates, hypercall batching and cr3 caching. -- - This SF.net email is sponsored by: M

[kvm-devel] [PATCH] build #365 issue for v2.6.25-rc2-342-g5d9c4a7 in ./arch/x86/kvm/kvm.ko

2008-02-20 Thread Randy Dunlap
On Wed, 20 Feb 2008 16:07:03 +0200 Avi Kivity wrote: > > Looks like KVM conflicts with CONFIG_VOYAGER... > > > > Attached patch should fix. > > Subject: x86: disable KVM on Voyager > > Most classic Pentiums don't have hardware virtualization > extension, and building kvm with voyager generates

[kvm-devel] [PATCH] Fix host_cpuid() in qemu/qemu-kvm-x86.c

2008-02-20 Thread Bernhard Kaindl
Hi, I found that on kvm-61 the cpuid in the guest was reported incorrectly when qemu-kvm was compiled with gcc-4.1 or 4.3. This resulted in linux-64bit not booting, complaining that it is not running on a 64-bit machine. Symptom: Unexpected behaviour after the assembly snippet. Solution: New as

Re: [kvm-devel] [PATCH] mmu notifiers #v6

2008-02-20 Thread Andrea Arcangeli
On Wed, Feb 20, 2008 at 08:41:55AM -0600, Robin Holt wrote: > On Wed, Feb 20, 2008 at 11:39:42AM +0100, Andrea Arcangeli wrote: > > XPMEM simply can't use RCU for the registration locking if it wants to > > schedule inside the mmu notifier calls. So I guess it's better to add > > Whoa there. In C

Re: [kvm-devel] [PATCH] mmu notifiers #v6

2008-02-20 Thread Robin Holt
On Wed, Feb 20, 2008 at 11:39:42AM +0100, Andrea Arcangeli wrote: > XPMEM simply can't use RCU for the registration locking if it wants to > schedule inside the mmu notifier calls. So I guess it's better to add Whoa there. In Christoph's patch, we did not use rcu for the list. It was a simple hl

Re: [kvm-devel] large page support for kvm

2008-02-20 Thread Avi Kivity
Marcelo Tosatti wrote: > >>> + /* >>> +* Largepage creation is susceptible to a upper-level >>> +* table to be shadowed and write-protected in the >>> +* area being mapped. If that is the case, invalidate >>> +

Re: [kvm-devel] mmdrop external module oops

2008-02-20 Thread Avi Kivity
Andrea Arcangeli wrote: > A 2.6.25-rc based kernel spawned an oops in mmdrop when kvm quit so > that reminded me of this: > Applied, thanks. -- Any sufficiently difficult bug is indistinguishable from a feature. - This

Re: [kvm-devel] build #365 issue for v2.6.25-rc2-342-g5d9c4a7 in ./arch/x86/kvm/kvm.ko

2008-02-20 Thread Avi Kivity
Avi Kivity wrote: Toralf Förster wrote: Hello, the build with the attached .config failed, make ends with: ... HOSTCC arch/x86/boot/tools/build BUILD arch/x86/boot/bzImage Root device is (3, 8) Setup is 12280 bytes (padded to 12288 bytes). System is 2192 kB Kernel: arch/x86/boot/bzImage

Re: [kvm-devel] KVM Testing Result for KVM-61

2008-02-20 Thread Izik Eidus
On Wed, 2008-02-20 at 21:12 +0800, Zhao, Yunfeng wrote: > > >On Wed, 2008-02-20 at 20:58 +0800, Zhao, Yunfeng wrote: > >> >> Five old issues: > >> >> 1. Fails to save/restore guests > >> >> Save/restore may cause host to hang. > >> >> https://sourceforge.net/tracker/index.php?funcÞtail&aid24525&

Re: [kvm-devel] howto set up a virtual firewall?

2008-02-20 Thread Javier Guerra
On 2/20/08, Avi Kivity <[EMAIL PROTECTED]> wrote: > Assuming you have eth0 on the host, tap0 on the host visible as eth0 in > the guest, and tap1 in the host visible as eth1 in the guest, you can > add a bridge between eth0 and tap0, and use tap1 as the nic in the host > for IP (e.g. run 'dhclie

Re: [kvm-devel] build #365 issue for v2.6.25-rc2-342-g5d9c4a7 in ./arch/x86/kvm/kvm.ko

2008-02-20 Thread Avi Kivity
Toralf Förster wrote: > Hello, > > the build with the attached .config failed, make ends with: > ... > HOSTCC arch/x86/boot/tools/build > BUILD arch/x86/boot/bzImage > Root device is (3, 8) > Setup is 12280 bytes (padded to 12288 bytes). > System is 2192 kB > Kernel: arch/x86/boot/bzImage is

Re: [kvm-devel] howto set up a virtual firewall?

2008-02-20 Thread Avi Kivity
Kurt Neufeld wrote: > Hey there, > > I've searched high and low but can't find an answer to my problem and I > find it hard to believe that I'm the only person that wants to do this. > > I would like to setup a virtual machine that is my firewall. So far I've > got Shorewall setup in a virtual mach

[kvm-devel] howto set up a virtual firewall?

2008-02-20 Thread Kurt Neufeld
Hey there, I've searched high and low but can't find an answer to my problem and I find it hard to believe that I'm the only person that wants to do this. I would like to setup a virtual machine that is my firewall. So far I've got Shorewall setup in a virtual machine and the "internal" nic work

[kvm-devel] howto set up a virtual firewall?

2008-02-20 Thread Kurt Neufeld
Hey there, I've search high and low but can't find an answer to my problem and I find it hard to believe that I'm the only person that wants to do this. I would like to setup a virtual machine that is my firewall. So far I've got Shorewall setup in a virtual machine and the --

Re: [kvm-devel] [PATCH] mmu notifiers #v6

2008-02-20 Thread Robin Holt
On Wed, Feb 20, 2008 at 01:32:36PM +0100, Andrea Arcangeli wrote: > On Wed, Feb 20, 2008 at 06:24:24AM -0600, Robin Holt wrote: > > We do not need to do any allocation in the messaging layer, all > > structures used for messaging are allocated at module load time. > > The allocation discussions we

Re: [kvm-devel] KVM Testing Result for KVM-61

2008-02-20 Thread Zhao, Yunfeng
>On Wed, 2008-02-20 at 20:58 +0800, Zhao, Yunfeng wrote: >> >> Five old issues: >> >> 1. Fails to save/restore guests >> >> Save/restore may cause host to hang. >> >> https://sourceforge.net/tracker/index.php?funcÞtail&aid24525&group_ >> >> id0599&atid‰3831 >> > >> >savevm loadvm does not work,

Re: [kvm-devel] KVM Testing Result for KVM-61

2008-02-20 Thread Izik Eidus
On Wed, 2008-02-20 at 20:58 +0800, Zhao, Yunfeng wrote: > >> Five old issues: > >> 1. Fails to save/restore guests > >> Save/restore may cause host to hang. > >> https://sourceforge.net/tracker/index.php?funcÞtail&aid24525&group_ > >> id0599&atid‰3831 > > > >savevm loadvm does not work, but it d

Re: [kvm-devel] KVM Testing Result for KVM-61

2008-02-20 Thread Zhao, Yunfeng
>> Five old issues: >> 1. Fails to save/restore guests >> Save/restore may cause host to hang. >> https://sourceforge.net/tracker/index.php?funcÞtail&aid24525&group_ >> id0599&atid‰3831 > >savevm loadvm does not work, but it doesnt crush my host >what you see in the dmesg? (the bug with the bad p

Re: [kvm-devel] [PATCH] mmu notifiers #v6

2008-02-20 Thread Andrea Arcangeli
On Wed, Feb 20, 2008 at 06:24:24AM -0600, Robin Holt wrote: > We do not need to do any allocation in the messaging layer, all > structures used for messaging are allocated at module load time. > The allocation discussions we had early on were about trying to > rearrange you notifiers to allow a sep

Re: [kvm-devel] [PATCH] mmu notifiers #v6

2008-02-20 Thread Robin Holt
On Wed, Feb 20, 2008 at 01:03:24PM +0100, Andrea Arcangeli wrote: > I'm unconvinced both the main linux VM and the mmu notifier should be > changed like this just to support xpmem. All non-sleeping users don't > need that. Nevertheless I'm fully welcome to support xpmem (and it's > not my call nor

Re: [kvm-devel] [PATCH] mmu notifiers #v6

2008-02-20 Thread Andrea Arcangeli
On Wed, Feb 20, 2008 at 05:33:13AM -0600, Robin Holt wrote: > But won't that other "subsystem" cause us to have two seperate callouts > that do equivalent things and therefore force a removal of this and go > back to what Christoph has currently proposed? The point is that a new kind of notifier t

Re: [kvm-devel] [PATCH] mmu notifiers #v6

2008-02-20 Thread Robin Holt
On Wed, Feb 20, 2008 at 11:39:42AM +0100, Andrea Arcangeli wrote: > Given Nick's comments I ported my version of the mmu notifiers to > latest mainline. There are no known bugs AFIK and it's obviously safe > (nothing is allowed to schedule inside rcu_read_lock taken by > mmu_notifier() with my patc

Re: [kvm-devel] kvm-60: kexec in guest crashes the host

2008-02-20 Thread Dan Aloni
On Wed, Feb 20, 2008 at 11:09:44AM +0200, Avi Kivity wrote: > Dan Aloni wrote: > > It happens at 100% of the times I invoke kexec. > > > > > > Can you provide a commandline which triggers this? I'm completely > ignorant wrt kexec. I managed to verify that this problem can be reproduced with t

[kvm-devel] [PATCH] KVM swapping (+ seqlock fix) with mmu notifiers #v6

2008-02-20 Thread Andrea Arcangeli
This is the same as before but against the mmu notifier #v6 patch, running on top of 2.6.25-rc latest, and in this last update I fixed the last race condition with a seqlock. I described the exact fix in a earlier email, in short the seqlock-write is in the invalidate_page/pages, and the reader wil

Re: [kvm-devel] KVM Testing Result for KVM-61

2008-02-20 Thread Izik Eidus
On Wed, 2008-02-20 at 12:29 +0200, Dor Laor wrote: > On Wed, 2008-02-20 at 11:41 +0200, Izik Eidus wrote: > > On Wed, 2008-02-20 at 15:09 +0800, Zhao, Yunfeng wrote: > > > Hi,All > > > This is testing result for KVM-61. > > > No new issue has been found in the testing. > > > > > > Five old issue

[kvm-devel] [PATCH] mmu notifiers #v6

2008-02-20 Thread Andrea Arcangeli
Given Nick's comments I ported my version of the mmu notifiers to latest mainline. There are no known bugs AFIK and it's obviously safe (nothing is allowed to schedule inside rcu_read_lock taken by mmu_notifier() with my patch). XPMEM simply can't use RCU for the registration locking if it wants t

Re: [kvm-devel] KVM Testing Result for KVM-61

2008-02-20 Thread Dor Laor
On Wed, 2008-02-20 at 11:41 +0200, Izik Eidus wrote: > On Wed, 2008-02-20 at 15:09 +0800, Zhao, Yunfeng wrote: > > Hi,All > > This is testing result for KVM-61. > > No new issue has been found in the testing. > > > > Five old issues: > > 1. Fails to save/restore guests > > Save/restore may caus

[kvm-devel] mmdrop external module oops

2008-02-20 Thread Andrea Arcangeli
A 2.6.25-rc based kernel spawned an oops in mmdrop when kvm quit so that reminded me of this: Signed-off-by: Andrea Arcangeli <[EMAIL PROTECTED]> diff --git a/kernel/external-module-compat.h b/kernel/external-module-compat.h index 20ef841..fd3cb1d 100644 --- a/kernel/external-module-compat.h +++

Re: [kvm-devel] KVM Testing Result for KVM-61

2008-02-20 Thread Izik Eidus
On Wed, 2008-02-20 at 15:09 +0800, Zhao, Yunfeng wrote: > Hi,All > This is testing result for KVM-61. > No new issue has been found in the testing. > > Five old issues: > 1. Fails to save/restore guests > Save/restore may cause host to hang. > https://sourceforge.net/tracker/index.php?func=deta

Re: [kvm-devel] Out-of-box kvm-61 driver crash, first kvm problem ever, boo hoo...

2008-02-20 Thread Avi Kivity
Avi Kivity wrote: [EMAIL PROTECTED] wrote: EIP: [] vmx_set_efer+0xa2/0xb0 [kvm_intel] SS:ESP 0068:f4a63ed4 Not completely unexpected. You are running a Core (not 2) processor which doesn't support nx or x86_64, so it doesn't have the EFER register. kvm-61 adds support for the EFER on i3

Re: [kvm-devel] Out-of-box kvm-61 driver crash, first kvm problem ever, boo hoo...

2008-02-20 Thread Avi Kivity
[EMAIL PROTECTED] wrote: > EIP: [] vmx_set_efer+0xa2/0xb0 [kvm_intel] SS:ESP 0068:f4a63ed4 > > Not completely unexpected. You are running a Core (not 2) processor which doesn't support nx or x86_64, so it doesn't have the EFER register. kvm-61 adds support for the EFER on i386, but apparently

Re: [kvm-devel] kvm-60: kexec in guest crashes the host

2008-02-20 Thread Avi Kivity
Dan Aloni wrote: > It happens at 100% of the times I invoke kexec. > > Can you provide a commandline which triggers this? I'm completely ignorant wrt kexec. -- Any sufficiently difficult bug is indistinguishable from a feature. --

Re: [kvm-devel] [patch 5/6] mmu_notifier: Support for drivers with revers maps (f.e. for XPmem)

2008-02-20 Thread Robin Holt
On Wed, Feb 20, 2008 at 03:00:36AM -0600, Robin Holt wrote: > On Wed, Feb 20, 2008 at 02:51:45PM +1100, Nick Piggin wrote: > > On Wednesday 20 February 2008 14:12, Robin Holt wrote: > > > For XPMEM, we do not currently allow file backed > > > mapping pages from being exported so we should never rea

Re: [kvm-devel] [patch 5/6] mmu_notifier: Support for drivers with revers maps (f.e. for XPmem)

2008-02-20 Thread Robin Holt
On Wed, Feb 20, 2008 at 02:51:45PM +1100, Nick Piggin wrote: > On Wednesday 20 February 2008 14:12, Robin Holt wrote: > > For XPMEM, we do not currently allow file backed > > mapping pages from being exported so we should never reach this condition. > > It has been an issue since day 1. We have op

[kvm-devel] Neu und kostenlos nutzbar ....

2008-02-20 Thread martin geier
Hello, Eine neue Internetplattform - "für User von User" - bietet alles kostenlos!!! Anmelden und alles kostenlos nutzen - auf - www.prototo.com ... Viel Spass Martin- This SF.net email is sponsored by: Microsoft Defy

Re: [kvm-devel] [PATCH] qemu: implicit precedence for logical operator in has_work

2008-02-20 Thread Alexander Graf
On Feb 20, 2008, at 9:30 AM, Carlo Marcelo Arenas Belon wrote: > janitorial fix for : > > qemu/qemu-kvm.c: In function `has_work': > qemu/qemu-kvm.c:140: warning: suggest parentheses around && within || > > Signed-off-by: Carlo Marcelo Arenas Belon <[EMAIL PROTECTED]> > --- > qemu/qemu-kvm.c |

[kvm-devel] [PATCH] qemu: implicit precedence for logical operator in has_work

2008-02-20 Thread Carlo Marcelo Arenas Belon
janitorial fix for : qemu/qemu-kvm.c: In function `has_work': qemu/qemu-kvm.c:140: warning: suggest parentheses around && within || Signed-off-by: Carlo Marcelo Arenas Belon <[EMAIL PROTECTED]> --- qemu/qemu-kvm.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/qemu

Re: [kvm-devel] Widescreen troubles again

2008-02-20 Thread Arne Brutschy
On Di, 2008-02-19 at 16:21 +, Andreas Winkelbauer wrote: > as far as I have seen the 'special' modes have a preprocessor constant defined > in vgabios/vbe.h which looks like > #define VBE_OWN_MODE_1152X864X 0x14c > > the numbers (0x14c in this case) correspond to those used in vbetables-g