Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1338191
| From | David Vrabel <david.vrabel@citrix.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [Xen-devel] [PATCH 0/9] x86/init: replace paravirt_enabled() were possible |
| Date | 2016-02-19 14:40 +0100 |
| Message-ID | <r3TrP-5KW-5@gated-at.bofh.it> (permalink) |
| References | <r3SYO-5z8-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 19/02/16 13:08, Luis R. Rodriguez wrote: > I originally set out to rename paravirt_enabled() to paravirt_legacy() > but we instead decided to remove paravirt_enabled() completely. Although > I have some linker table work which will help make this cleaner, instead > of waiting for that to go in, just remove the known cases that should > be safe for paravirt_enabled() and also replace it for the subarch > use. I don't understand the purpose of this series. How is replacing "if (A)" with "if (B)" an improvement? Using the hardware subarch in this way looks like paravirt_enabled() with a slightly different flavour and I don't think this is that useful to determine if certain hardware features should be used. I think you should consider a finer-grained set of feature bits. e.g., platform_has_pc_rtc() and platform_has_tboot() etc. David > > While at it, document the subarch to avoid any possible misuses. > > Luis R. Rodriguez (9): > x86/boot: enumerate documentation for the x86 hardware_subarch > tools/lguest: make lguest launcher use X86_SUBARCH_LGUEST explicitly > x86/xen: use X86_SUBARCH_XEN for PV guest boots > x86/init: make ebda depend on PC subarch > apm32: remove paravirt_enabled() use > x86/tboot: remove paravirt_enabled() > x86/cpu/intel: replace paravirt_enabled() for f00f work around > x86/rtc: replace paravirt_enabled() check with subarch check > pnpbios: replace paravirt_enabled() check with subarch checks > > arch/x86/include/asm/paravirt.h | 6 ------ > arch/x86/include/asm/paravirt_types.h | 5 ----- > arch/x86/include/asm/processor.h | 1 - > arch/x86/include/uapi/asm/bootparam.h | 32 +++++++++++++++++++++++++++++++- > arch/x86/kernel/apm_32.c | 2 +- > arch/x86/kernel/cpu/intel.c | 4 +++- > arch/x86/kernel/head.c | 2 +- > arch/x86/kernel/rtc.c | 3 ++- > arch/x86/kernel/tboot.c | 6 ------ > arch/x86/xen/enlighten.c | 4 +--- > drivers/pnp/pnpbios/core.c | 4 +++- > tools/lguest/lguest.c | 4 ++-- > 12 files changed, 44 insertions(+), 29 deletions(-) >
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/9] x86/init: replace paravirt_enabled() were possible "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-02-19 14:10 +0100
[PATCH 8/9] x86/rtc: replace paravirt_enabled() check with subarch check "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-02-19 14:10 +0100
Re: [Xen-devel] [PATCH 8/9] x86/rtc: replace paravirt_enabled() check with subarch check Juergen Gross <jgross@suse.com> - 2016-02-19 14:30 +0100
Re: [Xen-devel] [PATCH 8/9] x86/rtc: replace paravirt_enabled() check with subarch check "Luis R. Rodriguez" <mcgrof@suse.com> - 2016-02-19 15:50 +0100
Re: [Xen-devel] [PATCH 8/9] x86/rtc: replace paravirt_enabled() check with subarch check "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-02-22 07:10 +0100
Re: [Xen-devel] [PATCH 8/9] x86/rtc: replace paravirt_enabled() check with subarch check Borislav Petkov <bp@alien8.de> - 2016-02-22 11:30 +0100
Re: [Xen-devel] [PATCH 8/9] x86/rtc: replace paravirt_enabled() check with subarch check Boris Ostrovsky <boris.ostrovsky@oracle.com> - 2016-02-22 15:40 +0100
Re: [Xen-devel] [PATCH 8/9] x86/rtc: replace paravirt_enabled() check with subarch check David Vrabel <david.vrabel@citrix.com> - 2016-02-19 14:30 +0100
[PATCH 5/9] apm32: remove paravirt_enabled() use "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-02-19 14:10 +0100
Re: [PATCH 5/9] apm32: remove paravirt_enabled() use Boris Ostrovsky <boris.ostrovsky@oracle.com> - 2016-02-19 16:20 +0100
Re: [PATCH 5/9] apm32: remove paravirt_enabled() use "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-02-19 22:00 +0100
Re: [PATCH 5/9] apm32: remove paravirt_enabled() use Boris Ostrovsky <boris.ostrovsky@oracle.com> - 2016-02-19 23:20 +0100
Re: [PATCH 5/9] apm32: remove paravirt_enabled() use "Luis R. Rodriguez" <mcgrof@suse.com> - 2016-02-20 01:50 +0100
Re: [PATCH 5/9] apm32: remove paravirt_enabled() use Boris Ostrovsky <boris.ostrovsky@oracle.com> - 2016-02-22 15:20 +0100
[PATCH 4/9] x86/init: make ebda depend on PC subarch "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-02-19 14:20 +0100
[PATCH 1/9] x86/boot: enumerate documentation for the x86 hardware_subarch "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-02-19 14:20 +0100
Re: [Xen-devel] [PATCH 1/9] x86/boot: enumerate documentation for the x86 hardware_subarch Juergen Gross <jgross@suse.com> - 2016-02-19 14:30 +0100
Re: [Xen-devel] [PATCH 1/9] x86/boot: enumerate documentation for the x86 hardware_subarch David Vrabel <david.vrabel@citrix.com> - 2016-02-19 14:50 +0100
Re: [Xen-devel] [PATCH 1/9] x86/boot: enumerate documentation for the x86 hardware_subarch "Luis R. Rodriguez" <mcgrof@suse.com> - 2016-02-19 15:50 +0100
[PATCH 6/9] x86/tboot: remove paravirt_enabled() "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-02-19 14:20 +0100
[PATCH 7/9] x86/cpu/intel: replace paravirt_enabled() for f00f work around "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-02-19 14:20 +0100
[PATCH 3/9] x86/xen: use X86_SUBARCH_XEN for PV guest boots "Luis R. Rodriguez" <mcgrof@kernel.org> - 2016-02-19 14:20 +0100
Re: [Xen-devel] [PATCH 0/9] x86/init: replace paravirt_enabled() were possible David Vrabel <david.vrabel@citrix.com> - 2016-02-19 14:40 +0100
Re: [Xen-devel] [PATCH 0/9] x86/init: replace paravirt_enabled() were possible "Luis R. Rodriguez" <mcgrof@suse.com> - 2016-02-19 15:40 +0100
csiph-web