[PATCH v3 0/2] x86/xen: simplify irq pvops

Juergen Gross posted 2 patches 2 years, 5 months ago
Failed in applying to current master (apply log)
arch/x86/include/asm/paravirt_types.h |   2 +
arch/x86/kernel/paravirt.c            |  13 ++-
arch/x86/xen/enlighten.c              | 116 ++++++--------------------
arch/x86/xen/enlighten_hvm.c          |   6 +-
arch/x86/xen/enlighten_pv.c           |  28 ++-----
arch/x86/xen/irq.c                    |  61 +-------------
arch/x86/xen/smp.c                    |  24 ------
arch/x86/xen/xen-ops.h                |   4 +-
8 files changed, 53 insertions(+), 201 deletions(-)
[PATCH v3 0/2] x86/xen: simplify irq pvops
Posted by Juergen Gross 2 years, 5 months ago
The pvops function for Xen PV guests handling the interrupt flag are
much more complex than needed.

With the supported Xen hypervisor versions they can be simplified a
lot, especially by removing the need for disabling preemption.

Juergen Gross (2):
  x86/xen: remove xen_have_vcpu_info_placement flag
  x86/xen: switch initial pvops IRQ functions to dummy ones

 arch/x86/include/asm/paravirt_types.h |   2 +
 arch/x86/kernel/paravirt.c            |  13 ++-
 arch/x86/xen/enlighten.c              | 116 ++++++--------------------
 arch/x86/xen/enlighten_hvm.c          |   6 +-
 arch/x86/xen/enlighten_pv.c           |  28 ++-----
 arch/x86/xen/irq.c                    |  61 +-------------
 arch/x86/xen/smp.c                    |  24 ------
 arch/x86/xen/xen-ops.h                |   4 +-
 8 files changed, 53 insertions(+), 201 deletions(-)

-- 
2.26.2


Re: [PATCH v3 0/2] x86/xen: simplify irq pvops
Posted by Boris Ostrovsky 2 years, 5 months ago
On 10/28/21 3:27 AM, Juergen Gross wrote:
> The pvops function for Xen PV guests handling the interrupt flag are
> much more complex than needed.
>
> With the supported Xen hypervisor versions they can be simplified a
> lot, especially by removing the need for disabling preemption.
>
> Juergen Gross (2):
>    x86/xen: remove xen_have_vcpu_info_placement flag
>    x86/xen: switch initial pvops IRQ functions to dummy ones
>
>   arch/x86/include/asm/paravirt_types.h |   2 +
>   arch/x86/kernel/paravirt.c            |  13 ++-
>   arch/x86/xen/enlighten.c              | 116 ++++++--------------------
>   arch/x86/xen/enlighten_hvm.c          |   6 +-
>   arch/x86/xen/enlighten_pv.c           |  28 ++-----
>   arch/x86/xen/irq.c                    |  61 +-------------
>   arch/x86/xen/smp.c                    |  24 ------
>   arch/x86/xen/xen-ops.h                |   4 +-
>   8 files changed, 53 insertions(+), 201 deletions(-)
>

Applied to for-linus-5.16


-boris