[PATCH] kvm: external module: change the priority for include directories

2008-10-14 Thread Avi Kivity
From: Zhang Xiantao [EMAIL PROTECTED] To aovid using uncorrect kernel header files for module compile. Signed-off-by: Zhang Xiantao [EMAIL PROTECTED] Signed-off-by: Avi Kivity [EMAIL PROTECTED] diff --git a/kernel/ia64/Makefile.pre b/kernel/ia64/Makefile.pre index c55ea0f..fa8cefd 100644 ---

Re: with kerenl 2.6.27, CONFIG_KVM_GUEST does not work

2008-10-14 Thread Xavier Gnata
Held Bernhard wrote: Does the attached work for you? Avi, do you have thoughts on how to proceed with pvmmu? Using hypercalls instead of faults can still be beneficial (for the first write before page goes out of sync, or for non-leaf tables which currently don't go oos). But at the current

Re: with kerenl 2.6.27, CONFIG_KVM_GUEST does not work

2008-10-14 Thread Bernhard Held
Using this patch on a vanilla 2.6.27 kernel, I get this when I try to compile it: arch/x86/kvm/mmu.c: In function ‘kvm_pv_mmu_flush_tlb’: arch/x86/kvm/mmu.c:2241: error: ‘KVM_REQ_MMU_SYNC’ undeclared (first use in this function) arch/x86/kvm/mmu.c:2241: error: (Each undeclared identifier is

[PATCH 1/1] kvm: add cscope for whole userspace

2008-10-14 Thread Sheng Yang
Notice that the patch exclude kernel directory in cscope.files of userspace. Signed-off-by: Sheng Yang [EMAIL PROTECTED] --- Makefile |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index 402c3e9..6581679 100644 --- a/Makefile +++ b/Makefile @@

RE: PCI passthrough = NMIs

2008-10-14 Thread Han, Weidong
Zwane Mwaikambo wrote: Hi, I've been trying to get a Linux guest working with PCI passthrough of an ethernet card using the vtd branches. The device detection works and the guest reports a link, however as soon as i try and ping the guest it receives an NMI (i'm guessing this is PCI DMA

Re: Running KVM inside a KVM guest.

2008-10-14 Thread Alexander Graf
Hi jd, On 14.10.2008, at 01:34, jd wrote: Hi Is it possible to install and use KVM in a guest VM ? I need this for testing so, a reasonable performance is fine. Yes, with AMD CPUs and my nested KVM patchset. I am planning to improve it this week (if my tooth operation goes well :-(), so

[PATCH 1/1] KVM: Clean up kvm_x86_emulate.h

2008-10-14 Thread Sheng Yang
Remove one left improper comment of removed CR2. Signed-off-by: Sheng Yang [EMAIL PROTECTED] --- include/asm-x86/kvm_x86_emulate.h | 10 +++--- 1 files changed, 3 insertions(+), 7 deletions(-) diff --git a/include/asm-x86/kvm_x86_emulate.h b/include/asm-x86/kvm_x86_emulate.h index

[PATCH 0/8 v4] PCI: Linux kernel SR-IOV support

2008-10-14 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. [PATCH

RE: [v2] Shared guest irq support

2008-10-14 Thread Zhang, Xiantao
Hi, Amit/Sheng See the comments below. Xiantao Amit Shah wrote: Sheng, can you check if this is fine? I'll need some time to test this. Amit index 71e37a5..6f0af16 100644 --- a/arch/x86/kvm/irq.h +++ b/arch/x86/kvm/irq.h @@ -32,6 +32,8 @@ #define PIC_NUM_PINS 16

Re: [PATCH 5/5] kvm: qemu: Improve virtio_net recv buffer allocation scheme

2008-10-14 Thread Mark McLoughlin
On Sun, 2008-10-12 at 12:00 +0200, Avi Kivity wrote: Mark McLoughlin wrote: diff --git a/qemu/hw/virtio-net.c b/qemu/hw/virtio-net.c index 403247b..afa5fe5 100644 --- a/qemu/hw/virtio-net.c +++ b/qemu/hw/virtio-net.c @@ -34,9 +34,13 @@ #define VIRTIO_NET_F_HOST_TSO6 12 /*

Re: [PATCH][RFC] vmchannel a data channel between host and guest.

2008-10-14 Thread Anthony Liguori
Gleb Natapov wrote: On Mon, Oct 13, 2008 at 01:32:35PM -0500, Anthony Liguori wrote: netlink was designed to be interface to userspace and is used like this by different subsystems (not just network). What full blown socket (and by that I presume you mean new address family) will give you

[PATCH 7/8 v4] PCI: reserve bus range for the SR-IOV device

2008-10-14 Thread Yu Zhao
Reserve bus range for SR-IOV at device scanning stage. Signed-off-by: Yu Zhao [EMAIL PROTECTED] --- drivers/pci/iov.c | 24 drivers/pci/pci.h |5 + drivers/pci/probe.c |3 +++ 3 files changed, 32 insertions(+), 0 deletions(-) diff --git

Re: [PATCH][RFC] Prepare virtio for upstream QEMU merging

2008-10-14 Thread Anthony Liguori
Avi Kivity wrote: Anthony Liguori wrote: For merging virtio, I thought I'd try a different approach from the fix out of tree and merge all at once approach I took with live migration. What I would like to do is make some minimal changes to virtio in kvm-userspace so that some form of virtio

Re: [kvm] Re: [PATCH 0/5] bios: 4G updates

2008-10-14 Thread Glauber Costa
On Tue, Oct 14, 2008 at 2:17 PM, Avi Kivity [EMAIL PROTECTED] wrote: Anthony Liguori wrote: I'd like the seabios repository to be a git submodule, so we don't have to rewrite stuff. So I'll experiment a bit with git submodules and pull it in soon. Are you willing to do a flag day and

Re: [PATCH 6/8 v4] PCI: support the SR-IOV capability

2008-10-14 Thread Greg KH
On Tue, Oct 14, 2008 at 06:59:28PM +0800, Yu Zhao wrote: +struct pci_iov { + int cap;/* capability position */ + int align; /* page size used to map memory space */ + int is_enabled; /* status of SR-IOV */ + int nentries; /*

Re: [Qemu-devel] [RFC] Disk integrity in QEMU

2008-10-14 Thread Avi Kivity
Izik Eidus wrote: But when using O_DIRECT you actuality make the pages not swappable at all... or am i wrong? Only for the duration of the I/O operation, which is typically very short. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic. -- To unsubscribe

Re: [kvm] Re: [PATCH 0/5] bios: 4G updates

2008-10-14 Thread Anthony Liguori
Avi Kivity wrote: As an aside, is there any interest in using SeaBIOS with kvm? There is a great interest. I just don't know time frame for this. Avi? I'd like the seabios repository to be a git submodule, so we don't have to rewrite stuff. So I'll experiment a bit with

Re: [PATCH][RFC] vmchannel a data channel between host and guest.

2008-10-14 Thread Gleb Natapov
On Tue, Oct 14, 2008 at 08:50:48AM -0500, Anthony Liguori wrote: Gleb Natapov wrote: On Mon, Oct 13, 2008 at 01:32:35PM -0500, Anthony Liguori wrote: netlink was designed to be interface to userspace and is used like this by different subsystems (not just network). What full blown socket

Re: [PATCH][RFC] Prepare virtio for upstream QEMU merging

2008-10-14 Thread Anthony Liguori
Avi Kivity wrote: Anthony Liguori wrote: Why not merge these bits prior to merging virtio? They aren't kvm specific and would be good in mainline qemu. I'd rather have a consumer of an interface before merging the actual infrastructure. So merge them all into qemu at the

Re: [PATCH][RFC] vmchannel a data channel between host and guest.

2008-10-14 Thread Anthony Liguori
Gleb Natapov wrote: On Tue, Oct 14, 2008 at 08:50:48AM -0500, Anthony Liguori wrote: Gleb Natapov wrote: On Mon, Oct 13, 2008 at 01:32:35PM -0500, Anthony Liguori wrote: netlink was designed to be interface to userspace and is used like this by different subsystems (not just

Re: [kvm] [patch 00/13] out of sync shadow v3

2008-10-14 Thread Alex Williamson
On Mon, 2008-09-22 at 16:16 -0300, Marcelo Tosatti wrote: Adressing v2 comments, and with an option to disable oos. Windows 2003 DDK build (4-way guest) results: mainline oos 04:37 03:42( ~= -20% ) kernel builds on 4-way guest improve by 10%. I'm seeing problems with this using

Re: Running KVM inside a KVM guest.

2008-10-14 Thread jd
Hi Alex, Wish u good luck for your operation. Good to hear that this is possible and on AMD, as I have one AMD machine that I can play around with. I will try it out when I get a chance. Thanks /Jd --- On Tue, 10/14/08, Alexander Graf [EMAIL PROTECTED] wrote: From: Alexander Graf

Re: [PATCH 6/8 v4] PCI: support the SR-IOV capability

2008-10-14 Thread Matthew Wilcox
On Tue, Oct 14, 2008 at 06:59:28PM +0800, Yu Zhao wrote: +++ b/drivers/pci/pci.h @@ -176,4 +176,59 @@ static inline int pci_ari_enabled(struct pci_dev *dev) +struct pci_iov { + int cap;/* capability position */ + int align; /* page size used to map memory

Re: [PATCH][RFC] Prepare virtio for upstream QEMU merging

2008-10-14 Thread Avi Kivity
Anthony Liguori wrote: For merging virtio, I thought I'd try a different approach from the fix out of tree and merge all at once approach I took with live migration. What I would like to do is make some minimal changes to virtio in kvm-userspace so that some form of virtio could be merged

[PATCH 5/8 v4] PCI: add a new function to map BAR offset

2008-10-14 Thread Yu Zhao
Add a new function to map resource number to base register (offset and type). Signed-off-by: Yu Zhao [EMAIL PROTECTED] --- drivers/pci/pci.c | 22 ++ drivers/pci/pci.h |2 ++ drivers/pci/setup-res.c | 13 + 3 files changed, 29 insertions(+), 8

Re: [kvm] Re: [PATCH 0/5] bios: 4G updates

2008-10-14 Thread Avi Kivity
Anthony Liguori wrote: I'd like the seabios repository to be a git submodule, so we don't have to rewrite stuff. So I'll experiment a bit with git submodules and pull it in soon. Are you willing to do a flag day and switch from the Bochs BIOS to seabios and deal with the regressions? If

[PATCH 1/8 v4] PCI: define PCI resource names in an 'enum'

2008-10-14 Thread Yu Zhao
This patch moves all definitions of PCI resource names to an 'enum', and also replaces some hard-coded resource variables with symbol names. This change eases the introduction of device specific resources. Signed-off-by: Yu Zhao [EMAIL PROTECTED] --- drivers/pci/pci-sysfs.c |4 +++-

[PATCH 3/8 v4] PCI: export pci_alloc_child_bus

2008-10-14 Thread Yu Zhao
Export pci_alloc_child_bus(), and make it be able to handle buses without bridge devices. Some devices such as SR-IOV devices use more than one bus number while there is no explicit bridge devices since they have internal routing mechanism. Signed-off-by: Yu Zhao [EMAIL PROTECTED] ---

[PATCH 6/8 v4] PCI: support the SR-IOV capability

2008-10-14 Thread Yu Zhao
Support Single Root I/O Virtualization (SR-IOV) capability. Signed-off-by: Yu Zhao [EMAIL PROTECTED] --- drivers/pci/Kconfig | 12 + drivers/pci/Makefile |2 + drivers/pci/iov.c| 853 ++ drivers/pci/pci-sysfs.c |4 +

[PATCH 2/8 v4] PCI: export __pci_read_base

2008-10-14 Thread Yu Zhao
Export __pci_read_base() so it can be used by whole PCI subsystem. Signed-off-by: Yu Zhao [EMAIL PROTECTED] --- drivers/pci/pci.h |9 + drivers/pci/probe.c | 20 +--- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/drivers/pci/pci.h

Re: [kvm] [patch 00/13] out of sync shadow v3

2008-10-14 Thread Alex Williamson
On Tue, 2008-10-14 at 12:37 -0600, Alex Williamson wrote: I'm seeing problems with this using a Debian Lenny guest, it gets glibc realloc errors in the init scripts/initramfs. Using -no-kvm or setting oos_shadow=0 works around the problem. I also confirmed it was introduced in commit

[PATCH 4/8 v4] PCI: add a wrapper for resource_alignment

2008-10-14 Thread Yu Zhao
Add a wrap of resource_alignment so it can handle device specific resource alignment. Signed-off-by: Yu Zhao [EMAIL PROTECTED] --- drivers/pci/pci.c | 25 + drivers/pci/pci.h |1 + drivers/pci/setup-bus.c |4 ++-- drivers/pci/setup-res.c |7

Re: [PATCH][RFC] vmchannel a data channel between host and guest.

2008-10-14 Thread Gleb Natapov
On Mon, Oct 13, 2008 at 01:32:35PM -0500, Anthony Liguori wrote: Gleb Natapov wrote: Hello, Sometimes there is a need to pass various bits of information between host and guest (mostly for management purposes such as host screen resolution changes or runtime statistics of a guest). To do

Re: [kvm] Re: [PATCH 0/5] bios: 4G updates

2008-10-14 Thread Avi Kivity
As an aside, is there any interest in using SeaBIOS with kvm? There is a great interest. I just don't know time frame for this. Avi? I'd like the seabios repository to be a git submodule, so we don't have to rewrite stuff. So I'll experiment a bit with git submodules and pull it in

[PATCH 8/8 v4] PCI: document the changes

2008-10-14 Thread Yu Zhao
Create how-to for SR-IOV user and device driver developer. Signed-off-by: Yu Zhao [EMAIL PROTECTED] --- Documentation/DocBook/kernel-api.tmpl |1 + Documentation/PCI/pci-iov-howto.txt | 222 + 2 files changed, 223 insertions(+), 0 deletions(-) create mode

Re: [kvm] Re: [PATCH 0/5] bios: 4G updates

2008-10-14 Thread Kevin O'Connor
On Tue, Oct 14, 2008 at 05:29:12PM +0200, Avi Kivity wrote: As an aside, is there any interest in using SeaBIOS with kvm? There is a great interest. I just don't know time frame for this. Avi? I'd like the seabios repository to be a git submodule, so we don't have to

Re: [PATCH 6/8 v4] PCI: support the SR-IOV capability

2008-10-14 Thread Zhao, Yu
Matthew Wilcox wrote: On Tue, Oct 14, 2008 at 06:59:28PM +0800, Yu Zhao wrote: +++ b/include/linux/pci.h @@ -87,6 +87,12 @@ enum { /* #6: expansion ROM */ PCI_ROM_RESOURCE, + /* device specific resources */ +#ifdef CONFIG_PCI_IOV + PCI_IOV_RESOURCES, +

Re: [kvm] [patch 00/13] out of sync shadow v3

2008-10-14 Thread Marcelo Tosatti
On Tue, Oct 14, 2008 at 04:08:10PM -0600, Alex Williamson wrote: On Tue, 2008-10-14 at 12:37 -0600, Alex Williamson wrote: I'm seeing problems with this using a Debian Lenny guest, it gets glibc realloc errors in the init scripts/initramfs. Using -no-kvm or setting oos_shadow=0 works

Re: [v2] Shared guest irq support

2008-10-14 Thread Sheng Yang
On Tuesday 14 October 2008 16:45:19 Zhang, Xiantao wrote: Hi, Amit/Sheng See the comments below. Hi Amit Can you help to update the patch? Thanks! And minor comments below. Xiantao Amit Shah wrote: Sheng, can you check if this is fine? I'll need some time to test this.

Re: [kvm] [patch 00/13] out of sync shadow v3

2008-10-14 Thread Alex Williamson
On Wed, 2008-10-15 at 00:37 -0200, Marcelo Tosatti wrote: I forgot to mention that this only happens with the Debian 2.6.26 kernel, if you end up with the 2.6.24 kernel after install, try an 'apt-get update apt-get dist-upgrade' and reboot to get the newer kernel. Hi Alex, Can you