[PATCH] KVM: x86 emulator: add bsf/bsr instruction emulation

2010-08-09 Thread Wei Yongjun
Add bsf/bsr instruction emulation (opcode 0x0f 0xbc~0xbd) Signed-off-by: Wei Yongjun yj...@cn.fujitsu.com --- arch/x86/kvm/emulate.c | 28 ++-- 1 files changed, 26 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index

[PATCH] test: add test for bsf/bsr instruction

2010-08-09 Thread Wei Yongjun
This patch add test for bsf/bsr instruction. Signed-off-by: Wei Yongjunyj...@cn.fujitsu.com --- x86/emulator.c | 64 1 files changed, 64 insertions(+), 0 deletions(-) diff --git a/x86/emulator.c b/x86/emulator.c index aef5d90..348d548

KSM with Debian GNU/Linux

2010-08-09 Thread Daniel Bareiro
Hi all! I have understood that in addition to support from the kernel and qemu-kvm, there must be support in libc. So in testing I was doing on Lenny, it did not work using libc from Debian repositories. Now that squeeze is frozen, anyone knows if it will support KSM? Has anyone had success

Re: KSM with Debian GNU/Linux

2010-08-09 Thread Michael Tokarev
09.08.2010 14:16, Daniel Bareiro wrote: Hi all! I have understood that in addition to support from the kernel and qemu-kvm, there must be support in libc. So in testing I was doing on Lenny, it did not work using libc from Debian repositories. Now that squeeze is frozen, anyone knows if it will

Re: KSM with Debian GNU/Linux

2010-08-09 Thread Nikola Ciprich
Hi, I don't have clue what glibc is contained in debian, but it seems to me that at least compile-time KSM support DOES depend on glibc. I'm using RHEL5-based system and KSM support doesn't get compiled in by default. But since I use new kernel, I add following to CFLAGS while compiling qemu-kvm

Re: KSM with Debian GNU/Linux

2010-08-09 Thread Michael Tokarev
09.08.2010 15:00, Nikola Ciprich пишет: Hi, I don't have clue what glibc is contained in debian, but it seems to me that at least compile-time KSM support DOES depend on glibc. I'm using RHEL5-based system and KSM support doesn't get compiled in by default. For KSM to be compiled in, one need

Re: KSM with Debian GNU/Linux

2010-08-09 Thread Daniel Bareiro
On Monday, 09 August 2010 14:27:12 +0400, Michael Tokarev wrote: I have understood that in addition to support from the kernel and qemu-kvm, there must be support in libc. So in testing I was doing on Lenny, it did not work using libc from Debian repositories. Now that squeeze is frozen,

Re: KSM with Debian GNU/Linux

2010-08-09 Thread Daniel Bareiro
On Monday, 09 August 2010 13:00:49 +0200, Nikola Ciprich wrote: Hi, Hi, Nikola. I don't have clue what glibc is contained in debian, but it seems to me that at least compile-time KSM support DOES depend on glibc. I'm using RHEL5-based system and KSM support doesn't get compiled in by

Re: KSM with Debian GNU/Linux

2010-08-09 Thread Michael Tokarev
09.08.2010 18:27, Daniel Bareiro wrote: On Monday, 09 August 2010 14:27:12 +0400, Michael Tokarev wrote: I have understood that in addition to support from the kernel and qemu-kvm, there must be support in libc. So in testing I was doing on Lenny, it did not work using libc from Debian

Re: [PATCH] kvm: make mmu_shrink() fit shrinker's requirement

2010-08-09 Thread Dave Hansen
On Thu, 2010-08-05 at 12:28 +0300, Avi Kivity wrote: On 08/04/2010 10:13 AM, Lai Jiangshan wrote: mmu_shrink() should attempt to free @nr_to_scan entries. This conflicts with Dave's patchset. Dave, what's going on with those patches? They're starting to smell. The hardware and test

[PATCH] server/autotest.py: Make an error message become an info message

2010-08-09 Thread Lucas Meneghel Rodrigues
If we can't install the client using the autotest internal package management system, give the user a less intimidating message, after all we'll fall back to use other methods to install the client. Signed-off-by: Lucas Meneghel Rodrigues l...@redhat.com --- server/autotest.py |7 +++ 1

Credit-Based CPU Scheduling Modifying VM Disk Size

2010-08-09 Thread Michael Li
Just wondering if KVM supports (if not now then will it in future releases) the following: - Credit-Based CPU Scheduling like Xen. I tried the following command using RHEL 5.5 and it does not work: $ virsh schedinfo RHEL5u3-tomcat Scheduler  : Unknown error: this function is not supported

Re: Credit-Based CPU Scheduling Modifying VM Disk Size

2010-08-09 Thread Daniel P. Berrange
On Mon, Aug 09, 2010 at 04:33:46PM -0400, Michael Li wrote: Just wondering if KVM supports (if not now then will it in future releases) the following: - Credit-Based CPU Scheduling like Xen. I tried the following command using RHEL 5.5 and it does not work: $ virsh schedinfo

Re: Question about starting 2 VMs using Qemu

2010-08-09 Thread Nirmal Guhan
Try removing ifname=tap0 and a different macaddr for second instance. --Nirmal On Fri, Aug 6, 2010 at 7:09 AM, Anjali Kulkarni anj...@juniper.net wrote: Hi, I can start my freebsd based image in Qemu, and I use tap interface for connectivity to the host or external world, but when I try to

Re: [PATCH 1/3 v2] KVM: x86 emulator: fix negative bit offset BitOp instruction emulation

2010-08-09 Thread Avi Kivity
On 08/08/2010 11:34 PM, Wei Yongjun wrote: If bit offset operands is a negative number, BitOp instruction will return wrong value. This patch fix it. Thanks, applied all three patches. -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain. --

Re: [RFC PATCH 2/3] x86: Add inject_realmode_interrupt() wrapper

2010-08-09 Thread Avi Kivity
On 08/08/2010 03:24 PM, Mohammed Gamal wrote: This adds a wrapper function inject_realmode_interrupt() around the emulator function emulate_int_real() to allow real mode interrupt injection. Signed-off-by: Mohammed Gamalm.gamal...@gmail.com --- arch/x86/kvm/x86.c | 14 ++

Re: [RFC PATCH 3/3] VMX: Emulated real mode interrupt injection

2010-08-09 Thread Avi Kivity
On 08/08/2010 03:24 PM, Mohammed Gamal wrote: Signed-off-by: Mohammed Gamalm.gamal...@gmail.com --- arch/x86/kvm/vmx.c | 11 +-- 1 files changed, 1 insertions(+), 10 deletions(-) diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 652d317..d6cb7eb 100644 ---

Re: [PATCH] KVM: x86 emulator: add bsf/bsr instruction emulation

2010-08-09 Thread Avi Kivity
On 08/09/2010 06:00 AM, Wei Yongjun wrote: Add bsf/bsr instruction emulation (opcode 0x0f 0xbc~0xbd) @@ -3464,6 +3464,30 @@ twobyte_insn: btc: /* btc */ emulate_2op_SrcV_nobyte(btc, c-src, c-dst, ctxt-eflags); break; + case 0xbc: {

Re: [PATCH 5/24] Introduce vmcs12: a VMCS structure for L1

2010-08-09 Thread Avi Kivity
On 08/08/2010 11:09 AM, Nadav Har'El wrote: +page table (with bypass_guest_pf disabled). Might as well remove this, since nvmx will not be merged with such a gaping hole. In theory I ought to reject anything that doesn't comply with the spec. In practice I'll accept deviations from the

Re: Credit-Based CPU Scheduling Modifying VM Disk Size

2010-08-09 Thread David S. Ahern
On 08/09/10 15:51, Daniel P. Berrange wrote: - Modify VM's Disk Size qemu-img can copy disks, resizing as it does it. For raw disks just dd extra sace onto the end of it (with a suitable seek= param to avoid killing your existing data :-) Daniel New versions of qemu-img have a 'resize'

[PATCH v2] KVM: x86 emulator: add bsf/bsr instruction emulation

2010-08-09 Thread Wei Yongjun
Add bsf/bsr instruction emulation (opcode 0x0f 0xbc~0xbd) Signed-off-by: Wei Yongjun yj...@cn.fujitsu.com --- v1 - v2: use 'u8 zf' instead of int. --- arch/x86/kvm/emulate.c | 28 ++-- 1 files changed, 26 insertions(+), 2 deletions(-) diff --git