[kvm-devel] slides of kvm forum

2007-09-05 Thread David Shwatrz
Hi, - Are any slides of kvm forum presentation available ? I cannot find any, - Is there a chance seeing them on the web? DS - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems?

Re: [kvm-devel] slides of kvm forum

2007-09-05 Thread Dor Laor
Hi, - Are any slides of kvm forum presentation available ? I cannot find any, - Is there a chance seeing them on the web? DS We'll publish them all as soon as we collect them from all participants, hope it will happen real soon. All the presenters, as requested, please send your presenta

Re: [kvm-devel] sharing memory

2007-09-05 Thread Dor Laor
>> You have the following options: >> >> 1. A plain tcp/ip from guest to host (you probably considered that >ahh) >> 2. We have a virtual device in qemu called vmchannel it is visible as >> pci device in the guest. >> >> Currently they communicate using port io, it will soon change to >> virtio

Re: [kvm-devel] slides of kvm forum

2007-09-05 Thread David Shwatrz
Dor, Thanks! DS On 9/5/07, Dor Laor <[EMAIL PROTECTED]> wrote: > > > > Hi, > - Are any slides of kvm forum presentation available ? I cannot find any, > - Is there a chance seeing them on the web? > > DS > > > > We'll publish them all as soon as we collect them from all participants, > hope it wi

Re: [kvm-devel] kvm 35 and 36 segfault when smp 2 or more

2007-09-05 Thread Gianluca Cecchi
Ok, I added the kernel modules lines in %files section of spec file and built successfully kvm-36 with ./configure --qemu-cc=gcc34 --prefix=%{_prefix} then I installed the rpm overwriting the default kernel modules and I'm able to run with smp 2 I successfully booted an F8 live x86_64 rescue cd ima

Re: [kvm-devel] OpenBSD geometry disk problem

2007-09-05 Thread Izik Eidus
Magicboiz wrote: > it works!!! > > Great :) > > Regards. > ohh, wait it mean we have bug in kvm! and runing with --no-kvm mean your guest will run very slow. please tell us what is the cpu you use, and the exact message you get plus is it after installtion? in the middle? after boot? while booti

[kvm-devel] [ kvm-Bugs-1788352 ] Performance: local IP stack (loopback) is terribly slow

2007-09-05 Thread SourceForge.net
Bugs item #1788352, was opened at 2007-09-05 13:16 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=893831&aid=1788352&group_id=180599 Please note that this message will contain a full copy

Re: [kvm-devel] OpenBSD geometry disk problem

2007-09-05 Thread Magicboiz
yes, it runs slowly. My config: CPU: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz Kernel: 2.6.22 (ubuntu 2.6.22-10-generic) KVM: 36 and 35 tested. I attach you two screenshots: - In the first one, you can see at the bottom, how OpenBSD 4.2 kernel detects an invalid disk geometry

[kvm-devel] [PATCH 1/5] Clean up unloved invlpg: remove kvm_arch_ops.invlpg and tweak emulator.

2007-09-05 Thread Rusty Russell
invlpg shouldn't fetch the "src" address, since it may not be valid, however SVM's "solution" which neuters emulation of all group 7 instruction is horrible and breaks kvm-lite. The simplest fix is to put a special check in for invlpg. Also, remove the unused invlpg member of struct kvm_arch_ops.

[kvm-devel] [PATCH 2/5] Keep control regs in sync

2007-09-05 Thread Rusty Russell
We don't update the vcpu control registers in various places. We should do so. Signed-off-by: Rusty Russell <[EMAIL PROTECTED]> diff -r 039995825488 drivers/kvm/kvm_main.c --- a/drivers/kvm/kvm_main.cFri Aug 31 15:38:42 2007 +1000 +++ b/drivers/kvm/kvm_main.cTue Sep 04 10:30:56 2007 +100

[kvm-devel] [PATCH 3/5] Hoist SVM's get_cs_db_l_bits into core code.

2007-09-05 Thread Rusty Russell
SVM gets the DB and L bits for the cs by decoding the segment. This is in fact the completely generic code, so hoist it for kvm-lite to use. Signed-off-by: Rusty Russell <[EMAIL PROTECTED]> diff -r 01dea2154ac6 drivers/kvm/kvm.h --- a/drivers/kvm/kvm.h Tue Aug 21 10:11:26 2007 +1000 +++ b/driver

Re: [kvm-devel] [PATCH 1/5] Clean up unloved invlpg: remove kvm_arch_ops.invlpg and tweak emulator.

2007-09-05 Thread Avi Kivity
Rusty Russell wrote: > invlpg shouldn't fetch the "src" address, since it may not be valid, > however SVM's "solution" which neuters emulation of all group 7 > instruction is horrible and breaks kvm-lite. The simplest fix is to > put a special check in for invlpg. > > Also, remove the unused invlp

[kvm-devel] [PATCH] Fix network boot with newer BIOS

2007-09-05 Thread Anthony Liguori
This patch is in QEMU CVS and allows network boot to work with newer BIOSes. It was originally written by Bernhard Kauer and committed (and modified) by Thiemo Seufer. Signed-off-by: Anthony Liguori <[EMAIL PROTECTED]> diff --git a/qemu/hw/pc.c b/qemu/hw/pc.c index f2917ca..d3b8786 100644 --- a/q

[kvm-devel] [PATCH 1/3] Make to round memory to next page

2007-09-05 Thread Anthony Liguori
In general, the BIOS, VGA BIOS, and option ROMs are not required to be multiple of page sizes. This means that phys_ram_size may not be a multiple of page. Address this at the kvm_create() level to make things simplier for future callers. Signed-off-by: Anthony Liguori <[EMAIL PROTECTED]> diff -

[kvm-devel] [PATCH 2/3] Fix option ROM loading

2007-09-05 Thread Anthony Liguori
Make sure to copy the option ROMs into physical memory so they're visible to KVM guests. With the older BIOS, this allows -boot n to work although the CVS BIOS does not work. Signed-off-by: Anthony Liguori <[EMAIL PROTECTED]> diff --git a/qemu/hw/pc.c b/qemu/hw/pc.c index a5c08bc..f2917ca 100644

Re: [kvm-devel] [PATCH 3/3] Fix network boot with newer BIOS

2007-09-05 Thread Anthony Liguori
Sorry, this should be 3/3. Regards, Anthony Liguori On Wed, 2007-09-05 at 10:35 -0500, Anthony Liguori wrote: > This patch is in QEMU CVS and allows network boot to work with newer BIOSes. > It was originally written by Bernhard Kauer and committed (and modified) by > Thiemo Seufer. > > Signed-

[kvm-devel] [PATCH 5/5] kvm-lite qemu patch

2007-09-05 Thread Rusty Russell
"-M pclite" requires -kernel, requires kvm. Also changes --enable-kvm to --disable-kvm (it's enabled on supported archs, so we need a disable not an enable flag). index d9292fe..bf4c8ba 100755 --- a/configure +++ b/configure @@ -84,7 +84,7 @@ target_cpu() { (cd qemu; ./configure --target-list=$(

Re: [kvm-devel] [PATCH 4/5] kvm-lite: "The Unbearable Liteness"

2007-09-05 Thread Anthony Liguori
On Thu, 2007-09-06 at 01:42 +1000, Rusty Russell wrote: > This patch is not for serious application, but makes interesting > reading. Requires Anthony's new hypercall patches. > > Comments: > > 1) asm-offsets are required for lite's switcher/trampoline (lite_switcher.S) >and for guest's asse

Re: [kvm-devel] [PATCH 4/5] kvm-lite: "The Unbearable Liteness"

2007-09-05 Thread Rusty Russell
On Wed, 2007-09-05 at 10:47 -0500, Anthony Liguori wrote: > On Thu, 2007-09-06 at 01:42 +1000, Rusty Russell wrote: > > This patch is not for serious application, but makes interesting > > reading. Requires Anthony's new hypercall patches. > > > > Comments: > > > > 1) asm-offsets are required fo

Re: [kvm-devel] [PATCH 4/5] kvm-lite: "The Unbearable Liteness"

2007-09-05 Thread Anthony Liguori
On Thu, 2007-09-06 at 02:16 +1000, Rusty Russell wrote: > On Wed, 2007-09-05 at 10:47 -0500, Anthony Liguori wrote: > > On Thu, 2007-09-06 at 01:42 +1000, Rusty Russell wrote: > > > This patch is not for serious application, but makes interesting > > > reading. Requires Anthony's new hypercall pa

Re: [kvm-devel] [PATCH 1/5] Clean up unloved invlpg: remove kvm_arch_ops.invlpg and tweak emulator.

2007-09-05 Thread Rusty Russell
On Wed, 2007-09-05 at 18:30 +0300, Avi Kivity wrote: > Rusty Russell wrote: > > invlpg shouldn't fetch the "src" address, since it may not be valid, > > however SVM's "solution" which neuters emulation of all group 7 > > instruction is horrible and breaks kvm-lite. The simplest fix is to > > put a

Re: [kvm-devel] [PATCH 5/5] kvm-lite qemu patch

2007-09-05 Thread Avi Kivity
Rusty Russell wrote: > "-M pclite" requires -kernel, requires kvm. Also changes --enable-kvm > to --disable-kvm (it's enabled on supported archs, so we need a disable > not an enable flag). > +#ifdef USE_KVM > +/* FIXME: Run without paging and then turn it on, like normal Guest. */ > +/* Once we k

Re: [kvm-devel] [PATCH 5/5] kvm-lite qemu patch

2007-09-05 Thread Avi Kivity
Rusty Russell wrote: > "-M pclite" requires -kernel, requires kvm. Also changes --enable-kvm > to --disable-kvm (it's enabled on supported archs, so we need a disable > not an enable flag). > +#ifdef USE_KVM > +/* FIXME: Run without paging and then turn it on, like normal Guest. */ > +/* Once we k

Re: [kvm-devel] [PATCH 4/5] kvm-lite: "The Unbearable Liteness"

2007-09-05 Thread Avi Kivity
Rusty Russell wrote: > This patch is not for serious application, but makes interesting > reading. Requires Anthony's new hypercall patches. > > Comments: > > 2) Includes proposed "platform_type" extension for boot protocol. May not be >necessary. > 3) kvm/ now contains guest code, so needs t

Re: [kvm-devel] [PATCH 4/5] kvm-lite: "The Unbearable Liteness"

2007-09-05 Thread Avi Kivity
Anthony Liguori wrote: >> >> Agreed, but that didn't exist when this patch was made. >> >> ISTR there was some feedback for your patches; were you going to repost? >> > > Avi had suggested that IO delay be set based on query to the kernel but > ATM since no devices are in the kernel, this didn

Re: [kvm-devel] [PATCH 5/5] kvm-lite qemu patch

2007-09-05 Thread Rusty Russell
On Wed, 2007-09-05 at 20:02 +0300, Avi Kivity wrote: > Rusty Russell wrote: > > +QEMUMachine pclite_machine = { > > +"pclite", > > +"kvm-lite PC", > > +pc_init_lite, > > +}; > > +#endif /* USE_KVM */ > > + > > Most of this hunk should go into a separate file. This currently doesn't us

[kvm-devel] expose host CPU features to guests

2007-09-05 Thread danken
Hi, It's a pity not to use a host CPU feature if it is available. This patch exposes host CPU features to guests. It allows fine-tuning the presented features from the command-line. The code could use some serious clean ups, but I think it is interesting enough right now. I'd be happy to hear you

Re: [kvm-devel] [PATCH 5/5] kvm-lite qemu patch

2007-09-05 Thread Avi Kivity
Rusty Russell wrote: > >> It would also be nice to support the hypercalls in qemu, so we can run >> without kernel support (on non-x86 hardware, for example). >> > > Yes, I look forward to your patches 8) > > Isn't dropping unsubtle hints sufficient? I'm sure someone will pick it up even

Re: [kvm-devel] expose host CPU features to guests

2007-09-05 Thread Anthony Liguori
On Wed, 2007-09-05 at 20:45 +0300, [EMAIL PROTECTED] wrote: > Hi, > > It's a pity not to use a host CPU feature if it is available. This patch > exposes host CPU features to guests. It allows fine-tuning the presented > features from the command-line. > > The code could use some serious clean ups

[kvm-devel] [PATCH][RFC] pte notifiers -- support for external page tables

2007-09-05 Thread Avi Kivity
[resend due to bad alias expansion resulting in some recipients being bogus] Some hardware and software systems maintain page tables outside the normal Linux page tables, which reference userspace memory. This includes Infiniband, other RDMA-capable devices, and kvm (with a pending patch). Beca

Re: [kvm-devel] [PATCH][RFC]: pte notifiers -- support for external page tables

2007-09-05 Thread Avi Kivity
Rik van Riel wrote: >> >> I imagine that many of the paravirt_ops mmu hooks will need to be >> exposed as pte notifiers. This can't be done as part of the >> paravirt_ops code due to the need to pass high level data structures, >> though. > > Wait, I thought that paravirt_ops was all on the sid

Re: [kvm-devel] expose host CPU features to guests

2007-09-05 Thread Avi Kivity
Anthony Liguori wrote: > On Wed, 2007-09-05 at 20:45 +0300, [EMAIL PROTECTED] wrote: > >> Hi, >> >> It's a pity not to use a host CPU feature if it is available. This patch >> exposes host CPU features to guests. It allows fine-tuning the presented >> features from the command-line. >> >> The co

Re: [kvm-devel] expose host CPU features to guests

2007-09-05 Thread Daniel P. Berrange
On Wed, Sep 05, 2007 at 10:34:45PM +0300, Avi Kivity wrote: > Anthony Liguori wrote: > > On Wed, 2007-09-05 at 20:45 +0300, [EMAIL PROTECTED] wrote: > > > >> Hi, > >> > >> It's a pity not to use a host CPU feature if it is available. This patch > >> exposes host CPU features to guests. It allows

[kvm-devel] [ kvm-Bugs-1788875 ] OpenBSD disk only 68mb in size, fails to boot

2007-09-05 Thread SourceForge.net
Bugs item #1788875, was opened at 2007-09-05 22:00 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=893831&aid=1788875&group_id=180599 Please note that this message will contain a full copy

Re: [kvm-devel] OpenBSD geometry disk problem

2007-09-05 Thread Avi Kivity
Izik Eidus wrote: > Magicboiz wrote: > >> it works!!! >> >> Great :) >> >> Regards. >> >> > ohh, wait it mean we have bug in kvm! > and runing with --no-kvm mean your guest will run very slow. > please tell us what is the cpu you use, and the exact message you get > plus is it after inst

Re: [kvm-devel] sharing memory

2007-09-05 Thread Avi Kivity
Francesco Cipollone wrote: > Hy, > I'm writing my thesis on Virtualizzation and it's application to security. > Now for Xen Hypervisor there are a lot of application already > developed (like XenRim, XenFit, XenKimono) and very nice ideas... > I want to transfer these ideas on Kvm...but is a littl

Re: [kvm-devel] [PATCH][RFC] pte notifiers -- support for external page tables

2007-09-05 Thread Rusty Russell
On Wed, 2007-09-05 at 22:32 +0300, Avi Kivity wrote: > [resend due to bad alias expansion resulting in some recipients > being bogus] > > Some hardware and software systems maintain page tables outside the normal > Linux page tables, which reference userspace memory. This includes > Infiniband,

Re: [kvm-devel] [PATCH][RFC] pte notifiers -- support for external page tables

2007-09-05 Thread Avi Kivity
Rusty Russell wrote: > On Wed, 2007-09-05 at 22:32 +0300, Avi Kivity wrote: > >> [resend due to bad alias expansion resulting in some recipients >> being bogus] >> >> Some hardware and software systems maintain page tables outside the normal >> Linux page tables, which reference userspace memor

Re: [kvm-devel] [PATCH][RFC]: pte notifiers -- support for external page tables

2007-09-05 Thread Avi Kivity
[resend due to broken cc list in my original post] Jack Steiner wrote: > On Wed, Sep 05, 2007 at 07:38:48PM +0300, Avi Kivity wrote: > >> Some hardware and software systems maintain page tables outside the normal >> Linux page tables, which reference userspace memory. This includes >> Infiniba

[kvm-devel] AsteriskNOWbeta6 kernel panic at boot

2007-09-05 Thread Marco Menardi
* cpu model: AMD Athlon(tm) 64 X2 Dual Core Processor 4200+. * kvm version: 36-0.1 from Debian64 Sid * host kernel version: 2.6.22-1-amd64 * host kernel arch: x86_64 * guest: AsteriskNOW_beta6.5, Linux 32bit, kernel version * command line: kvm -boot d -cdrom asterisk_11599_asterisk-0.9.6.5-x86-d

Re: [kvm-devel] [Qemu-devel] Re: expose host CPU features to guests

2007-09-05 Thread Paul Brook
> > I think qemu-cvs has a -cpu option for non-x86 which could be used for > > this. Agree machine types are the wrong approach. > > Yep, machine types are already used to switch between a different concept > so using the new -cpu option would make sense. Could perhaps extend the > syntax so that

Re: [kvm-devel] [PATCH][RFC] pte notifiers -- support for external page tables

2007-09-05 Thread Shaohua Li
On Wed, 2007-09-05 at 22:32 +0300, Avi Kivity wrote: > [resend due to bad alias expansion resulting in some recipients > being bogus] > > Some hardware and software systems maintain page tables outside the normal > Linux page tables, which reference userspace memory. This includes > Infiniband,