On Tue, 2007-01-30 at 14:56 +0200, Avi Kivity wrote:
> Another optimization is that we can stop having two parallel
> implementations of the same code. I suggest we start thinking how to merge.
KVM has more ambition than lguest, so I was planning on letting you do
all the hard work then rebase m
On Tue, 30 Jan 2007 14:56:16 -
Avi Kivity <[EMAIL PROTECTED]> wrote:
> +static void decache_vcpus_on_cpu(int cpu)
> +{
> + struct kvm *vm;
> + struct kvm_vcpu *vcpu;
> + int i;
> +
> + spin_lock(&kvm_lock);
> + list_for_each_entry(vm, &vm_list, vm_list)
> + for
Hi.
On Tue, 2007-01-30 at 23:19 +0100, Rafael J. Wysocki wrote:
> On Tuesday, 30 January 2007 22:20, Nigel Cunningham wrote:
> > Hi.
> >
> > On Tue, 2007-01-30 at 14:57 +, Avi Kivity wrote:
> > > Add the necessary callbacks to suspend and resume a host running kvm.
> > > This
> > > is just
On Tuesday, 30 January 2007 22:20, Nigel Cunningham wrote:
> Hi.
>
> On Tue, 2007-01-30 at 14:57 +, Avi Kivity wrote:
> > Add the necessary callbacks to suspend and resume a host running kvm. This
> > is just a repeat of the cpu hotplug/unplug work.
> >
> > Signed-off-by: Avi Kivity <[EMAIL
Hi.
On Tue, 2007-01-30 at 14:57 +, Avi Kivity wrote:
> Add the necessary callbacks to suspend and resume a host running kvm. This
> is just a repeat of the cpu hotplug/unplug work.
>
> Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>
Maybe it's just a lack of understanding, but I'm wondering i
Avi Kivity wrote:
> I've committed kvm support for host suspend-to-disk (and hopefully
> resume too). This means you can suspend your machine with running vms,
> and resume it later will all vms returning to the saved state. This
> should please laptop owners.
So testing with trunk (r4365) +
This patchset contains an assortment of guest and host fixes for kvm.
Andrew, please queue for 2.6.21.
--
error compiling committee.c: too many arguments to function
-
Take Surveys. Earn Cash. Influence the Future of IT
J
From: Robert P. J. Day <[EMAIL PROTECTED]>
Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]>
Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>
Index: linux-2.6/drivers/kvm/svm.c
===
--- linux-2.6.orig/drivers/kvm/svm.c
+++ linux-2.6/dr
The kvm mmu relies on cr0.wp being set even if the guest does not set it. The
vmx code correctly forces cr0.wp at all times, the svm code does not, so it
can't boot solaris without this patch.
Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>
Index: linux-2.6/drivers/kvm/svm.c
==
gva_to_gpa() needs to be updated to the new walk_addr() calling convention,
otherwise it may oops under some circumstances.
Use the opportunity to remove all the code duplication in gva_to_gpa(), which
essentially repeats the calculations in walk_addr().
Signed-off-by: Avi Kivity <[EMAIL PROTECTE
Just like svm.
Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>
Index: linux-2.6/drivers/kvm/vmx.c
===
--- linux-2.6.orig/drivers/kvm/vmx.c
+++ linux-2.6/drivers/kvm/vmx.c
@@ -1373,6 +1373,11 @@ static int handle_external_interrupt(str
This allows us to run the mmu testsuite on amd.
Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>
Index: linux-2.6/drivers/kvm/svm.c
===
--- linux-2.6.orig/drivers/kvm/svm.c
+++ linux-2.6/drivers/kvm/svm.c
@@ -528,7 +528,13 @@ static voi
Or 32-bit userspace will get confused.
Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>
Index: linux-2.6/drivers/kvm/vmx.c
===
--- linux-2.6.orig/drivers/kvm/vmx.c
+++ linux-2.6/drivers/kvm/vmx.c
@@ -1863,9 +1863,7 @@ again:
fx_
Avi Kivity wrote:
> Yellis Services wrote:
>
>> Hello,
>>
>> I have adapted a xen path to kvm-qemu.
>> This patch enable auth in vnc
>>
>> qemu ../.. -hda=/home/os.img -vnc -vncpasswd toto
>>
>> work with vncviewer on linux and Win.
>> Don't work with vncviewer applet via http, must be fixed.
>>
From: S.ÃaÄlar Onur <[EMAIL PROTECTED]>
lldt does not accept immediate operands, which "g" allows.
Signed-off-by: S.ÃaÄlar Onur <[EMAIL PROTECTED]>
Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>
Index: linux-2.6/drivers/kvm/kvm.h
===
Unfortunately requiring a version bump.
Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>
Index: linux-2.6/include/linux/kvm.h
===
--- linux-2.6.orig/include/linux/kvm.h
+++ linux-2.6/include/linux/kvm.h
@@ -11,7 +11,7 @@
#include
#in
Rusty Russell wrote:
On Sun, 2007-01-28 at 11:40 +0200, Avi Kivity wrote:
Rusty Russell wrote:
I use virtbench (http://ozlabs.org/~rusty/virtbench) to try
to measure optimization results; it still needs more tests (and an
explicit kvm backend).
A kvm backend would be appreci
On hotplug, we execute the hardware extension enable sequence.
On unplug, we decache any vcpus that last ran on the exiting cpu, and
execute the hardware extension disable sequence.
Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>
Index: linux-2.6/drivers/kvm/kvm_main.c
=
From: Ingo Molnar <[EMAIL PROTECTED]>
vcpu_load() can return NULL and it sometimes does in failure paths (for
example when the userspace ABI version is too old) - causing a
preemption count underflow in the ->vcpu_free() later on. So check for
NULL.
Signed-off-by: Ingo Molnar <[EMAIL PROTECTED
Hi all,
Today I have just tried kvm, as it seems to be a really good replacement
to qemu, as it is a lot faster. I don't really have confidence on kqemu,
so I don't use it. I am using it on my laptop to be able to develop
while I am away from my various computers.
I am really interesting in havin
KVM wants the cpu hotplug notifications, both for cpu hotplug itself, but more
commonly for host suspend/resume.
In order to avoid extensive #ifdefs, provide stubs when CONFIG_CPU_HOTPLUG is
not defined.
In all, we have four cases:
- UP: register and unregister stubbed out
- SMP+hotplug: full re
The following patchset allows a host with running virtual machines to be
suspended and, on at least a subset of the machines tested, resumed.
Note that this is orthogonal to suspending and resuming an individual
guest to a file.
A side effect of implementing suspend/resume is that cpu hotplug
Add the necessary callbacks to suspend and resume a host running kvm. This
is just a repeat of the cpu hotplug/unplug work.
Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>
Index: linux-2.6/drivers/kvm/kvm_main.c
===
--- linux-2.6.orig
Like the inline code it replaces, this function decaches the vmcs from the cpu
it last executed on. in addition:
- vcpu_clear() works if the last cpu is also the cpu we're running on
- it is faster on larger smps by virtue of using smp_call_function_single()
Includes fix from Ingo Molnar.
Sig
Avi Kivity wrote:
> From: S.Çağlar Onur <[EMAIL PROTECTED]>
> Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>
>
>
The mangled name is actually S.Çağlar Onur <[EMAIL PROTECTED]>.
Apologies to S.Çağlar and Andrew. Will fix my script to include charset
info.
--
error compiling committee.c: t
This will allow us to iterate over all vcpus and see which cpus they are
running on.
Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>
Index: linux-2.6/drivers/kvm/kvm_main.c
===
--- linux-2.6.orig/drivers/kvm/kvm_main.c
+++ linux-2.6/dr
From: Dor Laor <[EMAIL PROTECTED]>
We report the value of cr8 to userspace on an exit. Also let userspace change
cr8 when we re-enter the guest. The lets 64-bit guest code maintain the tpr
correctly.
Thanks for Yaniv Kamay for the idea.
Signed-off-by: Dor Laor <[EMAIL PROTECTED]>
Signed-off-by
From: Ingo Molnar <[EMAIL PROTECTED]>
forms like "0(%rsp)" generate an instruction with an unnecessary one byte
displacement under certain circumstances. replace with the equivalent
"(%rsp)".
Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>
Index: linux-2.6/drivers/kvm/vmx.c
=
>I did not install kvm using rpm because I compiled it (is there a rpm
>for fedora core 6 ?) so I cannot find the kvm script on /etc/init.d
You can build the kvm & kvm-kmod rpm by make rpm.
This would be the best since it works out of the box.
>
>Then if I create the bridge when I add the eth2 in
On Tue, Jan 30, 2007 at 01:03:20PM +0100, Yellis Services wrote:
> Hello,
>
> I have adapted a xen path to kvm-qemu.
> This patch enable auth in vnc
>
> qemu ../.. -hda=/home/os.img -vnc -vncpasswd toto
>
> work with vncviewer on linux and Win.
> Don't work with vncviewer applet via http, must b
I also think there is another problem:
where is the tap interface ?
ifconfig tap >= tap: unknown interface: No such device
Does qemu-ifup add the tap interface to the bridge ?
- Messaggio da [EMAIL PROTECTED] -
Data: Tue, 30 Jan 2007 14:17:16 +0100
Da: [EMAIL PROTEC
I did not install kvm using rpm because I compiled it (is there a rpm
for fedora core 6 ?) so I cannot find the kvm script on /etc/init.d
Then if I create the bridge when I add the eth2 interface my system
stop responding on the network.
brctl addbr bridge (ok)
brctl addif bridge eth2 then I co
Yellis Services wrote:
> Hello,
>
> I have adapted a xen path to kvm-qemu.
> This patch enable auth in vnc
>
> qemu ../.. -hda=/home/os.img -vnc -vncpasswd toto
>
> work with vncviewer on linux and Win.
> Don't work with vncviewer applet via http, must be fixed.
>
>
Anthony, you're our qemu exp
Oops, my mistake, for your previous run I noticed you don't have a bridge set
up at all. (I thought you have one named 'bridge' but that was a mistake.)
So please run the kvm script, you can build & install the rpm and it will
automatically add itself to the /etc/init.d dir.
Alternative is to a
Ingo Molnar wrote:
> From: Ingo Molnar <[EMAIL PROTECTED]>
> Subject: [patch] kvm: qemu: fix configure defaults
>
> i always found it weird that the Qemu version that comes with KVM has
> kqemu enabled on x86 and x86_64 by default but not KVM ;-) Fix this.
>
Well, the top level ./configure doe
Ingo Molnar wrote:
> From: Ingo Molnar <[EMAIL PROTECTED]>
> Subject: [patch] KVM: fix vcpu freeing bug
>
> vcpu_load() can return NULL and it sometimes does in failure paths (for
> example when the userspace ABI version is too old) - causing a
> preemption count underflow in the ->vcpu_free() la
Ingo Molnar wrote:
> Subject: [patch] KVM: fix vcpu_clear() bug
> From: Ingo Molnar <[EMAIL PROTECTED]>
>
> if vcpu_clear() is called on a not yet run vcpu then vcpu->cpu will be
> -1. Check this case and dont call smp_call_function_single(-1).
>
> this patch fixes the crash i reported earlier and
Rusty Russell wrote:
>> The clever guest kernel will set the accessed bit (and the dirty bit on
>> writable ptes) to avoid an rmw cycle by the hardware pagetable walker.
>>
>> [two instrumented runs later]
>>
>> Both Linux and Windows seem to do this optimization.
>>
>
> Right. This (trivial
Ok
At this time mai script /root/kvm-svn/kvm/scripts/qemu-ifup contains:
#!/bin/sh
#switch=$(ip route list | awk '/^default / { print $NF }')
switch="bridge"
ifconfig $1 0.0.0.0 up
brctl addif ${switch} $1
If a try this:
/usr/local/bin/qemu-system-x86_64 -no-acpi -hda
/root/winXP/windows_kvm
On Sun, 2007-01-28 at 11:40 +0200, Avi Kivity wrote:
> Rusty Russell wrote:
> I use virtbench (http://ozlabs.org/~rusty/virtbench) to try
> > to measure optimization results; it still needs more tests (and an
> > explicit kvm backend).
>
> A kvm backend would be appreciated.
Yes, and patches
The problem is that the qemu-ifup script assumes you used the kvm script from
the svn for bringing the bridge up. The kvm script puts the IP address on the
bridge and also the default gw, thus the qemu-ifup script thinks your eth2 is
the bridge.
So either use the kvm script (in the scripts dire
Hello,
I have adapted a xen path to kvm-qemu.
This patch enable auth in vnc
qemu ../.. -hda=/home/os.img -vnc -vncpasswd toto
work with vncviewer on linux and Win.
Don't work with vncviewer applet via http, must be fixed.
Emmanuel.
diff -Naur kvm-12/qemu/d3des.c kvm-12.1/qemu/d3des.c
--- kvm-
Here there is the report:
rpm -q bridge-utils
bridge-utils-1.1-2
/sbin/lsmod | grep bridge
bridge 98929 0
/usr/sbin/brctl show
bridge name bridge id STP enabled interfaces
/sbin/ip route list | grep default
default via 158.102.66.129 dev eth2
- Mes
Hello,
A friend told us to give you the world's online best gambling deals!
That's right: If you o
Please run the following commands and report their output:
rpm -q bridge-utils
/sbin/lsmod | grep bridge
/usr/sbin/brctl show
/sbin/ip route list | grep default
-Original Message-
From: [EMAIL PROTECTED] on behalf of [EMAIL PROTECTED]
Sent: Tue 30/01/2007 13:26
To: Dor Laor
Cc: kv
Sorry, I did not understand !
Could me explain what I must put in the quemu-ifup script ?
I am using the original supplayed by kvm svn !!!
Thanks
- Messaggio da [EMAIL PROTECTED] -
Data: Tue, 30 Jan 2007 03:08:20 -0800
Da: Dor Laor <[EMAIL PROTECTED]>
Rispondi-A: Dor Laor <[E
>Good morning, I installed kvm 12 on a linux fedora core 6.
>I also installed a windows XP guest but I am not able to setup bridging
>network.
>If I launch:
>/usr/local/bin/qemu-system-x86_64 -no-acpi -hda
>/root/winXP/windows_kvm.disk -boot c -m 1024 -cdrom
>/root/winXP/winXP.iso -net nic -net
>t
Good morning, I installed kvm 12 on a linux fedora core 6.
I also installed a windows XP guest but I am not able to setup bridging
network.
If I launch:
/usr/local/bin/qemu-system-x86_64 -no-acpi -hda
/root/winXP/windows_kvm.disk -boot c -m 1024 -cdrom
/root/winXP/winXP.iso -net nic -net
tap,s
Hello,
I have adapted a xen path to kvm-qemu.
This patch enable auth to vnc
qemu ../.. -hda=/home/os.img -vnc -vncpasswd toto
work with vncviewer on linux and Win.
Don't work with vncviewer applet via http, must be fixed.
Emmanuel.
diff -Naur kvm-12/qemu/d3des.c kvm-12.1/qemu/d3des.c
--- kvm-
Subject: [patch] KVM: fix vcpu_clear() bug
From: Ingo Molnar <[EMAIL PROTECTED]>
if vcpu_clear() is called on a not yet run vcpu then vcpu->cpu will be
-1. Check this case and dont call smp_call_function_single(-1).
this patch fixes the crash i reported earlier and -trunk now works fine
on a 32
FYI, UP works fine, but a 32-bit SMP host crashes with latest trunk:
BUG: at arch/i386/kernel/smp.c:177 send_IPI_mask_bitmask()
[] show_trace_log_lvl+0x19/0x2e
[] show_trace+0x12/0x14
[] dump_stack+0x14/0x16
[] send_IPI_mask_bitmask+0x55/0xb0
[] send_IPI_mask+0x8/0xa
[] smp_call_function_si
51 matches
Mail list logo