From: Paolo Bonzini <pbonzini@redhat.com>
To: kvm-ppc@vger.kernel.org
Subject: Re: Basic Query regarding kvm_init
Date: Tue, 02 Sep 2014 12:03:04 +0000 [thread overview]
Message-ID: <5405B1F8.9020109@redhat.com> (raw)
Il 01/09/2014 20:49, Amit Tomar ha scritto:
> I'm new to KVM and have basic query regarding kvm_init call from inside
> e500.c?
>
> I'm aware that first argument in "kvm_init" for x86 is the kvm_callbacks
> structure to specify the handlers to be called when I/O or some
> system-sensitive instructions are executed inside the virtual
> machine.
>
> kvm_init(*&vmx_x86_op*s, sizeof(struct vcpu_vmx), __alignof__(struct
> vcpu_vmx), THIS_MODULE);
>
>
> But when I looked into kvm_init call for PowerPc cores,first argument is
> kept NULL.
>
> kvm_init(*NULL*, sizeof(struct kvmppc_vcpu_e500), 0, THIS_MODULE); --->
> For PowerPC
>
> Where is the kvm_callbacks structure as it is in x86,what approach has
> been taken for PowePC?
PowerPC doesn't put common code in a separate module (like KVM does for
VMX and SVM), so it doesn't need the callbacks.
Paolo
reply other threads:[~2014-09-02 12:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=5405B1F8.9020109@redhat.com \
--to=pbonzini@redhat.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.