From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Sergiy Kibrik <Sergiy_Kibrik@epam.com>
Cc: xen-devel@lists.xenproject.org,
Andrew Cooper <andrew.cooper3@citrix.com>,
Stefano Stabellini <sstabellini@kernel.org>,
Jan Beulich <jbeulich@suse.com>
Subject: Re: [XEN PATCH v1 2/3] x86/hvm: introduce config option for stdvga emulation
Date: Fri, 4 Oct 2024 15:12:19 +0200 [thread overview]
Message-ID: <Zv_pszkRrPXstXFW@macbook.local> (raw)
In-Reply-To: <05a027b7021ce6deb5b48078034e560a38ca8d23.1728032664.git.Sergiy_Kibrik@epam.com>
On Fri, Oct 04, 2024 at 12:33:53PM +0300, Sergiy Kibrik wrote:
> Introduce config option X86_STDVGA so that stdvga emulation driver can later be
> made configurable and be disabled on systems that don't need it.
>
> As a first step the option is hidden from user. No functional changes intended.
>
> Signed-off-by: Sergiy Kibrik <Sergiy_Kibrik@epam.com>
> CC: Jan Beulich <jbeulich@suse.com>
> ---
> xen/arch/x86/Kconfig | 3 +++
> xen/arch/x86/hvm/Makefile | 2 +-
> xen/arch/x86/include/asm/domain.h | 3 ++-
> xen/arch/x86/include/asm/hvm/io.h | 4 ++++
> 4 files changed, 10 insertions(+), 2 deletions(-)
>
> diff --git a/xen/arch/x86/Kconfig b/xen/arch/x86/Kconfig
> index 95275dc17e..89c42ff6da 100644
> --- a/xen/arch/x86/Kconfig
> +++ b/xen/arch/x86/Kconfig
> @@ -147,6 +147,9 @@ config INTEL_VMX
> config X86_PMTIMER
> def_bool HVM
>
> +config X86_STDVGA
> + def_bool HVM
Same as previous patch, the content of patch 3 needs to be moved here.
> +
> config XEN_SHSTK
> bool "Supervisor Shadow Stacks"
> depends on HAS_AS_CET_SS
> diff --git a/xen/arch/x86/hvm/Makefile b/xen/arch/x86/hvm/Makefile
> index 321241f0bf..b7741b0f60 100644
> --- a/xen/arch/x86/hvm/Makefile
> +++ b/xen/arch/x86/hvm/Makefile
> @@ -22,7 +22,7 @@ obj-$(CONFIG_X86_PMTIMER) += pmtimer.o
> obj-y += quirks.o
> obj-y += rtc.o
> obj-y += save.o
> -obj-y += stdvga.o
> +obj-$(CONFIG_X86_STDVGA) += stdvga.o
> obj-y += vioapic.o
> obj-y += vlapic.o
> obj-y += vm_event.o
> diff --git a/xen/arch/x86/include/asm/domain.h b/xen/arch/x86/include/asm/domain.h
> index 3f65bfd190..675a13d917 100644
> --- a/xen/arch/x86/include/asm/domain.h
> +++ b/xen/arch/x86/include/asm/domain.h
> @@ -501,7 +501,8 @@ struct arch_domain
> #define has_vrtc(d) (!!((d)->arch.emulation_flags & X86_EMU_RTC))
> #define has_vioapic(d) (!!((d)->arch.emulation_flags & X86_EMU_IOAPIC))
> #define has_vpic(d) (!!((d)->arch.emulation_flags & X86_EMU_PIC))
> -#define has_vvga(d) (!!((d)->arch.emulation_flags & X86_EMU_VGA))
> +#define has_vvga(d) (IS_ENABLED(CONFIG_X86_STDVGA) && \
You don't need the IS_ENABLED() if emulation_flags_ok() is adjusted
accordingly.
Thanks, Roger.
next prev parent reply other threads:[~2024-10-04 13:12 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-04 9:29 [XEN PATCH v1 0/3] configurable stdvga & pmtimer emulation Sergiy Kibrik
2024-10-04 9:31 ` [XEN PATCH v1 1/3] x86/hvm: introduce config option for ACPI PM timer Sergiy Kibrik
2024-10-04 13:09 ` Roger Pau Monné
2024-10-04 13:30 ` Jan Beulich
2024-10-04 21:07 ` Stefano Stabellini
2024-10-07 10:12 ` Roger Pau Monné
2024-10-04 9:33 ` [XEN PATCH v1 2/3] x86/hvm: introduce config option for stdvga emulation Sergiy Kibrik
2024-10-04 13:12 ` Roger Pau Monné [this message]
2024-10-04 21:08 ` Stefano Stabellini
2024-10-07 10:14 ` Roger Pau Monné
2024-10-07 20:24 ` Stefano Stabellini
2024-10-04 13:34 ` Jan Beulich
2024-10-04 9:35 ` [XEN PATCH v1 3/3] x86/hvm: make ACPI PM & stdvga emulation optional Sergiy Kibrik
2024-10-04 13:36 ` Jan Beulich
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=Zv_pszkRrPXstXFW@macbook.local \
--to=roger.pau@citrix.com \
--cc=Sergiy_Kibrik@epam.com \
--cc=andrew.cooper3@citrix.com \
--cc=jbeulich@suse.com \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.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 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.