All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
To: kvm-ppc@vger.kernel.org
Subject: Re: [kvm-ppc-devel] [PATCH] PowerPC snapshot,
Date: Tue, 22 Jan 2008 12:16:38 +0000	[thread overview]
Message-ID: <4795DEA6.4090300@linux.vnet.ibm.com> (raw)
In-Reply-To: <42DFA526FC41B1429CE7279EF83C6BDCC9B968@pdsmsx415.ccr.corp.intel.com>

Hi Zhang Wei,
this is a known issue but avtually it should be solved in the snapshot. It is already discussed on kvm-devel because it is a common issue (ppc & s390 & ?).
You might want to look at the threads "[kvm-ppc-devel] [PATCH 1 of 2] Define and use CONFIG_KVM_HAS_PIO so that we don't	need pio_data in kvm_arch_vcpu" and the old one "[kvm-ppc-devel] [PATCH] RFC: Use CONFIG_HAS_IOPORT around vcpu->pio_data". 
So it is on the way to upstream anyway and you might just want to use Hollis last patch to that out of the first mail thread I listed above until it is upstream (this helps you however Avi eventually implements it).

-- 

Grüsse / regards, 
Christian Ehrhardt
IBM Linux Technology Center, Open Virtualization

Zhang Wei wrote:
> Hi, Hollis,
> 
> A make error is here:
> arch/powerpc/kvm/../../../virt/kvm/kvm_main.c: In function
> 'kvm_vcpu_fault':
> arch/powerpc/kvm/../../../virt/kvm/kvm_main.c:681: error: 'struct
> kvm_vcpu_arch' has no member named 'pio_data' 
> 
> I have to add pio_data to kvm_vcpu_arch structure to pass the kvm_main.c
> compile.
> 
> diff --git a/include/asm-powerpc/kvm_host.h
> b/include/asm-powerpc/kvm_host.h
> index f3bb913..ef57aec 100644
> --- a/include/asm-powerpc/kvm_host.h
> +++ b/include/asm-powerpc/kvm_host.h
> @@ -125,6 +125,8 @@ struct kvm_vcpu_arch {
> 
>  	struct timer_list dec_timer;
>  	int pending_dec;
> +
> +	void *pio_data;
>  };
> 
>  struct kvm_tlb {
> 
> Did you get that error?
> 
> Cheers!
> Wei.
>> -----Original Message-----
>> From: kvm-ppc-devel-bounces@lists.sourceforge.net 
>> [mailto:kvm-ppc-devel-bounces@lists.sourceforge.net] On 
>> Behalf Of Hollis Blanchard
>> Sent: Saturday, January 19, 2008 2:08 AM
>> To: kvm-ppc-devel
>> Subject: Re: [kvm-ppc-devel] [PATCH] PowerPC 
>> snapshot,integrated with upstream
>>
>> On Thu, 2008-01-17 at 00:33 -0600, Hollis Blanchard wrote:
>>> There are still a few things we're debugging, but a few 
>> people expressed
>>> interest so I'm sending out a snapshot now.
>>>
>>> We will be posting qemu patches in the near future as well, 
>> just as soon
>>> as we've beaten it into submission. Linux+Qemu is what doesn't work
>>> today. For now this code seems to be working fine with the 
>> testcases in
>>> the kvm-userspace/user directory.
>> OK, this is the fixed patch that can run an unmodified Linux guest. In
>> addition to some qemu changes, I had to fix "mtdcr" behavior so the PC
>> would actually advance past the instruction, and also create a TLB
>> mapping to cover the UART (which Linux expects u-boot has left around,
>> as specified in the device tree).
>>
>> We will need to work on getting qemu patches into an emailable state,
>> since the kvmctl stuff in kvm-userspace, at least in its current form,
>> can't run Linux. Since we still don't do any IO (or interrupts!), UART
>> MMIO and SDRAM controller DCR emulation is pretty much the only device
>> emulation necessary at this point.
>>
>>
>>
>> PowerPC 440 KVM implementation.
>>
>> Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
>>
[...]

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

  parent reply	other threads:[~2008-01-22 12:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-18  3:06 [kvm-ppc-devel] [PATCH] PowerPC snapshot, Zhang, Xiantao
2008-01-18  6:52 ` Zhang Wei
2008-01-18 18:07 ` Hollis Blanchard
2008-01-22  8:47 ` Zhang Wei
2008-01-22 12:16 ` Christian Ehrhardt [this message]
2008-01-23  8:41 ` Zhang Wei

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4795DEA6.4090300@linux.vnet.ibm.com \
    --to=ehrhardt@linux.vnet.ibm.com \
    --cc=kvm-ppc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.