Re: Issues with virtio_net in multiple guests?

2009-03-11 Thread Ken Robertson
Jim, That was it! I didn't realize there was some significance of certain bits within the address. Changing that first byte resolved the issue. Should I be setting the 2nd bit in the LSB to 1? I started logging into all the systems I have access to and realized all of them have 00 as the first

Re: Issues with virtio_net in multiple guests?

2009-03-11 Thread Jim Paris
Ken Robertson wrote: > Hoping someone can help me track down an issue I'm experiencing on a > KVM machine I built recently. ... > SIOCSIFFLAGS: Cannot assign requested address > > The address isn't in use or anything, so no reason I can think of why > it can't assign it. It recognizes the device,

Issues with virtio_net in multiple guests?

2009-03-11 Thread Ken Robertson
Hoping someone can help me track down an issue I'm experiencing on a KVM machine I built recently. I currently have 4 VMs built and running all using virtio_net. The VMs are stock builds of Debian Lenny, Ubuntu 8.10, Ubuntu 8.04, and one with Ubuntu 8.04 with the 2.6.27 kernel in 8.10. The netwo

RE: x86: use smp_send_reschedule in kvm_vcpu_kick

2009-03-11 Thread Zhang, Xiantao
Avi Kivity wrote: > Marcelo Tosatti wrote: >> OK, reworked patch: >> - change ia64 in addition to x86 >> - add comment on smp send reschedule handlers about KVM's usage >> >> Untested on IA64. >> >> KVM: use smp_send_reschedule in kvm_vcpu_kick >> >> KVM uses a function call IPI to cause the exi

Re: [Qemu-devel] Re: Problems KVM-84

2009-03-11 Thread Uri Lublin
Jamie Lokier wrote: Anthony Liguori wrote: block-qcow2: keep highest allocated byte (Uri Lublin) We want to know the highest written offset for qcow2 images. This gives a pretty good (and easy to calculate) estimation to how much more allocation can be done for the block device. It

Re: kvm-autotest -- introducing kvm_runtest_2

2009-03-11 Thread Ryan Harper
* Michael Goldish [2009-03-11 03:02]: > > We've also been creating stepfiles for Linux guests as well that > > aren't > > here, various SLES and RHEL installs -- and I've repeatedly seen the > > same issue where the cropped region *should* match but isn't, and it > > isn't a result of any of the v

Re: [Qemu-devel] Re: Problems KVM-84

2009-03-11 Thread Anthony Liguori
Avi Kivity wrote: Anthony Liguori wrote: Scanning the file at startup is slow. We need to find a better way. Any quick ideas? Seems like this is broken by design. I agree. Unless we can find a quick fix, I'm going to revert this in the stable tree. We could cache the value in some u

Re: potential gcc bug causes kvm-userspace build break

2009-03-11 Thread Anthony Liguori
Glauber Costa wrote: On Wed, Mar 11, 2009 at 3:30 PM, Jochen Roth wrote: Glauber Costa wrote: On Wed, Mar 11, 2009 at 3:10 PM, Jochen Roth wrote: FYI I just discovered a potential gcc bug which causes kvm-userspace builds to break. I looks like it happens only with the latest

Re: Problems KVM-84

2009-03-11 Thread Uri Lublin
Anthony Liguori wrote: Avi Kivity wrote: Jay Mann wrote: Hi, I just downloaded built and installed kvm-84 on ubuntu Hardy x64 2.6.24-23- server and I’m getting the following 2 problems that did not exists in kvm-83. 1.The qemu emulater (bios screen) takes a long time to start (~10 se

Re: potential gcc bug causes kvm-userspace build break

2009-03-11 Thread Glauber Costa
On Wed, Mar 11, 2009 at 3:30 PM, Jochen Roth wrote: > Glauber Costa wrote: >> >> On Wed, Mar 11, 2009 at 3:10 PM, Jochen Roth >> wrote: >>> >>> FYI >>> >>> I just discovered a potential gcc bug which causes kvm-userspace builds >>> to >>> break. >>> I looks like it happens only with the latest fe

Re: potential gcc bug causes kvm-userspace build break

2009-03-11 Thread Jochen Roth
Glauber Costa wrote: On Wed, Mar 11, 2009 at 3:10 PM, Jochen Roth wrote: FYI I just discovered a potential gcc bug which causes kvm-userspace builds to break. I looks like it happens only with the latest fedora rawhide gcc 4.4 https://bugzilla.redhat.com/show_bug.cgi?id=489753 The following p

Re: potential gcc bug causes kvm-userspace build break

2009-03-11 Thread Glauber Costa
On Wed, Mar 11, 2009 at 3:10 PM, Jochen Roth wrote: > FYI > > I just discovered a potential gcc bug which causes kvm-userspace builds to > break. > I looks like it happens only with the latest fedora rawhide gcc 4.4 > https://bugzilla.redhat.com/show_bug.cgi?id=489753 > > The following patch circu

potential gcc bug causes kvm-userspace build break

2009-03-11 Thread Jochen Roth
FYI I just discovered a potential gcc bug which causes kvm-userspace builds to break. I looks like it happens only with the latest fedora rawhide gcc 4.4 https://bugzilla.redhat.com/show_bug.cgi?id=489753 The following patch circumvents this problem by just renaming R to REG. People facing the

Re: new wiki missing pages?

2009-03-11 Thread Hollis Blanchard
On Wednesday 11 March 2009 04:05:10 Avi Kivity wrote: > Hollis Blanchard wrote: > > Hi, I notice the old wiki has been replaced with > > http://www.linux-kvm.org/ ... unfortunately it seems to be missing *all* > > PowerPC information. Can this be recovered please? > > > > I have no idea what other

Re: [Qemu-devel] Re: Problems KVM-84

2009-03-11 Thread Jamie Lokier
Anthony Liguori wrote: > > block-qcow2: keep highest allocated byte (Uri Lublin) > > We want to know the highest written offset for qcow2 images. > > This gives a pretty good (and easy to calculate) estimation to how > > much more allocation can be done for the block device. > > It ca

Re: Problem with KVM-84 and more than 4 processors

2009-03-11 Thread Matthias Hovestadt
Hi! I am unable to reproduce - 'modprobe kvm' gets me the expected lsmod line. Can you reproduce with plain 2.6.27 instead of the gentoo build? No, with a vanilla kernel from kernel.org it seems to work fine. asok04 ~ # uname -a Linux asok04 2.6.27.19 #1 SMP Wed Mar 11 15:59:54 CET 2009 x86_6

Re: [Qemu-devel] Re: Problems KVM-84

2009-03-11 Thread Avi Kivity
Anthony Liguori wrote: Scanning the file at startup is slow. We need to find a better way. Any quick ideas? Seems like this is broken by design. I agree. Unless we can find a quick fix, I'm going to revert this in the stable tree. We could cache the value in some unused area. Set it

Re: Problems KVM-84

2009-03-11 Thread Anthony Liguori
Avi Kivity wrote: Jay Mann wrote: Hi, I just downloaded built and installed kvm-84 on ubuntu Hardy x64 2.6.24-23- server and I’m getting the following 2 problems that did not exists in kvm-83. 1.The qemu emulater (bios screen) takes a long time to start (~10 seconds), and subsequently

network source redirection after kvm start

2009-03-11 Thread Oliver Rath
Hi, Im new to this group, so let me know if i do something wrong. Im testing kvm here (runs almost fine), but there is a strange effect if I start kvm with tun/tap-devices I.e. a cups-server runs on localhost and accepts only localhost administration. If I make an request, tcpdump shows somethin

Re: [PATCH] KVM: make 'lapic_timer_ops' and 'kpit_ops' static

2009-03-11 Thread Avi Kivity
Hannes Eder wrote: Fix this sparse warnings: arch/x86/kvm/lapic.c:916:22: warning: symbol 'lapic_timer_ops' was not declared. Should it be static? arch/x86/kvm/i8254.c:268:22: warning: symbol 'kpit_ops' was not declared. Should it be static? Applied, thanks. -- error compiling commit

Re: kvm-autotest -- introducing kvm_runtest_2

2009-03-11 Thread Ryan Harper
* Michael Goldish [2009-03-11 03:08]: > > > I'd like to comment on this. I don't doubt that some fuzzy matching > > > algorithm (such as calculating match percentages) would generally > > be > > > more robust. I do however doubt it would significantly lower the > > false > > > positive rate in our

an advice.

2009-03-11 Thread Mauro
Without flames please. First of all sorry for my bad english, I'm italian. I have a Proliant DL580 G5 server, with 4 Xeon Quad Core processor and 16Gb ram. I want to use virtualization. With my first Proliant server I've installed a debian lenny system with xen, anche it works well. Now, for my pro

Re: Problems KVM-84

2009-03-11 Thread Avi Kivity
Jay Mann wrote: Hi, I just downloaded built and installed kvm-84 on ubuntu Hardy x64 2.6.24-23- server and I’m getting the following 2 problems that did not exists in kvm-83. 1. The qemu emulater (bios screen) takes a long time to start (~10 seconds), and subsequently Libvirt times out when I

Re: Problem with KVM-84 and more than 4 processors

2009-03-11 Thread Avi Kivity
Matthias Hovestadt wrote: Hi! Manually loading the kvm_intel module fails with an "Cannot allocate memory" error. Also starting VMs fails since he is unable to find /dev/kvm. Looks like a memory corruption issue. Please post your .config. Here it is... I am unable to reproduce - 'mod

[PATCH] fix ia64 compilation

2009-03-11 Thread Gleb Natapov
Signed-off-by: Gleb Natapov diff --git a/arch/ia64/kvm/kvm-ia64.c b/arch/ia64/kvm/kvm-ia64.c index c25347f..906d597 100644 --- a/arch/ia64/kvm/kvm-ia64.c +++ b/arch/ia64/kvm/kvm-ia64.c @@ -327,7 +327,7 @@ static void vcpu_deliver_ipi(struct kvm_vcpu *vcpu, uint64_t dm, case SAPIC_PMI:

[PATCH] do not free active mmu pages in free_mmu_pages()

2009-03-11 Thread Gleb Natapov
free_mmu_pages() should only undo what alloc_mmu_pages() does. Signed-off-by: Gleb Natapov diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 2a36f7f..b625ed4 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c @@ -2638,14 +2638,6 @@ EXPORT_SYMBOL_GPL(kvm_disable_tdp); static void

Re: new wiki missing pages?

2009-03-11 Thread Avi Kivity
Ryan Harper wrote: * Hollis Blanchard [2009-03-10 13:46]: Hi, I notice the old wiki has been replaced with http://www.linux-kvm.org/ ... unfortunately it seems to be missing *all* PowerPC information. Can this be recovered please? I have no idea what other pages may be missing. http:

Re: new wiki missing pages?

2009-03-11 Thread Avi Kivity
Hollis Blanchard wrote: Hi, I notice the old wiki has been replaced with http://www.linux-kvm.org/ ... unfortunately it seems to be missing *all* PowerPC information. Can this be recovered please? I have no idea what other pages may be missing. (copying smintz) -- error compiling committee

Re: kvm-autotest -- introducing kvm_runtest_2

2009-03-11 Thread Michael Goldish
- "Ryan Harper" wrote: > * Michael Goldish [2009-03-10 20:55]: > > > > - "Ryan Harper" wrote: > > > > > > >- guest install wizard using md5sum region matching ... ouch. > This > > > is > > > > >quite fickle. I've seen different kvms generate different > md5sum > > > for > > > > >th

[PATCH v11 5/8] PCI: add SR-IOV API for Physical Function driver

2009-03-11 Thread Yu Zhao
Add or remove the Virtual Function when the SR-IOV is enabled or disabled by the device driver. This can happen anytime rather than only at the device probe stage. Signed-off-by: Yu Zhao --- drivers/pci/iov.c | 314 +++ drivers/pci/pci.h |

[PATCH v11 8/8] PCI: manual for SR-IOV user and driver developer

2009-03-11 Thread Yu Zhao
Signed-off-by: Yu Zhao --- 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 a/Documentation/DocBook

[PATCH v11 6/8] PCI: handle SR-IOV Virtual Function Migration

2009-03-11 Thread Yu Zhao
Add or remove a Virtual Function after receiving a Migrate In or Out Request. Signed-off-by: Yu Zhao --- drivers/pci/iov.c | 119 +++ drivers/pci/pci.h |4 ++ include/linux/pci.h |6 +++ 3 files changed, 129 insertions(+), 0 deletions(

[PATCH v11 7/8] PCI: document SR-IOV sysfs entries

2009-03-11 Thread Yu Zhao
Signed-off-by: Yu Zhao --- 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 e638e15..36edf03 100644 --- a/Documentati

[PATCH v11 3/8] PCI: reserve bus range for SR-IOV device

2009-03-11 Thread Yu Zhao
Reserve the bus number range used by the Virtual Function when pcibios_assign_all_busses() returns true. Signed-off-by: Yu Zhao --- drivers/pci/iov.c | 36 drivers/pci/pci.h |5 + drivers/pci/probe.c |3 +++ 3 files changed, 44 insertions(+)

[PATCH v11 2/8] PCI: restore saved SR-IOV state

2009-03-11 Thread Yu Zhao
Restore the volatile registers in the SR-IOV capability after the D3->D0 transition. Signed-off-by: Yu Zhao --- drivers/pci/iov.c | 29 + drivers/pci/pci.c |1 + drivers/pci/pci.h |4 3 files changed, 34 insertions(+), 0 deletions(-) diff --git a/drive

[PATCH v11 4/8] PCI: centralize device setup code

2009-03-11 Thread Yu Zhao
Move the device setup stuff into pci_setup_device() which will be used to setup the Virtual Function later. Signed-off-by: Yu Zhao --- drivers/pci/pci.h |1 + drivers/pci/probe.c | 79 ++- 2 files changed, 41 insertions(+), 39 deletions(-)

[PATCH v11 1/8] PCI: initialize and release SR-IOV capability

2009-03-11 Thread Yu Zhao
If a device has the SR-IOV capability, initialize it (set the ARI Capable Hierarchy in the lowest numbered PF if necessary; calculate the System Page Size for the VF MMIO, probe the VF Offset, Stride and BARs). A lock for the VF bus allocation is also initialized if a PF is the lowest numbered PF.

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

2009-03-11 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 s