Re: [PATCH] KVM: Fix wrong KVM_GET_LAPIC

2008-08-19 Thread Amit Shah
* On Monday 18 Aug 2008 08:45:40 Yang, Sheng wrote: > From a8ca7dd8f5fe0125e7b7d0a21f5caddacd754911 Mon Sep 17 00:00:00 2001 > From: Sheng Yang <[EMAIL PROTECTED]> > Date: Mon, 18 Aug 2008 11:04:22 +0800 > Subject: [PATCH] KVM: Fix wrong KVM_GET_LAPIC > > Which caused migration fail in recent commi

Re: [patch 0/2] do not run halted vcpu's

2008-08-19 Thread Avi Kivity
Marcelo Tosatti wrote: > On Sun, Aug 17, 2008 at 10:41:07AM +0300, Avi Kivity wrote: > >> Avi Kivity wrote: >> >>> Marcelo Tosatti wrote: >>> KVM: x86: do not execute halted vcpus Alright, need_resched was actually checked in vcpu_enter_guest, so this checks signa

[PATCH] x86 emulator: Add call near absolute (opcode 0xff rm/2)

2008-08-19 Thread Mohammed Gamal
This adds the near call with absolute address instruction. Signed-off-by: Mohammed Gamal <[EMAIL PROTECTED]> --- arch/x86/kvm/x86_emulate.c | 55 +-- 1 files changed, 37 insertions(+), 18 deletions(-) diff --git a/arch/x86/kvm/x86_emulate.c b/arch/x86/kv

Re: [PATCH] x86 emulator: Simplify emulating Grp4/Grp5 instructions.

2008-08-19 Thread Mohammed Gamal
On Tue, Aug 19, 2008 at 1:17 AM, Mohammed Gamal <[EMAIL PROTECTED]> wrote: > emulate_grp45() always returns 0. Therefore there is no need to check > its return value. > > Signed-off-by: Mohammed Gamal <[EMAIL PROTECTED]> > --- > arch/x86/kvm/x86_emulate.c |4 +--- > 1 files changed, 1 insertio

Re: madvise() not triggering page discard with MMU-notifiers

2008-08-19 Thread Marcelo Tosatti
Hi Anthony, On Mon, Aug 18, 2008 at 05:04:25PM -0500, Anthony Liguori wrote: > Attached is an updated migration patch. It does not appear, however, > that madvise() is triggering discarding of pages even with an > MMU-notifier enabled kernel. I take it that this is because we're still > ho

Re: [PATCH] Work around dhclient brokenness

2008-08-19 Thread Anthony Liguori
Rusty Russell wrote: On Tuesday 19 August 2008 15:17:08 Herbert Xu wrote: On Mon, Aug 18, 2008 at 10:13:55PM -0700, Chris Wedgwood wrote: CSUM2 sounds so ugly though. Features seem to get added and never removed how about if this had a documented short lifetime (if it really must

[RFC][PATCH]Problems with hpet on kvm

2008-08-19 Thread Beth Kon
I've been playing with my hpet patch on kvm and seeing some strange behavior. The patch I've been using is attached below. /usr/local/bin/qemu-system-x86_64 -boot cd -hda /home/beth/images/ubuntu_server_8.04_10G.img -m 1024 -net nic,model=e1000 -net user -smp 2 -vnc :1 With the above command l

Re: [PATCH] kvm: bios: end AP boot code execution in rombios

2008-08-19 Thread Sebastian Herbszt
Avi Kivity wrote: .code16 smp_ap_boot_code_start: + cli Redundant (but no harm done). I added it so it's explicit this code is run with IF=0. Kind of serves a documentation purpose so we don't have to look up whether the cpu starts with IF=0 or not. - Sebastian -- To unsubscribe fro

Re: [patch 0/2] do not run halted vcpu's

2008-08-19 Thread Marcelo Tosatti
On Sun, Aug 17, 2008 at 10:41:07AM +0300, Avi Kivity wrote: > Avi Kivity wrote: >> Marcelo Tosatti wrote: >>> KVM: x86: do not execute halted vcpus >>> >>> Alright, need_resched was actually checked in vcpu_enter_guest, so this >>> checks signal_pending too: >>> >>> Offline or uninitialized vcpu's

Re: serial/ rs232 and qemu /kvm?

2008-08-19 Thread Michael Malone
Charles Duffy wrote: Michael Malone wrote: If you're trying to use virt-manager, then don't. Virt-manager stops you from having access to a bunch of the underlying features of kvm/qemu such as serial ports. I'm told they're working on it, but it's only useful for a basic setup at the moment.

[PATCH] Use .fixup instead of .text.fixup on __kvm_handle_fault_on_reboot

2008-08-19 Thread Eduardo Habkost
[oops. sent it to the old kvm-devel list. sending to the right list, now] vmlinux.lds expects the fixup code to be on a section named .fixup. The .text.fixup section is not mentioned on vmlinux.lds, and is included on the resulting vmlinux (just after .text) only because of ld heuristics on placin

Re: serial/ rs232 and qemu /kvm?

2008-08-19 Thread Charles Duffy
Michael Malone wrote: If you're trying to use virt-manager, then don't. Virt-manager stops you from having access to a bunch of the underlying features of kvm/qemu such as serial ports. I'm told they're working on it, but it's only useful for a basic setup at the moment. Serial ports *are*

Re: serial/ rs232 and qemu /kvm?

2008-08-19 Thread Michael Malone
I have been trying to use kvm to do some microcontroller programming, mostly with success - until I want to send an ascii NULL down the port. (I don't know what's going on there, but if you have any ideas, that would be fantastic)Our communication protocol is very touchy about speeds, so the bau

Re: Migrating Vm's from one machine to another...and back

2008-08-19 Thread Jean-Pierre Dion
Hi Chris, thank you for your advice. I tried but did not succeed yet. I experienced some issues with tcp mode. I will retry when I am back from vacation next week. I will tell you. jean-pierre This message was sent using IMP,

Re: serial/ rs232 and qemu /kvm?

2008-08-19 Thread Glauber Costa
On Tue, Aug 19, 2008 at 11:24 AM, Marc Weber <[EMAIL PROTECTED]> wrote: > First of all, is this the mailinglist to ask this question? Or should I > ask it on the qemu lists? > > I'd like to run WinXP/ Vista within kvm and do microcontroller > programming. My host is linux of course. I had some succ

Re: [PATCH] Work around dhclient brokenness

2008-08-19 Thread Chris Wedgwood
On Tue, Aug 19, 2008 at 07:10:44PM +1000, Rusty Russell wrote: > We need both. CSUM2 is the new virtio-level feature. Perhaps that's what I'm misisng. How is this different to CSUM? -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [EMAIL PROTECTED] M

[PATCH 3/4] add ballooning infrastructure to QEMU

2008-08-19 Thread Anthony Liguori
This patch adds a ballooning infrastructure to QEMU. This includes a pair of monitor commands, balloon and info balloon, to balloon a guest and to query the guest's balloon status. Signed-off-by: Anthony Liguori <[EMAIL PROTECTED]> diff --git a/qemu/balloon.h b/qemu/balloon.h new file mode 10064

[PATCH 4/4] Add virtio balloon driver

2008-08-19 Thread Anthony Liguori
This patch adds the virtio balloon driver. It doesn't actually reduce the RSS size when using KVM (although it does when using -no-kvm). This is because even with MMU notifiers, we're holding a reference to each page in the shadow page table. Once we switch to not taking a reference for pages in

[PATCH 1/4] Extend virtio config routines to support ballooning

2008-08-19 Thread Anthony Liguori
This patch updates the virtio device methods to provide hooks for setting and getting the config. This is needed for ballooning since the balloon driver uses config changes to signal changes in the balloon amount. We also add a method to signal that we have changed the config. Signed-off-by: Ant

[PATCH 2/4] libkvm: add kvm_has_mmu_notifiers

2008-08-19 Thread Anthony Liguori
This patch adds a kvm_has_mmu_notifiers routine to libkvm. This allows userspace to query the existence of mmu notifiers which is important for ballooning since madvise() is not safe from userspace without it. Signed-off-by: Anthony Liguori <[EMAIL PROTECTED]> diff --git a/libkvm/libkvm.c b/libk

[no subject]

2008-08-19 Thread Mehul Chadha
subscribe kvm -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

serial/ rs232 and qemu /kvm?

2008-08-19 Thread Marc Weber
First of all, is this the mailinglist to ask this question? Or should I ask it on the qemu lists? I'd like to run WinXP/ Vista within kvm and do microcontroller programming. My host is linux of course. I had some success using the qemu pre 0.8 way using slsnif. Setting baud rate to 115200 made som

Re: [PATCH] Work around dhclient brokenness (v2)

2008-08-19 Thread Avi Kivity
Anthony Liguori wrote: With the latest GSO/csum offload patches, any guest using an unpatched version of dhclient (any Ubuntu guest, for instance), will no longer be able to get a DHCP address. dhclient is actually at fault here. It uses AF_PACKET to receive DHCP responses but does not check au

[PATCH] Work around dhclient brokenness (v2)

2008-08-19 Thread Anthony Liguori
With the latest GSO/csum offload patches, any guest using an unpatched version of dhclient (any Ubuntu guest, for instance), will no longer be able to get a DHCP address. dhclient is actually at fault here. It uses AF_PACKET to receive DHCP responses but does not check auxdata to see if the packe

Re: [PATCH] Fix KVM/IA-64 build issue in latest kvm.git.

2008-08-19 Thread Avi Kivity
Zhang, Xiantao wrote: OK, also fine to me! Attached the updated patch. Applied, thanks (modified to static inline to avoid warnings). -- error compiling committee.c: too many arguments to function -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message t

Re: [PATCH] Work around dhclient brokenness

2008-08-19 Thread Avi Kivity
Anthony Liguori wrote: Avi Kivity wrote: Anthony Liguori wrote: I'd still like a way to disable it from the host. Even when it does nothing it will force the header into the host cache, which may be different from the guest cache. It's already in the host cache as we don't have a zero copy

Re: [PATCH] Work around dhclient brokenness

2008-08-19 Thread Anthony Liguori
Avi Kivity wrote: Anthony Liguori wrote: I'd still like a way to disable it from the host. Even when it does nothing it will force the header into the host cache, which may be different from the guest cache. It's already in the host cache as we don't have a zero copy API right now. I'm th

Re: [PATCH] Work around dhclient brokenness

2008-08-19 Thread Anthony Liguori
Avi Kivity wrote: Rusty Russell wrote: Well, if changed to avoid random udp packets and focus on dhcp, okay. I'll update the patch. I'd still like a way to disable it from the host. Even when it does nothing it will force the header into the host cache, which may be different from the gues

Re: [PATCH] Work around dhclient brokenness

2008-08-19 Thread Avi Kivity
Anthony Liguori wrote: I'd still like a way to disable it from the host. Even when it does nothing it will force the header into the host cache, which may be different from the guest cache. It's already in the host cache as we don't have a zero copy API right now. I'm thinking of the possi

RE: [PATCH] Fix KVM/IA-64 build issue in latest kvm.git.

2008-08-19 Thread Zhang, Xiantao
OK, also fine to me! Attached the updated patch. Thanks Xiantao Avi Kivity wrote: > Zhang, Xiantao wrote: >> From d53dfacedea40213382694229700d02bfa72d923 Mon Sep 17 00:00:00 >> 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> >> Date: Tue, 19 Aug 2008 17:33:21 +0800 >> Subject: [PATCH] KVM: KVM/IA-64

Re: I/O performance

2008-08-19 Thread xming
No one has any idea? On Sun, Aug 10, 2008 at 8:21 PM, xming <[EMAIL PROTECTED]> wrote: > Hi all, > > After that I migrated my home sever from xen to kvm, I noticed very > bad I/O performance, > tried many combination versions/scsi-ide-virtio I got best by using > kernel mod. 70 with > userspace 69

Re: [PATCH] Work around dhclient brokenness

2008-08-19 Thread Rusty Russell
On Tuesday 19 August 2008 19:56:13 Herbert Xu wrote: > On Tue, Aug 19, 2008 at 07:08:23PM +1000, Rusty Russell wrote: > > Not really. We could extend the protocol, but that's currently how > > feature negotiation works: you can't do it while the device is live. > > That seemed simplest. I learnt

Re: Un-googlable

2008-08-19 Thread Jurrit de Vries
David Abrahams wrote: > Serious question: has anyone considered changing the name of this > project? Finding information about kvm on the web is extremely > frustrating due to the enormous number of pages related to KVM switches > and the heavily overlapping target audience (people who want to run

Re: [PATCH] Fix KVM/IA-64 build issue in latest kvm.git.

2008-08-19 Thread Avi Kivity
Zhang, Xiantao wrote: From d53dfacedea40213382694229700d02bfa72d923 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Tue, 19 Aug 2008 17:33:21 +0800 Subject: [PATCH] KVM: KVM/IA-64: Fix kvm/ia64's build issue. Disable irq ack notification for ia64. Signed-off-by: Xiantao Zh

Re: [PATCH] Work around dhclient brokenness

2008-08-19 Thread Herbert Xu
On Tue, Aug 19, 2008 at 07:08:23PM +1000, Rusty Russell wrote: > > Not really. We could extend the protocol, but that's currently how feature > negotiation works: you can't do it while the device is live. That seemed > simplest. I learnt from Xen :) > > (Of course, we don't need to *disable*

[PATCH] Fix KVM/IA-64 build issue in latest kvm.git.

2008-08-19 Thread Zhang, Xiantao
>From d53dfacedea40213382694229700d02bfa72d923 Mon Sep 17 00:00:00 2001 From: Xiantao Zhang <[EMAIL PROTECTED]> Date: Tue, 19 Aug 2008 17:33:21 +0800 Subject: [PATCH] KVM: KVM/IA-64: Fix kvm/ia64's build issue. Disable irq ack notification for ia64. Signed-off-by: Xiantao Zhang <[EMAIL PROTECTED]>

Re: [PATCH] Work around dhclient brokenness

2008-08-19 Thread Rusty Russell
On Tuesday 19 August 2008 15:28:40 Chris Wedgwood wrote: > On Tue, Aug 19, 2008 at 03:17:08PM +1000, Herbert Xu wrote: > > All we need is a simple toggle to disable checksum offload. Every > > NIC that offers receive checksum offload allows it to be disabled. > > virtio shouldn't be any different.

Re: [PATCH] Work around dhclient brokenness

2008-08-19 Thread Avi Kivity
Rusty Russell wrote: On Monday 18 August 2008 21:44:25 Herbert Xu wrote: On Mon, Aug 18, 2008 at 02:40:55PM +0300, Avi Kivity wrote: Isn't that turned on automatically for real hardware? And what's to prevent a broken dhclient together with the (presumably) hacked up initscripts that c

Re: [PATCH] Work around dhclient brokenness

2008-08-19 Thread Rusty Russell
On Tuesday 19 August 2008 15:17:08 Herbert Xu wrote: > On Mon, Aug 18, 2008 at 10:13:55PM -0700, Chris Wedgwood wrote: > > CSUM2 sounds so ugly though. Features seem to get added and never > > removed how about if this had a documented short lifetime (if it > > really must go in)? > > All we