Re: [kvm-devel] GFXboot, Ubuntu and kvm git

2008-01-18 Thread Soren Hansen
On Fri, Jan 18, 2008 at 12:43:51AM +0200, Dor Laor wrote:
  I was under the impression that the kernel API should be backwards
  compatible, so I consider this a bug. Is there anything I can do to
  help debug this issue?

It's a bit odd. I was certain that I had had it running with the modules
from an older kernel version, but at least now I can't seem to find any
version that makes it work.


-- 
Soren Hansen
Ubuntu Server Team
http://www.ubuntu.com/


signature.asc
Description: Digital signature
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel


Re: [kvm-devel] GFXboot, Ubuntu and kvm git

2008-01-18 Thread Amit Shah
On Friday 18 January 2008 13:34:20 Soren Hansen wrote:
 On Fri, Jan 18, 2008 at 12:43:51AM +0200, Dor Laor wrote:
   I was under the impression that the kernel API should be backwards
   compatible, so I consider this a bug. Is there anything I can do to
   help debug this issue?

 It's a bit odd. I was certain that I had had it running with the modules
 from an older kernel version, but at least now I can't seem to find any
 version that makes it work.

You previously mentioned older modules didn't work, but modules from kvm-git 
worked. So now does even kvm-git not work? Is it the same kvm-git you tried 
earlier, or a new update?

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel


Re: [kvm-devel] GFXboot, Ubuntu and kvm git

2008-01-18 Thread Soren Hansen
On Fri, Jan 18, 2008 at 02:38:03PM +0530, Amit Shah wrote:
 I was under the impression that the kernel API should be backwards
 compatible, so I consider this a bug. Is there anything I can do to
 help debug this issue?
 It's a bit odd. I was certain that I had had it running with the
 modules from an older kernel version, but at least now I can't seem
 to find any version that makes it work.
 You previously mentioned older modules didn't work, but modules from
 kvm-git worked. So now does even kvm-git not work?

kvm-git works just fine. I meant that I couldn't find any version
shipped with our kernel images that works as expected.

I'll try to be more clear in the future. Sorry :)

-- 
Soren Hansen
Ubuntu Server Team
http://www.ubuntu.com/


signature.asc
Description: Digital signature
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel


Re: [kvm-devel] GFXboot, Ubuntu and kvm git

2008-01-18 Thread Amit Shah
On Friday 18 January 2008 14:44:42 Soren Hansen wrote:
 On Fri, Jan 18, 2008 at 02:38:03PM +0530, Amit Shah wrote:
  I was under the impression that the kernel API should be backwards
  compatible, so I consider this a bug. Is there anything I can do to
  help debug this issue?
 
  It's a bit odd. I was certain that I had had it running with the
  modules from an older kernel version, but at least now I can't seem
  to find any version that makes it work.
 
  You previously mentioned older modules didn't work, but modules from
  kvm-git worked. So now does even kvm-git not work?

 kvm-git works just fine. I meant that I couldn't find any version
 shipped with our kernel images that works as expected.

Hmm; does userspace from kvm-58 work fine with those modules? Any chance you 
could bisect userspace to find out which userspace make those modules work?

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel


[kvm-devel] [PATCH 0 of 6] Enhance PowerPC unit tests

2008-01-18 Thread Hollis Blanchard
These patches create libcflat for PowerPC and allow testcases to communicate
with kvmctl via MMIO. They culminate in a C testcase that returns an error code
through kvmctl to the shell.

The x86 Makefiles looked hairy enough that I didn't want to mess with them, but
it should be fairly easy to convert x86 to use the new test/lib/ files.

16 files changed, 436 insertions(+), 130 deletions(-)
user/Makefile |   15 +++-
user/config-powerpc.mak   |   65 +
user/config-x86-common.mak|6 ++-
user/iotable.c|   53 ++
user/iotable.h|   40 ++
user/main-ppc.c   |   65 +
user/main.c   |   52 +
user/test/lib/libcflat.h  |   37 +
user/test/lib/panic.c |   13 +++
user/test/lib/powerpc/44x/map.c   |   51 +
user/test/lib/powerpc/44x/tlbwe.S |   50 ++--
user/test/lib/powerpc/io.c|   35 +++
user/test/lib/printf.c|   21 +--
user/test/lib/string.c|2 -
user/test/powerpc/cstart.S|   38 +
user/test/powerpc/exit.c  |   23 +

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel


[kvm-devel] [PATCH 1 of 2] Define and use CONFIG_KVM_HAS_PIO so that we don't need pio_data in kvm_arch_vcpu

2008-01-18 Thread Hollis Blanchard
# HG changeset patch
# User Hollis Blanchard [EMAIL PROTECTED]
# Date 1200434310 21600
# Node ID 7fa5947a2da8c0c7424ebdcfaebcae624d6cf015
# Parent  ee0c227fe3f6632f4b1b5fde3f7e05c8ea0a4378

Signed-off-by: Hollis Blanchard [EMAIL PROTECTED]
Signed-off-by: Christian Ehrhardt [EMAIL PROTECTED]

---
2 files changed, 7 insertions(+)
arch/x86/kvm/Kconfig |5 +
virt/kvm/kvm_main.c  |2 ++


diff --git a/arch/x86/kvm/Kconfig b/arch/x86/kvm/Kconfig
--- a/arch/x86/kvm/Kconfig
+++ b/arch/x86/kvm/Kconfig
@@ -33,9 +33,13 @@ config KVM
 
  If unsure, say N.
 
+config KVM_HAS_PIO
+   bool
+
 config KVM_INTEL
tristate KVM for Intel processors support
depends on KVM
+   select KVM_HAS_PIO
---help---
  Provides support for KVM on Intel processors equipped with the VT
  extensions.
@@ -43,6 +47,7 @@ config KVM_AMD
 config KVM_AMD
tristate KVM for AMD processors support
depends on KVM
+   select KVM_HAS_PIO
---help---
  Provides support for KVM on AMD processors equipped with the AMD-V
  (SVM) extensions.
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -677,8 +677,10 @@ static int kvm_vcpu_fault(struct vm_area
 
if (vmf-pgoff == 0)
page = virt_to_page(vcpu-run);
+#ifdef CONFIG_KVM_HAS_PIO
else if (vmf-pgoff == KVM_PIO_PAGE_OFFSET)
page = virt_to_page(vcpu-arch.pio_data);
+#endif /* CONFIG_KVM_HAS_PIO */
else
return VM_FAULT_SIGBUS;
get_page(page);

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel


Re: [kvm-devel] [PATCH] add acpi powerbutton support

2008-01-18 Thread Avi Kivity
Avi Kivity wrote:

 I think we need to go back to active low pci irqs, and to have 
 no-ioapic working we need to insert an inverter between the pci irq 
 links and the pic.  I base this on the following:

 - piix doesn't contain an ioapic, so the actual lines must be active low
 - the piix pic elcr is documented as active-high for level-triggered 
 irqs


 Okay, this is likely right as I was able to shutdown both Windows and 
 Linux with the following:


No, it's wrong.

I found a piix4 acpi spec update that says that the SCI interrupt is 
hardwired to IRQ9 and is active high.  Linux knows about this and 
ignores the pci irq config for this function.  With the following changes

- change acpi sci interrupt to be hardwired to irq9
- remove irq 9 from acpi dsdt (since qemu can't mix isa irqs and pci 
irqs correctly)
- change the madt interrupt source override structure size to 10 (it was 
12, which caused Windows to ignore it)
- advertise the sci interrupt as tied to irq 9 in the fadt (instead of 
consulting the false pci config)

both Windows and Linux are happy.  I was even able to drop the forced 
pci irq enabling hack.

I'll push those changes tomorrow morning.  They are especially important 
with the acpi-based cpu and device hotplug that is brewing.

-- 
Any sufficiently difficult bug is indistinguishable from a feature.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel


Re: [kvm-devel] 2.6.24-rc8-mm1 (KVM build issues)

2008-01-18 Thread Balbir Singh
* Andrew Morton [EMAIL PROTECTED] [2008-01-17 02:35:14]:

 - kvm probably doesn't work properly because I couldn't be bothered fixing
   the conflicts between git-kvm and the driver tree
 

Hi, Andrew,

The following changes got KVM up and running for me


This patch fixes the kvm build on 2.6.24-rc8-mm1. First of all, it enables
the KVM build, the second fix moves kset_set_name to the .name member.

Signed-off-by: Balbir Singh [EMAIL PROTECTED]
---

 arch/x86/Makefile   |2 +-
 virt/kvm/kvm_main.c |2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff -puN arch/x86/Makefile~fix-kvm-build arch/x86/Makefile
--- linux-2.6.24-rc8/arch/x86/Makefile~fix-kvm-build2008-01-18 
22:42:41.0 +0530
+++ linux-2.6.24-rc8-balbir/arch/x86/Makefile   2008-01-18 22:42:47.0 
+0530
@@ -185,7 +185,7 @@ core-y += arch/x86/vdso/
 core-$(CONFIG_IA32_EMULATION) += arch/x86/ia32/
 
 # kvm host support - uncomment when merging
-# core-$(CONFIG_KVM) += arch/x86/kvm/
+core-$(CONFIG_KVM) += arch/x86/kvm/
 
 # drivers-y are linked after core-y
 drivers-$(CONFIG_MATH_EMULATION) += arch/x86/math-emu/
diff -puN virt/kvm/kvm_main.c~fix-kvm-build virt/kvm/kvm_main.c
--- linux-2.6.24-rc8/virt/kvm/kvm_main.c~fix-kvm-build  2008-01-18 
22:42:41.0 +0530
+++ linux-2.6.24-rc8-balbir/virt/kvm/kvm_main.c 2008-01-18 22:42:47.0 
+0530
@@ -1260,7 +1260,7 @@ static int kvm_resume(struct sys_device 
 }
 
 static struct sysdev_class kvm_sysdev_class = {
-   set_kset_name(kvm),
+   .name = kvm,
.suspend = kvm_suspend,
.resume = kvm_resume,
 };
_

-- 
Warm Regards,
Balbir Singh
Linux Technology Center
IBM, ISTL

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel


[kvm-devel] [ kvm-Bugs-1874203 ] qemu-kvm gives just black screen

2008-01-18 Thread SourceForge.net
Bugs item #1874203, was opened at 2008-01-18 00:14
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=893831aid=1874203group_id=180599

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: qemu
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Y-Chromosome (y-chromosome)
Assigned to: Nobody/Anonymous (nobody)
Summary: qemu-kvm gives just black screen

Initial Comment:
kernel 2.6.24-rc6
qemu 0.9.1
kvm 58 / 59 tested

i get just a black screen in the qemu window
if i try to start my windows 98 version with qemu-kvm
if i try it to start without it works flawlessly but slow.



--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=893831aid=1874203group_id=180599

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel


Re: [kvm-devel] [PATCH] KVM simplified virtio balloon driver

2008-01-18 Thread Avi Kivity
Rusty Russell wrote:
 After discussions with Anthony Liguori, it seems that the virtio
 balloon can be made even simpler.  Here's my attempt.

 Since the balloon requires Guest cooperation anyway, there seems
 little reason to force it to tell the Host when it wants to reuse a
 page.  It can simply fault it in.

   

Faulting is synchronous, while deflating is (or can be made) 
asynchronous. If the host needs to do some work to get the memory, the 
guest will be slowed down considerably.

If we have explicit deflate, the host can call madvise(MADV_WILLNEED) or 
actually touch the pages before the guest accesses them.


-- 
Any sufficiently difficult bug is indistinguishable from a feature.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel


Re: [kvm-devel] [PATCH] KVM simplified virtio balloon driver

2008-01-18 Thread Avi Kivity
Anthony Liguori wrote:
   
 
 It would be very useful too to write vb-num_pages into the config space
 whenever it was updated.  This way, the host can easily keep track of
 where the guest is at in terms of ballooning.
 
   
 OTOH it's currently pretty obvious (and usually fatal) if the guest has 
 trouble meeting the balloon requirements.  A serious host needs a way of 
 detecting stress in the guest anyway, which this doesn't offer until it's 
 too 
 late...
   
 

 The question I'm interested in answering though is not if but when.  I 
 would like to know when the guest has reached it's target.

   

Yes.  We don't want to activate the RSS controller immediately; give the 
guest some time to adjust voluntarily.


-- 
Any sufficiently difficult bug is indistinguishable from a feature.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel