From: "Michael S. Tsirkin" <mst@redhat.com>
To: Jan Kiszka <jan.kiszka@siemens.com>
Cc: Avi Kivity <avi@redhat.com>,
Marcelo Tosatti <mtosatti@redhat.com>,
kvm@vger.kernel.org, Alex Williamson <alex.williamson@redhat.com>
Subject: Re: [PATCH v4 2/4] kvm: Introduce kvm_has_intx_set_mask
Date: Thu, 5 Apr 2012 12:44:45 +0300 [thread overview]
Message-ID: <20120405094445.GB28808@redhat.com> (raw)
In-Reply-To: <e0829aede318b55f52037d08d19d9631a36d4f73.1331201422.git.jan.kiszka@siemens.com>
On Thu, Mar 08, 2012 at 11:10:25AM +0100, Jan Kiszka wrote:
> Will be used by PCI device assignment code.
>
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
> ---
> kvm-all.c | 8 ++++++++
> kvm.h | 1 +
> 2 files changed, 9 insertions(+), 0 deletions(-)
>
> diff --git a/kvm-all.c b/kvm-all.c
> index 7fed5c9..471293d 100644
> --- a/kvm-all.c
> +++ b/kvm-all.c
> @@ -78,6 +78,7 @@ struct KVMState
> int xsave, xcrs;
> int many_ioeventfds;
> int pit_state2;
> + int intx_set_mask;
> int irqchip_inject_ioctl;
> #ifdef KVM_CAP_IRQ_ROUTING
> struct kvm_irq_routing *irq_routes;
> @@ -960,6 +961,8 @@ int kvm_init(void)
> s->pit_state2 = kvm_check_extension(s, KVM_CAP_PIT_STATE2);
> #endif
>
> + s->intx_set_mask = kvm_check_extension(s, KVM_CAP_PCI_2_3);
> +
> ret = kvm_arch_init(s);
> if (ret < 0) {
> goto err;
> @@ -1319,6 +1322,11 @@ int kvm_has_gsi_routing(void)
> #endif
> }
>
> +int kvm_has_intx_set_mask(void)
> +{
> + return kvm_state->intx_set_mask;
> +}
> +
> int kvm_allows_irq0_override(void)
> {
> return !kvm_irqchip_in_kernel() || kvm_has_gsi_routing();
> diff --git a/kvm.h b/kvm.h
> index 43d4c68..1885be1 100644
> --- a/kvm.h
> +++ b/kvm.h
> @@ -57,6 +57,7 @@ int kvm_has_xcrs(void);
> int kvm_has_many_ioeventfds(void);
> int kvm_has_pit_state2(void);
> int kvm_has_gsi_routing(void);
> +int kvm_has_intx_set_mask(void);
>
> int kvm_allows_irq0_override(void);
>
> --
> 1.7.3.4
next prev parent reply other threads:[~2012-04-05 9:44 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-08 10:10 [PATCH v4 0/4] qemu-kvm: pci-assign: Host IRQ sharing suppport Jan Kiszka
2012-03-08 10:10 ` [PATCH v4 1/4] kvm: Update kernel headers against kvm.git Jan Kiszka
2012-04-05 9:44 ` Michael S. Tsirkin
2012-03-08 10:10 ` [PATCH v4 2/4] kvm: Introduce kvm_has_intx_set_mask Jan Kiszka
2012-04-05 9:44 ` Michael S. Tsirkin [this message]
2012-03-08 10:10 ` [PATCH v4 3/4] pci-assign: Use PCI-2.3-based shared legacy interrupts Jan Kiszka
2012-03-08 17:00 ` Alex Williamson
2012-03-08 17:08 ` Jan Kiszka
2012-03-08 18:04 ` [PATCH v5 " Jan Kiszka
2012-04-05 9:44 ` [PATCH v4 " Michael S. Tsirkin
2012-03-08 10:10 ` [PATCH v4 4/4] pci_assign: Flip defaults of prefer_msi and share_intx Jan Kiszka
2012-04-05 9:46 ` Michael S. Tsirkin
2012-03-09 22:38 ` [PATCH v4 0/4] qemu-kvm: pci-assign: Host IRQ sharing suppport Alex Williamson
2012-03-09 22:49 ` Marcelo Tosatti
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=20120405094445.GB28808@redhat.com \
--to=mst@redhat.com \
--cc=alex.williamson@redhat.com \
--cc=avi@redhat.com \
--cc=jan.kiszka@siemens.com \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.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 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.