public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Mark McLoughlin <markmc@redhat.com>
To: "Han, Weidong" <weidong.han@intel.com>
Cc: "'Avi Kivity'" <avi@redhat.com>,
	"'kvm@vger.kernel.org'" <kvm@vger.kernel.org>
Subject: Re: [PATCH 1/4] kvm: define KVM_CAP_DEVICE_DEASSIGNMENT
Date: Wed, 11 Feb 2009 18:58:55 +0000	[thread overview]
Message-ID: <1234378735.14052.223.camel@blaa> (raw)
In-Reply-To: <715D42877B251141A38726ABF5CABF2C01959AF3FF@pdsmsx503.ccr.corp.intel.com>

On Tue, 2009-02-10 at 20:40 +0800, Han, Weidong wrote:
> define KVM_CAP_DEVICE_DEASSIGNMENT and KVM_DEASSIGN_PCI_DEVICE
> for device deassignment.

Should add a pointer to the commit which added this ioctl:

  commit 0a920356748df4fb06e86c21c23d2ed6d31d37ad
  Author: Weidong Han <weidong.han@intel.com>
  Date:   Tue Dec 2 21:24:23 2008 +0800

    KVM: support device deassignment
    
    Support device deassignment, it can be used in device hotplug.
    
    Signed-off-by: Weidong Han <weidong.han@intel.com>
    Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>

> Signed-off-by: Weidong Han <weidong.han@intel.com>
> ---
>  include/linux/kvm.h |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)
> 
> diff --git a/include/linux/kvm.h b/include/linux/kvm.h
> index 869462c..02dfb1b 100644
> --- a/include/linux/kvm.h
> +++ b/include/linux/kvm.h
> @@ -402,6 +402,9 @@ struct kvm_trace_rec {
>  #ifdef __KVM_HAVE_IOAPIC
>  #define KVM_CAP_IRQ_ROUTING 25
>  #endif
> +#ifdef __KVM_HAVE_DEVICE_ASSIGNMENT
> +#define KVM_CAP_DEVICE_DEASSIGNMENT 26
> +#endif
>  
>  #ifdef KVM_CAP_IRQ_ROUTING
>  
> @@ -466,6 +469,8 @@ struct kvm_irq_routing {
>  #define KVM_ASSIGN_IRQ _IOR(KVMIO, 0x70, \
>  			    struct kvm_assigned_irq)
>  #define KVM_REINJECT_CONTROL      _IO(KVMIO, 0x71)
> +#define KVM_DEASSIGN_PCI_DEVICE _IOR(KVMIO, 0x72, \
> +				     struct kvm_assigned_pci_dev)
>  

Looks good to me, but I wonder why we never used 0x6b-0x6f?

Acked-by: Mark McLoughlin <markmc@redhat.com>

Cheers,
Mark.


  parent reply	other threads:[~2009-02-11 18:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-10 12:40 [PATCH 1/4] kvm: define KVM_CAP_DEVICE_DEASSIGNMENT Han, Weidong
2009-02-11 12:34 ` Avi Kivity
2009-02-11 18:58 ` Mark McLoughlin [this message]
2009-02-12 12:05   ` Avi Kivity

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=1234378735.14052.223.camel@blaa \
    --to=markmc@redhat.com \
    --cc=avi@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=weidong.han@intel.com \
    /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