[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC v2 11/14] linux-headers/kvm.h: add capability to forward hyperc
From: |
Cornelia Huck |
Subject: |
Re: [RFC v2 11/14] linux-headers/kvm.h: add capability to forward hypercall |
Date: |
Wed, 6 Nov 2019 18:55:24 +0100 |
On Tue, 5 Nov 2019 17:10:53 +0800
Heyi Guo <address@hidden> wrote:
> To keep backward compatibility, we add new KVM capability
> "KVM_CAP_FORWARD_HYPERCALL" to probe whether KVM supports forwarding
> hypercall to userspace.
>
> The capability should be enabled explicitly, for we don't want user
> space application to deal with unexpected hypercall exits. After
> enabling this cap, all HVC calls unhandled by kvm will be forwarded to
> user space.
>
> Signed-off-by: Heyi Guo <address@hidden>
> Cc: Peter Maydell <address@hidden>
> Cc: "Michael S. Tsirkin" <address@hidden>
> Cc: Cornelia Huck <address@hidden>
> Cc: Paolo Bonzini <address@hidden>
> Cc: Dave Martin <address@hidden>
> Cc: Marc Zyngier <address@hidden>
> Cc: Mark Rutland <address@hidden>
> Cc: James Morse <address@hidden>
> ---
> linux-headers/linux/kvm.h | 1 +
> target/arm/sdei.c | 16 ++++++++++++++++
> target/arm/sdei.h | 2 ++
> 3 files changed, 19 insertions(+)
>
> diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h
> index 3d9b18f7f8..36c9b3859f 100644
> --- a/linux-headers/linux/kvm.h
> +++ b/linux-headers/linux/kvm.h
> @@ -1000,6 +1000,7 @@ struct kvm_ppc_resize_hpt {
> #define KVM_CAP_PMU_EVENT_FILTER 173
> #define KVM_CAP_ARM_IRQ_LINE_LAYOUT_2 174
> #define KVM_CAP_HYPERV_DIRECT_TLBFLUSH 175
> +#define KVM_CAP_FORWARD_HYPERCALL 176
>
> #ifdef KVM_CAP_IRQ_ROUTING
Is this cap upstream already? I would have thought your header sync
would have brought it in, then. (Saying this, that header sync looks
awfully small.)
If it is not upstream yet, please split off this hunk into a separate
patch -- it's a bit annoying, but makes life easier for merging.
- [RFC v2 08/14] core/irq: add qemu_irq_remove_intercept interface, (continued)
- [RFC v2 08/14] core/irq: add qemu_irq_remove_intercept interface, Heyi Guo, 2019/11/05
- [RFC v2 04/14] arm: add CONFIG_SDEI build flag, Heyi Guo, 2019/11/05
- [RFC v2 01/14] update-linux-headers.sh: import linux/arm_sdei.h to standard-headers, Heyi Guo, 2019/11/05
- [RFC v2 02/14] standard-headers: import arm_sdei.h, Heyi Guo, 2019/11/05
- [RFC v2 09/14] arm/sdei: override qemu_irq handler when binding interrupt, Heyi Guo, 2019/11/05
- [RFC v2 11/14] linux-headers/kvm.h: add capability to forward hypercall, Heyi Guo, 2019/11/05
- Re: [RFC v2 11/14] linux-headers/kvm.h: add capability to forward hypercall,
Cornelia Huck <=
- Re: [RFC v2 11/14] linux-headers/kvm.h: add capability to forward hypercall, Guoheyi, 2019/11/06
- Re: [RFC v2 11/14] linux-headers/kvm.h: add capability to forward hypercall, Michael S. Tsirkin, 2019/11/07
- Re: [RFC v2 11/14] linux-headers/kvm.h: add capability to forward hypercall, Guoheyi, 2019/11/07
- Re: [RFC v2 11/14] linux-headers/kvm.h: add capability to forward hypercall, Cornelia Huck, 2019/11/07
- Re: [RFC v2 11/14] linux-headers/kvm.h: add capability to forward hypercall, Guoheyi, 2019/11/07
- [RFC v2 14/14] virt/acpi: add SDEI table if SDEI is enabled, Heyi Guo, 2019/11/05
- [RFC v2 13/14] arm/kvm: handle guest exit of hypercall, Heyi Guo, 2019/11/05
- [RFC v2 03/14] arm/sdei: add virtual device framework, Heyi Guo, 2019/11/05