[PATCH] kvm: testsuite: add regression test for MSR_KERNEL_GS_BASE

2009-02-16 Thread Avi Kivity
From: Avi Kivity a...@redhat.com kvm used to read host values from this msr. Signed-off-by: Avi Kivity a...@redhat.com diff --git a/user/config-x86-common.mak b/user/config-x86-common.mak index 315091a..e789fd4 100644 --- a/user/config-x86-common.mak +++ b/user/config-x86-common.mak @@ -21,7

[PATCH] Fix hardware accelerated video to video copy on Cirrus VGA (Brian Kress)

2009-02-16 Thread Avi Kivity
From: aliguori aliguori cirrus_do_copy() in hw/cirrus_vga.c seems to make some incorrect assumptions about video memory layout. It tries to convert addresses to coordinates assuming that one row of data is (width * depth) bytes long. The correct way seems to be to use the pitch fields in the

[PATCH] Merge branch 'qemu-cvs'

2009-02-16 Thread Avi Kivity
From: Avi Kivity a...@redhat.com Conflicts: qemu/Makefile.target qemu/hw/acpi.c qemu/hw/device-hotplug.c qemu/hw/ide.c qemu/hw/lsi53c895a.c qemu/hw/pc.c qemu/hw/pc.h qemu/hw/pci.c qemu/hw/pci.h qemu/hw/virtio-blk.c

[PATCH]remove some redundant args for ipf

2009-02-16 Thread Zhang, Yang
Hi This patch remove some redundant args in function pci_vga_init(),isa_vga_init(), rtc_init() in ipf.c Please review it yang From 2a7c4cdf02c992da36f25bfe62ab1e4b0d9e3e91 Mon Sep 17 00:00:00 2001 From: Yang Zhang Yang Zhang Date: Mon, 16 Feb 2009 01:17:52 -0600 Subject: [PATCH] kvm : qemu:

[PATCH] kvm: userspace: Get all cpuid values from function 2

2009-02-16 Thread Amit Shah
cpuid function 2 can have multiple values to describe cache behaviour. Loop till we have fetched all the values. Signed-off-by: Amit Shah amit.s...@redhat.com --- qemu/qemu-kvm-x86.c | 27 +-- 1 files changed, 25 insertions(+), 2 deletions(-) diff --git

Re: [Qemu-devel] qcow2 corruption observed, fixed by reverting old change

2009-02-16 Thread Kevin Wolf
Jamie Lokier schrieb: Kevin Wolf wrote: Besides reviewing the code over and over again, I think the only real chance is that you can get a non-productive copy of your image and add some debug code so that we can see at least which code path is causing problems. I have a copy of my image to

Re: Running KVM on a Laptop

2009-02-16 Thread Andre Przywara
Ross McKay wrote: dnjap wrote: I'm looking for a laptop on which I can run KVM. 1. Does anyone have a list of AMD-V or VT-x capable laptop CPU's? Is it not as simple as checking for the svm or vt flags? egrep '(vt|svm)' /proc/cpuinfo Take a bootable LiveCD into your local computer

Re: Running KVM on a Laptop

2009-02-16 Thread Bryon Roche
On Fri, 13 Feb 2009 12:56:56 +1100, Ross McKay wrote: NB: don't use recent sources (post v80) if you want to run compressed qcow2 images, as you'll only get corruption. I was told on this list that QEMU has resolved the problem but that the patch hasn't been ported across to the KVM branch

Re: [ANNOUNCE] kvm-84 release

2009-02-16 Thread Randy Smith
Avi Kivity wrote: A long list of changes due to an unusually late release. As is becoming usual, many of the changes come from upstream qemu; the kvm specific changes are mostly bugfixes, but also include infrastructure intended for message-signalled interrupts (MSI). kvm-84 is slower when

Re: Porting KVM to Mac OS?

2009-02-16 Thread Neo Jia
On Sun, Jan 25, 2009 at 10:00 AM, Anthony Liguori anth...@codemonkey.ws wrote: Alexander Graf wrote: Hi, On 25.01.2009, at 09:16, Neo Jia wrote: hi, I am thinking if it is possible to port KVM to Mac OS (leopard). Is there anybody doing this already? I've considered doing it, but

Re: Porting KVM to Mac OS?

2009-02-16 Thread Alexander Graf
On 16.02.2009, at 19:01, Neo Jia neo...@gmail.com wrote: On Sun, Jan 25, 2009 at 10:00 AM, Anthony Liguori anth...@codemonkey.ws wrote: Alexander Graf wrote: Hi, On 25.01.2009, at 09:16, Neo Jia wrote: hi, I am thinking if it is possible to port KVM to Mac OS (leopard). Is there

KVM on Via Nano (Isaiah) CPUs?

2009-02-16 Thread Craig Metz
Has anyone (esp. the KVM core developers) tried to determine whether KVM works on the new Via Nano CPUs? They claim to support the Intel-style VT-x instruction set extensions and show up in cpuinfo that way. But, according to some Google searching, folks who have tried to use KVM (or Hyper-V)

How is the -smb switch supposed to work?

2009-02-16 Thread Tassilo Horn
Hi all, I've successfully installed KVM (version 83 with 2.6.28 kernel) and windows as guest. I start it with kvm -net nic,macaddr=46:0e:b3:53:9f:3a \ -net user -localtime -smb /home/horn \ ~/kvm/windows.img and basically it works fine. I have network access in the guest,

Re: Running KVM on a Laptop

2009-02-16 Thread Ross McKay
Bryon Roche wrote: If you're playing with kvm-git, you should be able to pull these fixes in via cherry picking 16f197e29c19a4366a1d2ba3dcd0b4b8b0f86ce6, then 86030aade7ae09f4cedfb13973e37ba30f3db073. Thanks, but I have other problems at present so I'm just accepting source tarballs to build

Re: [PATCH 1/3] KVM: Ioctls for init MSI-X entry

2009-02-16 Thread Marcelo Tosatti
On Mon, Feb 16, 2009 at 01:49:29PM +0800, Sheng Yang wrote: (oops... fix a typo) Introduce KVM_SET_MSIX_NR and KVM_SET_MSIX_ENTRY two ioctls. This two ioctls are used by userspace to specific guest device MSI-X entry number and correlate MSI-X entry with GSI during the initialization

Re: [PATCH] use KVM_UPSTREAM for ppc.

2009-02-16 Thread Dustin Kirkland
On 2/13/09, Glauber Costa glom...@redhat.com wrote: ppc should compile with upstream qemu code, so, put these defines in ppc specific code that references kvm functions. We don put them in config.h in this case, since there are files (like vl.c) that includes both kvm.h and qemu-kvm.h,

Re: [PATCH] include qemu-kvm.h at all cases.

2009-02-16 Thread Dustin Kirkland
On 2/12/09, Glauber Costa glom...@redhat.com wrote: We don't have any kind of kvm support for linux-user targets, but conditionalizing the inclusion of kvm header make linux-user compilation break. And we don't have a reason to prevent that, do we? Ack, again, same problem here. The lack

Re: [Qemu-devel] qcow2 corruption observed, fixed by reverting old change

2009-02-16 Thread Jamie Lokier
Kevin Wolf wrote: By the way and completely off-topic: Have you already tried to use the VHD patches? I would really like to know if they fix your problems. Are those patches in kvm-83? I still have the image that was causing problems way back, and I'm converting it to raw now with

Re: [PATCH 1/3] KVM: Ioctls for init MSI-X entry

2009-02-16 Thread Sheng Yang
On Tuesday 17 February 2009 07:23:23 Marcelo Tosatti wrote: On Mon, Feb 16, 2009 at 01:49:29PM +0800, Sheng Yang wrote: (oops... fix a typo) Introduce KVM_SET_MSIX_NR and KVM_SET_MSIX_ENTRY two ioctls. This two ioctls are used by userspace to specific guest device MSI-X entry number

[PATCH 1/3] KVM: Ioctls for init MSI-X entry

2009-02-16 Thread Sheng Yang
Introduce KVM_SET_MSIX_NR and KVM_SET_MSIX_ENTRY two ioctls. This two ioctls are used by userspace to specific guest device MSI-X entry number and correlate MSI-X entry with GSI during the initialization stage. MSI-X should be well initialzed before enabling. Don't support change MSI-X entry

RE: [PATCH]remove some redundant args for ipf

2009-02-16 Thread Zhang, Xiantao
Avi, Please help to check-in this patch, and it breaks ia64's build. Xiantao -Original Message- From: Zhang, Yang Sent: Monday, February 16, 2009 4:31 PM To: kvm-i...@vger.kernel.org Cc: kvm@vger.kernel.org; Avi Kivity; Zhang, Xiantao Subject: [PATCH]remove some redundant

[PATCH v9 0/7] PCI: Linux kernel SR-IOV support

2009-02-16 Thread Yu Zhao
Greetings, Following patches are intended to support SR-IOV capability in the Linux kernel. With these patches, people can turn a PCI device with the capability into multiple ones from software perspective, which will benefit KVM and achieve other purposes such as QoS, security, and etc. SR-IOV

[PATCH v9 2/7] PCI: restore saved SR-IOV state

2009-02-16 Thread Yu Zhao
Signed-off-by: Yu Zhao yu.z...@intel.com --- drivers/pci/iov.c | 25 + drivers/pci/pci.c |1 + drivers/pci/pci.h |4 3 files changed, 30 insertions(+), 0 deletions(-) diff --git a/drivers/pci/iov.c b/drivers/pci/iov.c index e6736d4..1cc879b 100644 ---

[PATCH v9 1/7] PCI: initialize and release SR-IOV capability

2009-02-16 Thread Yu Zhao
Signed-off-by: Yu Zhao yu.z...@intel.com --- drivers/pci/Kconfig | 13 drivers/pci/Makefile |3 + drivers/pci/iov.c| 181 ++ drivers/pci/pci.c|7 ++ drivers/pci/pci.h| 37 ++ drivers/pci/probe.c

[PATCH v9 3/7] PCI: reserve bus range for SR-IOV device

2009-02-16 Thread Yu Zhao
Signed-off-by: Yu Zhao yu.z...@intel.com --- drivers/pci/iov.c | 34 ++ drivers/pci/pci.h |5 + drivers/pci/probe.c |3 +++ 3 files changed, 42 insertions(+), 0 deletions(-) diff --git a/drivers/pci/iov.c b/drivers/pci/iov.c index

[PATCH v9 5/7] PCI: handle SR-IOV Virtual Function Migration

2009-02-16 Thread Yu Zhao
Signed-off-by: Yu Zhao yu.z...@intel.com --- drivers/pci/iov.c | 119 +++ drivers/pci/pci.h |4 ++ include/linux/pci.h |6 +++ 3 files changed, 129 insertions(+), 0 deletions(-) diff --git a/drivers/pci/iov.c b/drivers/pci/iov.c index

[PATCH v9 4/7] PCI: add SR-IOV API for Physical Function driver

2009-02-16 Thread Yu Zhao
Signed-off-by: Yu Zhao yu.z...@intel.com --- drivers/pci/iov.c | 348 +++ drivers/pci/pci.h |3 + include/linux/pci.h | 14 ++ 3 files changed, 365 insertions(+), 0 deletions(-) diff --git a/drivers/pci/iov.c b/drivers/pci/iov.c index

[PATCH v9 6/7] PCI: document SR-IOV sysfs entries

2009-02-16 Thread Yu Zhao
Signed-off-by: Yu Zhao yu.z...@intel.com --- Documentation/ABI/testing/sysfs-bus-pci | 27 +++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/Documentation/ABI/testing/sysfs-bus-pci b/Documentation/ABI/testing/sysfs-bus-pci index ceddcff..84dc100 100644

[PATCH v9 7/7] PCI: manual for SR-IOV user and driver developer

2009-02-16 Thread Yu Zhao
Signed-off-by: Yu Zhao yu.z...@intel.com --- Documentation/DocBook/kernel-api.tmpl |1 + Documentation/PCI/pci-iov-howto.txt | 99 + 2 files changed, 100 insertions(+), 0 deletions(-) create mode 100644 Documentation/PCI/pci-iov-howto.txt diff --git

[PATCH] kvm: fix typo of || to in arch/x86/kvm/vmx.c

2009-02-16 Thread Wei Yongjun
Fix the typo of || to . Signed-off-by: Wei Yongjun yj...@cn.fujitsu.com --- arch/x86/kvm/vmx.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 6259d74..3f3cab2 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@

Re: Running KVM on a Laptop

2009-02-16 Thread Ross McKay
Bryon Roche wrote: If you're playing with kvm-git, you should be able to pull these fixes in via cherry picking 16f197e29c19a4366a1d2ba3dcd0b4b8b0f86ce6, then 86030aade7ae09f4cedfb13973e37ba30f3db073. In fact, I compiled and installed kvm-84 today, and it seems to have resolved the problem