Re: [PATCH] KVM: PPC: Fix SPRG get/set for Book3S and BookE

2011-01-06 Thread Marcelo Tosatti
On Wed, Dec 29, 2010 at 01:51:25PM -0600, Peter Tyser wrote:
 Previously SPRGs 4-7 were improperly read and written in
 kvm_arch_vcpu_ioctl_get_regs() and kvm_arch_vcpu_ioctl_set_regs();
 
 Signed-off-by: Peter Tyser pty...@xes-inc.com
 ---
 I noticed this while grepping for somthing unrelated and assume its
 a typo.  Feel free to add to the patch description; I don't use KVM
 so don't know what the high-level consequences of this change are.
 
  arch/powerpc/kvm/book3s.c |   14 --
  arch/powerpc/kvm/booke.c  |   14 --
  2 files changed, 16 insertions(+), 12 deletions(-)

Applied, thanks.

--
To unsubscribe from this list: send the line unsubscribe kvm-ppc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


error: building kvm for powerpc using cross compiler on x86

2011-01-06 Thread Dushyant Bansal
I want to build kvm kernel module for powerpc using cross compiler. I 
downloaded kernel source code from 
http://www.linux-kvm.org/page/PowerPC_440_Host_Kernel. Inside that 
kvm_source folder when I do make ARCH=powerpc menuconfig, inside 
virtualization menu, option kvm is not present. I have attached the 
screenshot.


Thanks,
attachment: problem.png

Re: error: building kvm for powerpc using cross compiler on x86

2011-01-06 Thread Hollis Blanchard
On Thu, Jan 6, 2011 at 10:39 AM, Dushyant Bansal
cs5070...@cse.iitd.ac.in wrote:
 I want to build kvm kernel module for powerpc using cross compiler. I
 downloaded kernel source code from
 http://www.linux-kvm.org/page/PowerPC_440_Host_Kernel. Inside that
 kvm_source folder when I do make ARCH=powerpc menuconfig, inside
 virtualization menu, option kvm is not present. I have attached the
 screenshot.

It's impossible to say from your description, but I would guess that
you haven't configured for a 440 processor before visiting the
Virtualization menu.

-Hollis
--
To unsubscribe from this list: send the line unsubscribe kvm-ppc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: error: building kvm for powerpc using cross compiler on x86

2011-01-06 Thread Dushyant
Hi,

Thanks for the response.
My aim is to install kvm on a powerpc system. I will give a detailed
description of the environment.

Host arch: x86
kernel: 2.6.32.25 (ubuntu 10.04 32 bit)
I have emulated powerpc using qemu-system-ppc and installed debian on
top of this.

guest os:
debian-507-powerpc (2.6.26-1-powerpc)
contents of /proc/cpuinfo:
processor   : 0
cpu : 740/750
temperature : 62-64 C (uncalibrated)
clock   : 1000.00MHz
revision: 3.1 (pvr 0008 0301)
bogomips: 33.02
timebase: 16600733
platform: PowerMac
model   : Power Macintosh
machine : Power Macintosh
motherboard : AAPL,PowerMac G3 MacRISC
detected as : 49 (PowerMac G3 (Silk))
pmac flags  : 
pmac-generation : OldWorld

I want to use kvm on this guest os. I have installed kvm-userspace
application. Now, I require kvm kernel module. I have some questions.

1. As x86 systems are distributed with kvm kernel module(kvm.ko,
kvm-intel.ko, kvm-amd.ko), is there any powerpc system with kvm kernel
modules.

2. Is it possible to run kvm on powerpc-750, powerpc-970  or both

3. How should I try to build kvm kernel module for guest os. I have two
options: to compile kernel with kvm inside guest os or to cross compile
kernel for powerpc on host os.

Thanks,

 On Thu, Jan 6, 2011 at 10:39 AM, Dushyant Bansal
 cs5070...@cse.iitd.ac.in wrote:
 I want to build kvm kernel module for powerpc using cross compiler. I
downloaded kernel source code from
 http://www.linux-kvm.org/page/PowerPC_440_Host_Kernel. Inside that
kvm_source folder when I do make ARCH=powerpc menuconfig, inside
virtualization menu, option kvm is not present. I have attached the
screenshot.

 It's impossible to say from your description, but I would guess that you
haven't configured for a 440 processor before visiting the
 Virtualization menu.

 -Hollis





--
To unsubscribe from this list: send the line unsubscribe kvm-ppc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html