public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Alexander Graf <agraf-l3A5Bk7waGM@public.gmane.org>
Cc: kvm-ppc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	kvm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 13/21] KVM: Add support for enabling capabilities per-vcpu
Date: Thu, 01 Apr 2010 12:13:36 +0300	[thread overview]
Message-ID: <4BB463C0.2000006@redhat.com> (raw)
In-Reply-To: <B66E8E9D-10BC-4CE6-BAAB-6D185CBDEB38-l3A5Bk7waGM@public.gmane.org>

On 04/01/2010 12:06 PM, Alexander Graf wrote:
> On 01.04.2010, at 10:51, Avi Kivity wrote:
>
>    
>> On 03/24/2010 10:48 PM, Alexander Graf wrote:
>>      
>>> Some times we don't want all capabilities to be available to all
>>> our vcpus. One example for that is the OSI interface, implemented
>>> in the next patch.
>>>
>>> In order to have a generic mechanism in how to enable capabilities
>>> individually, this patch introduces a new ioctl that can be used
>>> for this purpose. That way features we don't want in all guests or
>>> userspace configurations can just not be enabled and we're good.
>>>
>>>   Documentation/kvm/api.txt  |   35 +++++++++++++++++++++++++++++++++++
>>>   arch/powerpc/kvm/powerpc.c |   27 +++++++++++++++++++++++++++
>>>   include/linux/kvm.h        |   12 ++++++++++++
>>>   3 files changed, 74 insertions(+), 0 deletions(-)
>>>
>>>
>>>        
>> Should really have been generic instead of ppc-specific, but can be moved later.
>>      
> I didn't fully understand your comment about stuff being generic vs arch specific. But I assumed that since you know this ioctl exists now that whenever someone needs something similar now, it's easy to add support for it on other archs.
>    

There is nothing arch specific about the interface (though the various 
caps can be arch specific).  No need to add support, just move the code 
to virt/kvm and add an arch specific callout to handle the data.

-- 
error compiling committee.c: too many arguments to function

  parent reply	other threads:[~2010-04-01  9:13 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-24 20:48 [PATCH 00/21] KVM: PPC: MOL bringup patches v3 Alexander Graf
2010-03-24 20:48 ` [PATCH 05/21] KVM: PPC: Split instruction reading out Alexander Graf
2010-03-24 20:48 ` [PATCH 10/21] KVM: PPC: Make XER load 32 bit Alexander Graf
2010-03-24 20:48 ` [PATCH 12/21] KVM: PPC: Implement alignment interrupt Alexander Graf
2010-03-24 20:48 ` [PATCH 13/21] KVM: Add support for enabling capabilities per-vcpu Alexander Graf
     [not found]   ` <1269463717-18305-14-git-send-email-agraf-l3A5Bk7waGM@public.gmane.org>
2010-04-01  8:51     ` Avi Kivity
     [not found]       ` <4BB45E9D.20303-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2010-04-01  9:06         ` Alexander Graf
     [not found]           ` <B66E8E9D-10BC-4CE6-BAAB-6D185CBDEB38-l3A5Bk7waGM@public.gmane.org>
2010-04-01  9:13             ` Avi Kivity [this message]
     [not found] ` <1269463717-18305-1-git-send-email-agraf-l3A5Bk7waGM@public.gmane.org>
2010-03-24 20:48   ` [PATCH 01/21] KVM: PPC: Ensure split mode works Alexander Graf
2010-03-24 20:48   ` [PATCH 02/21] KVM: PPC: Allow userspace to unset the IRQ line Alexander Graf
2010-03-24 20:48   ` [PATCH 03/21] KVM: PPC: Make DSISR 32 bits wide Alexander Graf
2010-03-24 20:48   ` [PATCH 04/21] KVM: PPC: Book3S_32 guest MMU fixes Alexander Graf
2010-03-24 20:48   ` [PATCH 06/21] KVM: PPC: Don't reload FPU with invalid values Alexander Graf
2010-03-24 20:48   ` [PATCH 07/21] KVM: PPC: Load VCPU for register fetching Alexander Graf
2010-03-24 20:48   ` [PATCH 08/21] KVM: PPC: Implement mfsr emulation Alexander Graf
2010-03-24 20:48   ` [PATCH 09/21] KVM: PPC: Implement BAT reads Alexander Graf
2010-03-24 20:48   ` [PATCH 11/21] KVM: PPC: Implement emulation for lbzux and lhax Alexander Graf
2010-03-24 20:48   ` [PATCH 14/21] KVM: PPC: Add OSI hypercall interface Alexander Graf
2010-03-24 20:48   ` [PATCH 20/21] KVM: PPC: Make bools bitfields Alexander Graf
2010-03-24 20:48   ` [PATCH 21/21] KVM: PPC: Disable MSR_FEx for Cell hosts Alexander Graf
2010-04-01  8:50   ` [PATCH 00/21] KVM: PPC: MOL bringup patches v3 Avi Kivity
2010-03-24 20:48 ` [PATCH 15/21] KVM: PPC: Make build work without CONFIG_VSX/ALTIVEC Alexander Graf
2010-03-24 20:48 ` [PATCH 16/21] KVM: PPC: Fix dcbz emulation Alexander Graf
2010-03-24 20:48 ` [PATCH 17/21] KVM: PPC: Add emulation for dcba Alexander Graf
2010-03-24 20:48 ` [PATCH 18/21] KVM: PPC: Add check if pte was mapped secondary Alexander Graf
2010-03-24 20:48 ` [PATCH 19/21] KVM: PPC: Use ULL for big numbers Alexander Graf

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=4BB463C0.2000006@redhat.com \
    --to=avi-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=agraf-l3A5Bk7waGM@public.gmane.org \
    --cc=kvm-ppc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=kvm-u79uwXL29TY76Z2rM5mHXA@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox