[PATCH v3 04/15] x86/xen: drop USERGS_SYSRET64 paravirt call

2020-12-17 Thread Juergen Gross
in the kernel more than compensate for this drop (a kernel build in a Xen PV guest was slightly faster with this patch applied). While at it remove the stale sysret32 remnants. Signed-off-by: Juergen Gross --- V3: - simplify ALTERNATIVE (Boris Petkov) --- arch/x86/entry/entry_64.S

[GIT PULL] xen: branch for v5.11-rc1

2020-12-15 Thread Juergen Gross
Linus, Please git pull the following tag: git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git for-linus-5.11-rc1-tag xen: branch for v5.11-rc1 It contains fixes for security issues just having been disclosed: - a 5 patch series for fixing of XSA-349 (DoS via resource depletion in Xen

[PATCH v2] xen/xenbus: make xs_talkv() interruptible

2020-12-15 Thread Juergen Gross
In case a process waits for any Xenstore action in the xenbus driver it should be interruptible by signals. Signed-off-by: Juergen Gross --- V2: - don't special case SIGKILL as libxenstore is handling -EINTR fine --- drivers/xen/xenbus/xenbus_xs.c | 9 - 1 file changed, 8 inser

[GIT PULL] xen: branch for v5.10-rc8

2020-12-11 Thread Juergen Gross
+++--- drivers/xen/xen-scsiback.c | 60 -- include/xen/grant_table.h | 17 + 7 files changed, 182 insertions(+), 137 deletions(-) Juergen Gross (2): xen: add helpers for caching grant mapping pages xen: don't use page->lru for ZONE_DEVICE memory

[PATCH] xen/xenbus: make xs_talkv() interruptible for SIGKILL

2020-12-09 Thread Juergen Gross
In case a process waits for any Xenstore action in the xenbus driver it should be interruptible via SIGKILL. Signed-off-by: Juergen Gross --- drivers/xen/xenbus/xenbus_xs.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/xen/xenbus/xenbus_xs.c b/drivers/xen

[PATCH 1/2] xen: add helpers for caching grant mapping pages

2020-12-07 Thread Juergen Gross
Instead of having similar helpers in multiple backend drivers use common helpers for caching pages allocated via gnttab_alloc_pages(). Make use of those helpers in blkback and scsiback. Signed-off-by: Juergen Gross --- drivers/block/xen-blkback/blkback.c | 89

[PATCH 0/2] xen: fix using ZONE_DEVICE memory for foreign mappings

2020-12-07 Thread Juergen Gross
Fix an issue found in dom0 when running on a host with NVMe. Juergen Gross (2): xen: add helpers for caching grant mapping pages xen: don't use page->lru for ZONE_DEVICE memory drivers/block/xen-blkback/blkback.c | 89 drivers/block/xen-blkback/common.

[PATCH 2/2] xen: don't use page->lru for ZONE_DEVICE memory

2020-12-07 Thread Juergen Gross
instead. Fixes: 9e2369c06c8a18 ("xen: add helpers to allocate unpopulated memory") Signed-off-by: Juergen Gross --- drivers/xen/grant-table.c | 65 + drivers/xen/unpopulated-alloc.c | 20 +- include/xen/grant_table.h | 4 ++ 3 files cha

[PATCH v2 02/12] x86/xen: use specific Xen pv interrupt entry for DF

2020-11-20 Thread Juergen Gross
Xen PV guests don't use IST. For double fault interrupts switch to the same model as NMI. Correct a typo in a comment while copying it. Signed-off-by: Juergen Gross Acked-by: Peter Zijlstra (Intel) --- V2: - fix typo (Andy Lutomirski) --- arch/x86/include/asm/idtentry.h | 3 +++ arch/x8

[PATCH v2 06/12] x86/paravirt: switch time pvops functions to use static_call()

2020-11-20 Thread Juergen Gross
out the time interfaces into a new header file. Signed-off-by: Juergen Gross --- arch/x86/Kconfig | 1 + arch/x86/include/asm/mshyperv.h | 11 arch/x86/include/asm/paravirt.h | 14 -- arch/x86/include/asm/paravirt_time.h | 38

[PATCH v2 12/12] x86/paravirt: have only one paravirt patch function

2020-11-20 Thread Juergen Gross
There is no need any longer to have different paravirt patch functions for native and Xen. Eliminate native_patch() and rename paravirt_patch_default() to paravirt_patch(). Signed-off-by: Juergen Gross --- arch/x86/include/asm/paravirt_types.h | 19 +-- arch/x86/kernel/Makefile

[PATCH v2 10/12] x86/paravirt: add new macros PVOP_ALT* supporting pvops in ALTERNATIVEs

2020-11-20 Thread Juergen Gross
Instead of using paravirt patching for custom code sequences add support for using ALTERNATIVE handling combined with paravirt call patching. Signed-off-by: Juergen Gross --- arch/x86/include/asm/paravirt_types.h | 62 +++ 1 file changed, 62 insertions(+) diff --git a

[PATCH v2 11/12] x86/paravirt: switch functions with custom code to ALTERNATIVE

2020-11-20 Thread Juergen Gross
: Juergen Gross --- arch/x86/include/asm/paravirt.h | 73 ++ arch/x86/include/asm/paravirt_types.h | 1 - arch/x86/kernel/paravirt.c| 16 ++--- arch/x86/kernel/paravirt_patch.c | 88 --- 4 files changed, 54 insertions(+), 124 deletions

[PATCH v2 09/12] x86/paravirt: switch iret pvops to ALTERNATIVE

2020-11-20 Thread Juergen Gross
The iret paravirt op is rather special as it is using a jmp instead of a call instruction. Switch it to ALTERNATIVE. Signed-off-by: Juergen Gross --- arch/x86/include/asm/paravirt.h | 7 --- arch/x86/include/asm/paravirt_types.h | 5 + arch/x86/kernel/asm-offsets.c | 5

[PATCH v2 04/12] x86/xen: drop USERGS_SYSRET64 paravirt call

2020-11-20 Thread Juergen Gross
in the kernel more than compensate for this drop (a kernel build in a Xen PV guest was slightly faster with this patch applied). While at it remove the stale sysret32 remnants. Signed-off-by: Juergen Gross Acked-by: Andy Lutomirski Acked-by: Peter Zijlstra (Intel) --- arch/x86/entry/entry_64

[PATCH v2 08/12] x86/paravirt: remove no longer needed 32-bit pvops cruft

2020-11-20 Thread Juergen Gross
code only, so it can just be replaced by cli. INTERRUPT_RETURN in 32-bit code can be replaced by iret. GET_CR2_INTO_AX and ENABLE_INTERRUPTS are used nowhere, so they can be removed. Signed-off-by: Juergen Gross --- arch/x86/entry/entry_32.S | 4 +- arch/x86/include/asm/irqflags.h

[PATCH v2 07/12] x86: add new features for paravirt patching

2020-11-20 Thread Juergen Gross
patching later. Make sure paravirt patching is performed before alternative patching. Signed-off-by: Juergen Gross --- arch/x86/include/asm/cpufeatures.h | 3 +++ arch/x86/kernel/alternative.c | 28 ++-- 2 files changed, 29 insertions(+), 2 deletions(-) diff --git

[PATCH v2 03/12] x86/pv: switch SWAPGS to ALTERNATIVE

2020-11-20 Thread Juergen Gross
are never executed in a Xen PV guest. Replace those with the plain swapgs instruction. For SWAPGS_UNSAFE_STACK the same applies. Signed-off-by: Juergen Gross Acked-by: Andy Lutomirski Acked-by: Peter Zijlstra (Intel) --- arch/x86/entry/entry_64.S | 10 +- arch/x86/include/asm

[PATCH v2 05/12] x86: rework arch_local_irq_restore() to not use popf

2020-11-20 Thread Juergen Gross
ested-by: Andy Lutomirski Signed-off-by: Juergen Gross --- arch/x86/include/asm/irqflags.h | 20 ++- arch/x86/include/asm/paravirt.h | 5 - arch/x86/include/asm/paravirt_types.h | 7 ++- arch/x86/kernel/irqflags.S| 11 --- arch/x86/kernel/p

[PATCH v2 00/12] x86: major paravirt cleanup

2020-11-20 Thread Juergen Gross
file disentangling. Note that an updated objtool is needed for this series, as otherwise lots of warnings due to alternative instructions modifying the stack will be issued during the build. Changes in V2: - added patches 5-12 Juergen Gross (12): x86/xen: use specific Xen pv interrupt entry for

[PATCH v2 01/12] x86/xen: use specific Xen pv interrupt entry for MCE

2020-11-20 Thread Juergen Gross
Xen PV guests don't use IST. For machine check interrupts switch to the same model as debug interrupts. Signed-off-by: Juergen Gross Acked-by: Peter Zijlstra (Intel) --- arch/x86/include/asm/idtentry.h | 3 +++ arch/x86/xen/enlighten_pv.c | 16 +++- arch/x86/xen/xen-

[GIT PULL] xen: branch for v5.10-rc5

2020-11-19 Thread Juergen Gross
Linus, Please git pull the following tag: git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git for-linus-5.10b-rc5-tag xen: branch for v5.10-rc5 It contains a single fix for avoiding WARN splats when booting a Xen guest with nosmt. Thanks. Juergen arch/x86/xen/spinlock.c | 12 +++

[PATCH 2/4] x86/xen: use specific Xen pv interrupt entry for DF

2020-11-16 Thread Juergen Gross
Xen PV guests don't use IST. For double fault interrupts switch to the same model as NMI. Signed-off-by: Juergen Gross --- arch/x86/include/asm/idtentry.h | 3 +++ arch/x86/xen/enlighten_pv.c | 8 +++- arch/x86/xen/xen-asm.S | 2 +- 3 files changed, 11 insertions(

[PATCH 4/4] x86/xen: drop USERGS_SYSRET64 paravirt call

2020-11-16 Thread Juergen Gross
use the iret exit from the beginning. This can easily be done via an ALTERNATIVE like it is done for the sysenter compat case already. While at it remove to stale sysret32 remnants. Signed-off-by: Juergen Gross --- arch/x86/entry/entry_64.S | 22 +- arch/x86

[PATCH 1/4] x86/xen: use specific Xen pv interrupt entry for MCE

2020-11-16 Thread Juergen Gross
Xen PV guests don't use IST. For machine check interrupts switch to the same model as debug interrupts. Signed-off-by: Juergen Gross --- arch/x86/include/asm/idtentry.h | 3 +++ arch/x86/xen/enlighten_pv.c | 16 +++- arch/x86/xen/xen-asm.S | 2 +- 3 files change

[PATCH 3/4] x86/pv: switch SWAPGS to ALTERNATIVE

2020-11-16 Thread Juergen Gross
are never executed in a Xen PV guest. Replace those with the plain swapgs instruction. For SWAPGS_UNSAFE_STACK the same applies. Signed-off-by: Juergen Gross --- arch/x86/entry/entry_64.S | 10 +- arch/x86/include/asm/irqflags.h | 20 arch/x86/include

[PATCH 0/4] x86/xen: do some paravirt cleanup

2020-11-16 Thread Juergen Gross
Eliminate the usergs_sysret64 paravirt call completely and switch the swapgs one to use ALTERNATIVE instead. This requires to fix the IST based exception entries for Xen PV to use the same mechanism as NMI and debug exception already do. Juergen Gross (4): x86/xen: use specific Xen pv interrupt

[GIT PULL] xen: branch for v5.10-rc1c

2020-10-25 Thread Juergen Gross
+++--- drivers/xen/events/events_fifo.c | 9 ++- drivers/xen/events/events_internal.h | 70 +++- include/xen/events.h | 8 -- 12 files changed, 152 insertions(+), 126 deletions(-) Juergen Gross (5): xen: remove

[tip: x86/urgent] x86/alternative: Don't call text_poke() in lazy TLB mode

2020-10-22 Thread tip-bot2 for Juergen Gross
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: abee7c494d8c41bb388839bccc47e06247f0d7de Gitweb: https://git.kernel.org/tip/abee7c494d8c41bb388839bccc47e06247f0d7de Author:Juergen Gross AuthorDate:Fri, 09 Oct 2020 16:42:25 +02:00

[PATCH v2 2/5] xen/events: make struct irq_info private to events_base.c

2020-10-22 Thread Juergen Gross
The struct irq_info of Xen's event handling is used only for two evtchn_ops functions outside of events_base.c. Those two functions can easily be switched to avoid that usage. This allows to make struct irq_info and its related access functions private to events_base.c. Signed-off-by: Ju

[PATCH v2 3/5] xen/events: only register debug interrupt for 2-level events

2020-10-22 Thread Juergen Gross
xen_debug_interrupt() is specific to 2-level event handling. So don't register it with fifo event handling being active. Signed-off-by: Juergen Gross Reviewed-by: Jan Beulich --- V2: - rename fifo_events variable to xen_fifo_events (Jan Beulich) --- arch/x86/xen/smp.c

[PATCH v2 0/5] xen: event handling cleanup

2020-10-22 Thread Juergen Gross
Do some cleanups in Xen event handling code. Changes in V2: - addressed comments Juergen Gross (5): xen: remove no longer used functions xen/events: make struct irq_info private to events_base.c xen/events: only register debug interrupt for 2-level events xen/events: unmask a fifo event

[PATCH v2 1/5] xen: remove no longer used functions

2020-10-22 Thread Juergen Gross
With the switch to the lateeoi model for interdomain event channels some functions are no longer in use. Remove them. Suggested-by: Jan Beulich Signed-off-by: Juergen Gross Reviewed-by: Jan Beulich --- drivers/xen/events/events_base.c | 21 - include/xen/events.h

[PATCH v2 5/5] Documentation: add xen.fifo_events kernel parameter description

2020-10-22 Thread Juergen Gross
The kernel boot parameter xen.fifo_events isn't listed in Documentation/admin-guide/kernel-parameters.txt. Add it. Signed-off-by: Juergen Gross Reviewed-by: Jan Beulich --- Documentation/admin-guide/kernel-parameters.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Document

[PATCH v2 4/5] xen/events: unmask a fifo event channel only if it was masked

2020-10-22 Thread Juergen Gross
Unmasking an event channel with fifo events channels being used can require a hypercall to be made, so try to avoid that by checking whether the event channel was really masked. Suggested-by: Jan Beulich Signed-off-by: Juergen Gross Reviewed-by: Jan Beulich --- V2: - move test for already

[PATCH 1/5] xen: remove no longer used functions

2020-10-22 Thread Juergen Gross
With the switch to the lateeoi model for interdomain event channels some functions are no longer in use. Remove them. Suggested-by: Jan Beulich Signed-off-by: Juergen Gross --- drivers/xen/events/events_base.c | 21 - include/xen/events.h | 8 2 files

[PATCH 5/5] Documentation: add xen.fifo_events kernel parameter description

2020-10-22 Thread Juergen Gross
The kernel boot parameter xen.fifo_events isn't listed in Documentation/admin-guide/kernel-parameters.txt. Add it. Signed-off-by: Juergen Gross --- Documentation/admin-guide/kernel-parameters.txt | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation/admin-guide/k

[PATCH 2/5] xen/events: make struct irq_info private to events_base.c

2020-10-22 Thread Juergen Gross
The struct irq_info of Xen's event handling is used only for two evtchn_ops functions outside of events_base.c. Those two functions can easily be switched to avoid that usage. This allows to make struct irq_info and its related access functions private to events_base.c. Signed-off-by: Ju

[PATCH 0/5] xen: event handling cleanup

2020-10-22 Thread Juergen Gross
Do some cleanups in Xen event handling code. Juergen Gross (5): xen: remove no longer used functions xen/events: make struct irq_info private to events_base.c xen/events: only register debug interrupt for 2-level events xen/events: unmask a fifo event channel only if it was masked

[PATCH 4/5] xen/events: unmask a fifo event channel only if it was masked

2020-10-22 Thread Juergen Gross
Unmasking an event channel with fifo events channels being used can require a hypercall to be made, so try to avoid that by checking whether the event channel was really masked. Suggested-by: Jan Beulich Signed-off-by: Juergen Gross --- drivers/xen/events/events_fifo.c | 3 +++ 1 file changed

[PATCH 3/5] xen/events: only register debug interrupt for 2-level events

2020-10-22 Thread Juergen Gross
xen_debug_interrupt() is specific to 2-level event handling. So don't register it with fifo event handling being active. Signed-off-by: Juergen Gross --- arch/x86/xen/smp.c | 19 +++ arch/x86/xen/xen-ops.h | 2 ++ drivers/xen/events/events_base.c

[GIT PULL] xen: branch for v5.10-rc1b

2020-10-20 Thread Juergen Gross
iback/pciback_ops.c | 48 ++- drivers/xen/xen-pciback/xenbus.c| 2 +- drivers/xen/xen-scsiback.c | 23 +- include/xen/events.h| 21 ++ 19 files changed, 707 insertions(+), 165 deletions(-) Juergen Gross (13): xen/e

[GIT PULL] xen: branch for v5.10-rc1

2020-10-13 Thread Juergen Gross
insertions(+), 12 deletions(-) Hui Su (1): x86/xen: Fix typo in xen_pagetable_p2m_free() Jing Xiangfeng (1): xen: remove redundant initialization of variable ret Juergen Gross (1): x86/xen: disable Firmware First mode for correctable memory errors Souptick Joarder (2): xen

[PATCH] x86/alternative: don't call text_poke() in lazy TLB mode

2020-10-09 Thread Juergen Gross
("x86/mm: Introduce temporary mm structs") Signed-off-by: Juergen Gross --- arch/x86/kernel/alternative.c | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/x86/kernel/alternative.c b/arch/x86/kernel/alternative.c index cdaab30880b9..cd6be6f143e8 100644 --- a/arch/

[GIT PULL] xen: branch for v5.9-rc9

2020-10-06 Thread Juergen Gross
Linus, Please git pull the following tag: git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git for-linus-5.9b-rc9-tag xen: branch for v5.9-rc9 It contains one fix for a regression when booting as a Xen guest on ARM64 introduced probably during the 5.9 cycle. It is very low risk as it is

[GIT PULL] xen: branch for v5.9-rc8

2020-10-03 Thread Juergen Gross
using legacy devices like a floppy. Thanks. Juergen drivers/xen/events/events_base.c | 29 + 1 file changed, 21 insertions(+), 8 deletions(-) Juergen Gross (1): xen/events: don't use chip_data for legacy IRQs

[PATCH] xen/events: don't use chip_data for legacy IRQs

2020-09-30 Thread Juergen Gross
which contains XEN specific information.") Signed-off-by: Juergen Gross --- drivers/xen/events/events_base.c | 29 + 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/drivers/xen/events/events_base.c b/drivers/xen/events/events_base.c index 90b8f5

[PATCH v2] x86/xen: disable Firmware First mode for correctable memory errors

2020-09-25 Thread Juergen Gross
d MCA bank 8. Reason is that the HEST ACPI table contains the real number of MCA banks, while the hypervisor is emulating only 2 banks for guests. Cc: sta...@vger.kernel.org Signed-off-by: Juergen Gross Reviewed-by: Boris Ostrovsky --- arch/x86/xen/enlighten_pv.c | 9 + 1 file chang

[PATCH] x86/xen: disable Firmware First mode for correctable memory errors

2020-09-25 Thread Juergen Gross
d MCA bank 8. Reason is that the HEST ACPI table contains the real number of MCA banks, while the hypervisor is emulating only 2 banks for guests. Cc: sta...@vger.kernel.org Signed-off-by: Juergen Gross --- arch/x86/xen/enlighten_pv.c | 8 1 file changed, 8 insertions(+) diff --git a

[GIT PULL] xen: branch for v5.9-rc4

2020-09-05 Thread Juergen Gross
Linus, Please git pull the following tag: git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git for-linus-5.9-rc4-tag xen: branch for v5.9-rc4 It contains a small series for fixing a problem with Xen PVH guests when running as backends (e.g. as dom0). Mapping other guests' memory now is wo

[GIT PULL] xen: branch for v5.9-rc3

2020-08-29 Thread Juergen Gross
Linus, Please git pull the following tag: git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git for-linus-5.9-rc3-tag xen: branch for v5.9-rc3 It contains two fixes for Xen: one needed for ongoing work to support virtio with Xen, and one for a corner case in IRQ handling with Xen. Thanks

[GIT PULL] xen: branch for v5.9-rc2

2020-08-21 Thread Juergen Gross
/xen.c | 1 + drivers/video/fbdev/efifb.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) Juergen Gross (1): efi: avoid error message when booting under Xen Randy Dunlap (1): Fix build error when CONFIG_ACPI is not set/enabled:

[tip: x86/paravirt] x86/paravirt: Use CONFIG_PARAVIRT_XXL instead of CONFIG_PARAVIRT

2020-08-15 Thread tip-bot2 for Juergen Gross
The following commit has been merged into the x86/paravirt branch of tip: Commit-ID: ecac71816a1829c0e54c41c5f1845f75b55dc618 Gitweb: https://git.kernel.org/tip/ecac71816a1829c0e54c41c5f1845f75b55dc618 Author:Juergen Gross AuthorDate:Sat, 15 Aug 2020 12:06:38 +02:00

[tip: x86/paravirt] x86/paravirt: Remove set_pte_at() pv-op

2020-08-15 Thread tip-bot2 for Juergen Gross
The following commit has been merged into the x86/paravirt branch of tip: Commit-ID: e1ac3e66d301e57472f31ebee81b916e9fa8b35b Gitweb: https://git.kernel.org/tip/e1ac3e66d301e57472f31ebee81b916e9fa8b35b Author:Juergen Gross AuthorDate:Sat, 15 Aug 2020 12:06:40 +02:00

[tip: x86/paravirt] x86/entry/32: Simplify CONFIG_XEN_PV build dependency

2020-08-15 Thread tip-bot2 for Juergen Gross
The following commit has been merged into the x86/paravirt branch of tip: Commit-ID: 76fdb041c1f02311e6e05211c895e932af08b041 Gitweb: https://git.kernel.org/tip/76fdb041c1f02311e6e05211c895e932af08b041 Author:Juergen Gross AuthorDate:Sat, 15 Aug 2020 12:06:39 +02:00

[tip: x86/paravirt] x86/paravirt: Remove 32-bit support from CONFIG_PARAVIRT_XXL

2020-08-15 Thread tip-bot2 for Juergen Gross
The following commit has been merged into the x86/paravirt branch of tip: Commit-ID: 0cabf9914990dc59a7e1793ef2fb294d578dc210 Gitweb: https://git.kernel.org/tip/0cabf9914990dc59a7e1793ef2fb294d578dc210 Author:Juergen Gross AuthorDate:Sat, 15 Aug 2020 12:06:36 +02:00

[tip: x86/paravirt] x86/paravirt: Avoid needless paravirt step clearing page table entries

2020-08-15 Thread tip-bot2 for Juergen Gross
The following commit has been merged into the x86/paravirt branch of tip: Commit-ID: 7c9f80cb76ec9f14c3b25509168b1a2f7942e418 Gitweb: https://git.kernel.org/tip/7c9f80cb76ec9f14c3b25509168b1a2f7942e418 Author:Juergen Gross AuthorDate:Sat, 15 Aug 2020 12:06:41 +02:00

[tip: x86/paravirt] x86/paravirt: Clean up paravirt macros

2020-08-15 Thread tip-bot2 for Juergen Gross
The following commit has been merged into the x86/paravirt branch of tip: Commit-ID: 94b827becc6a87c905ab30b398e12a266518acbb Gitweb: https://git.kernel.org/tip/94b827becc6a87c905ab30b398e12a266518acbb Author:Juergen Gross AuthorDate:Sat, 15 Aug 2020 12:06:37 +02:00

[PATCH v4 6/6] x86/paravirt: avoid needless paravirt step clearing page table entries

2020-08-15 Thread Juergen Gross
pte_clear() et al are based on tw0 paravirt steps today: one step to create a page table entry with all zeroes, and one step to write this entry value. Drop the first step as it is completely useless. Signed-off-by: Juergen Gross --- arch/x86/include/asm/paravirt.h | 12 ++-- 1 file

[PATCH v4 4/6] x86/entry/32: revert "Fix XEN_PV build dependency"

2020-08-15 Thread Juergen Gross
With 32-bit Xen PV support gone commit a4c0e91d1d65bc58 ("x86/entry/32: Fix XEN_PV build dependency") can be reverted again. Signed-off-by: Juergen Gross --- arch/x86/include/asm/idtentry.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/id

[PATCH v4 2/6] x86/paravirt: cleanup paravirt macros

2020-08-15 Thread Juergen Gross
Some paravirt macros are no longer used, delete them. Signed-off-by: Juergen Gross --- arch/x86/include/asm/paravirt.h | 15 --- 1 file changed, 15 deletions(-) diff --git a/arch/x86/include/asm/paravirt.h b/arch/x86/include/asm/paravirt.h index 25c7a73461f6..e02c409fa054 100644

[PATCH v4 0/6] x86/paravirt: cleanup after 32-bit PV removal

2020-08-15 Thread Juergen Gross
V2: - rebase to 5.8 kernel - addressed comments to V1 - new patches 3 and 4 Juergen Gross (6): x86/paravirt: remove 32-bit support from PARAVIRT_XXL x86/paravirt: cleanup paravirt macros x86/paravirt: use CONFIG_PARAVIRT_XXL instead of CONFIG_PARAVIRT x86/entry/32: revert "Fix XEN_PV

[PATCH v4 1/6] x86/paravirt: remove 32-bit support from PARAVIRT_XXL

2020-08-15 Thread Juergen Gross
The last 32-bit user of stuff under CONFIG_PARAVIRT_XXL is gone. Remove 32-bit specific parts. Signed-off-by: Juergen Gross --- arch/x86/entry/vdso/vdso32/vclock_gettime.c | 1 + arch/x86/include/asm/paravirt.h | 120 ++-- arch/x86/include/asm/paravirt_types.h

[PATCH v4 5/6] x86/paravirt: remove set_pte_at pv-op

2020-08-15 Thread Juergen Gross
On x86 set_pte_at() is now always falling back to set_pte(). So instead of having this fallback after the paravirt maze just drop the set_pte_at paravirt operation and let set_pte_at() use the set_pte() function directly. Signed-off-by: Juergen Gross --- arch/x86/include/asm/paravirt.h

[PATCH v4 3/6] x86/paravirt: use CONFIG_PARAVIRT_XXL instead of CONFIG_PARAVIRT

2020-08-15 Thread Juergen Gross
There are some code parts using CONFIG_PARAVIRT for Xen pvops related issues instead of the more stringent CONFIG_PARAVIRT_XXL. Signed-off-by: Juergen Gross --- arch/x86/entry/entry_64.S| 4 ++-- arch/x86/include/asm/fixmap.h| 2 +- arch/x86/include/asm/required

[GIT PULL] xen: branch for v5.9-rc1b

2020-08-14 Thread Juergen Gross
+- drivers/gpu/drm/xen/xen_drm_front_kms.c | 2 +- drivers/xen/Kconfig | 4 +- drivers/xen/gntdev-dmabuf.c | 8 + include/xen/interface/io/displif.h | 91 +- 27 files changed, 397 insertions(+), 1143 deletions(-) Juergen Gross (3): x86/xen: remove

[PATCH v3 1/7] x86/xen: remove 32-bit Xen PV guest support

2020-08-07 Thread Juergen Gross
support from the kernel. Signed-off-by: Juergen Gross --- arch/x86/entry/entry_32.S | 109 + arch/x86/entry/vdso/vdso32/note.S | 30 --- arch/x86/include/asm/proto.h | 2 +- arch/x86/include/asm/segment.h| 2 +- arch/x86/kernel/head_32.S | 31 --- arch/x86/xen

[PATCH v3 2/7] x86/xen: eliminate xen-asm_64.S

2020-08-07 Thread Juergen Gross
With 32-bit pv-guest support removed xen-asm_64.S can be merged with xen-asm.S Signed-off-by: Juergen Gross --- arch/x86/xen/Makefile | 3 +- arch/x86/xen/xen-asm.S| 179 +++ arch/x86/xen/xen-asm_64.S | 192 -- 3

[PATCH v3 0/7] Remove 32-bit Xen PV guest support

2020-08-07 Thread Juergen Gross
Changes in V2: - rebase to 5.8 kernel - addressed comments to V1 - new patches 3 and 4 Juergen Gross (7): x86/xen: remove 32-bit Xen PV guest support x86/xen: eliminate xen-asm_64.S x86/xen: drop tests for highmem in pv code x86/paravirt: remove 32-bit support from PARAVIRT_XXL x86

[PATCH v3 5/7] x86/paravirt: cleanup paravirt macros

2020-08-07 Thread Juergen Gross
Some paravirt macros are no longer used, delete them. Signed-off-by: Juergen Gross --- arch/x86/include/asm/paravirt.h | 15 --- 1 file changed, 15 deletions(-) diff --git a/arch/x86/include/asm/paravirt.h b/arch/x86/include/asm/paravirt.h index dedc89a07826..99da08852df0 100644

[PATCH v3 7/7] x86/entry/32: revert "Fix XEN_PV build dependency"

2020-08-07 Thread Juergen Gross
With 32-bit Xen PV support gone commit a4c0e91d1d65bc58 ("x86/entry/32: Fix XEN_PV build dependency") can be reverted again. Signed-off-by: Juergen Gross --- arch/x86/include/asm/idtentry.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/id

[PATCH v3 3/7] x86/xen: drop tests for highmem in pv code

2020-08-07 Thread Juergen Gross
With support for 32-bit pv guests gone pure pv-code no longer needs to test for highmem. Dropping those tests removes the need for flushing in some places. Signed-off-by: Juergen Gross --- arch/x86/xen/enlighten_pv.c | 11 ++- arch/x86/xen/mmu_pv.c | 138

[PATCH v3 6/7] x86/paravirt: use CONFIG_PARAVIRT_XXL instead of CONFIG_PARAVIRT

2020-08-07 Thread Juergen Gross
There are some code parts using CONFIG_PARAVIRT for Xen pvops related issues instead of the more stringent CONFIG_PARAVIRT_XXL. Signed-off-by: Juergen Gross --- arch/x86/entry/entry_64.S| 4 ++-- arch/x86/include/asm/fixmap.h| 2 +- arch/x86/include/asm/required

[PATCH v3 4/7] x86/paravirt: remove 32-bit support from PARAVIRT_XXL

2020-08-07 Thread Juergen Gross
The last 32-bit user of stuff under CONFIG_PARAVIRT_XXL is gone. Remove 32-bit specific parts. Signed-off-by: Juergen Gross --- arch/x86/entry/vdso/vdso32/vclock_gettime.c | 1 + arch/x86/include/asm/paravirt.h | 92 +++-- arch/x86/include/asm/paravirt_types.h

[GIT PULL] xen: branch for v5.9-rc1

2020-08-06 Thread Juergen Gross
Linus, Please git pull the following tag: git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git for-linus-5.9-rc1-tag xen: branch for v5.9-rc1 It contains the following: - two trivial comment fixes - A small series for the Xen balloon driver fixing some issues - A series of the Xen privcm

[GIT PULL] xen: branch for v5.8-rc5

2020-07-11 Thread Juergen Gross
Linus, Please git pull the following tag: git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git for-linus-5.8b-rc5-tag xen: branch for v5.8-rc5 It is just one fix of a recent patch (double free in an error path). Thanks. Juergen drivers/xen/xenbus/xenbus_client.c | 4 +--- 1 file chan

[PATCH v2] efi: avoid error message when booting under Xen

2020-07-10 Thread Juergen Gross
n mapping the FB") Signed-off-by: Juergen Gross --- drivers/video/fbdev/efifb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/efifb.c b/drivers/video/fbdev/efifb.c index 65491ae74808..e57c00824965 100644 --- a/drivers/video/fbdev/efifb.c +++ b/driv

[GIT PULL] xen: branch for v5.8-rc4

2020-07-03 Thread Juergen Gross
return code settings). Thanks. Juergen arch/arm/xen/enlighten.c | 1 - drivers/xen/xenbus/xenbus_client.c | 167 ++--- 2 files changed, 81 insertions(+), 87 deletions(-) Juergen Gross (2): xen/xenbus: avoid large structs and arrays on the stack

[PATCH v2 2/2] xen/xenbus: let xenbus_map_ring_valloc() return errno values only

2020-07-01 Thread Juergen Gross
xenbus_map_ring_valloc() only use the return value to print an error message, and in case of mapping errors the grant status value has already been printed by __xenbus_map_ring() before. Signed-off-by: Juergen Gross Reviewed-by: Boris Ostrovsky --- drivers/xen/xenbus/xenbus_client.c | 22

[PATCH v2 1/2] xen/xenbus: avoid large structs and arrays on the stack

2020-07-01 Thread Juergen Gross
-by: Juergen Gross --- V2: - shorten internal function names (Boris Ostrovsky) --- drivers/xen/xenbus/xenbus_client.c | 161 +++-- 1 file changed, 83 insertions(+), 78 deletions(-) diff --git a/drivers/xen/xenbus/xenbus_client.c b/drivers/xen/xenbus/xenbus_client.c index

[PATCH v2 0/2] xen/xenbus: some cleanups

2020-07-01 Thread Juergen Gross
Avoid allocating large amount of data on the stack in xenbus_map_ring_valloc() and some related return value cleanups. Juergen Gross (2): xen/xenbus: avoid large structs and arrays on the stack xen/xenbus: let xenbus_map_ring_valloc() return errno values only drivers/xen/xenbus

[PATCH v2 2/4] x86/paravirt: remove 32-bit support from PARAVIRT_XXL

2020-07-01 Thread Juergen Gross
The last 32-bit user of stuff under CONFIG_PARAVIRT_XXL is gone. Remove 32-bit specific parts. Signed-off-by: Juergen Gross --- arch/x86/entry/vdso/vdso32/vclock_gettime.c | 1 + arch/x86/include/asm/paravirt.h | 92 +++-- arch/x86/include/asm/paravirt_types.h

[PATCH v2 4/4] x86/paravirt: use CONFIG_PARAVIRT_XXL instead of CONFIG_PARAVIRT

2020-07-01 Thread Juergen Gross
There are some code parts using CONFIG_PARAVIRT for Xen pvops related issues instead of the more stringent CONFIG_PARAVIRT_XXL. Signed-off-by: Juergen Gross --- arch/x86/entry/entry_64.S| 4 ++-- arch/x86/include/asm/fixmap.h| 2 +- arch/x86/include/asm/required

[PATCH v2 3/4] x86/paravirt: cleanup paravirt macros

2020-07-01 Thread Juergen Gross
Some paravirt macros are no longer used, delete them. Signed-off-by: Juergen Gross --- arch/x86/include/asm/paravirt.h | 15 --- 1 file changed, 15 deletions(-) diff --git a/arch/x86/include/asm/paravirt.h b/arch/x86/include/asm/paravirt.h index cfe9f6e472b5..cff2fbd1edd5 100644

[PATCH v2 0/4] Remove 32-bit Xen PV guest support

2020-07-01 Thread Juergen Gross
PV guest support alive in the Linux kernel. Additionally Meltdown mitigation is not available in the kernel running as 32-bit PV guest, so dropping this mode makes sense from security point of view, too. Changes in V2: - rebase to 5.8 kernel - addressed comments to V1 - new patches 3 and 4 Juergen

[PATCH v2 1/4] x86/xen: remove 32-bit Xen PV guest support

2020-07-01 Thread Juergen Gross
support from the kernel. Signed-off-by: Juergen Gross --- arch/x86/entry/entry_32.S | 109 +-- arch/x86/include/asm/proto.h | 2 +- arch/x86/include/asm/segment.h | 2 +- arch/x86/kernel/head_32.S | 31 --- arch/x86/xen/Kconfig | 3 +- arch/x86/xen/Makefile

[GIT PULL] xen: branch for v5.8-rc1

2020-06-11 Thread Juergen Gross
verbose_request and use dev_dbg() instead Deep Shah (1): MAINTAINERS: Update PARAVIRT_OPS_INTERFACE and VMWARE_HYPERVISOR_INTERFACE Juergen Gross (1): xen/pvcalls-back: test for errors when calling backend_connect() Rikard Falkeborn (1): xen-platform: Constify dev_pm_ops Roger Pau

[PATCH] efi: avoid error message when booting under Xen

2020-06-10 Thread Juergen Gross
attributes when mapping the FB") Signed-off-by: Juergen Gross --- drivers/video/fbdev/efifb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/efifb.c b/drivers/video/fbdev/efifb.c index 65491ae74808..f5eccd1373e9 100644 --- a/drivers/video/fbdev/efifb.c

[PATCH] xen/pvcalls-back: test for errors when calling backend_connect()

2020-05-11 Thread Juergen Gross
backend_connect() can fail, so switch the device to connected only if no error occurred. Fixes: 0a9c75c2c7258f2 ("xen/pvcalls: xenbus state handling") Cc: sta...@vger.kernel.org Signed-off-by: Juergen Gross --- drivers/xen/pvcalls-back.c | 3 ++- 1 file changed, 2 insertions(+),

[PATCH 2/2] xen/xenbus: let xenbus_map_ring_valloc() return errno values only

2020-05-11 Thread Juergen Gross
xenbus_map_ring_valloc() only use the return value to print an error message, and in case of mapping errors the grant status value has already been printed by __xenbus_map_ring() before. Signed-off-by: Juergen Gross --- drivers/xen/xenbus/xenbus_client.c | 22 ++ 1 file changed, 6

[PATCH 1/2] xen/xenbus: avoid large structs and arrays on the stack

2020-05-11 Thread Juergen Gross
-by: Juergen Gross --- drivers/xen/xenbus/xenbus_client.c | 127 +++-- 1 file changed, 66 insertions(+), 61 deletions(-) diff --git a/drivers/xen/xenbus/xenbus_client.c b/drivers/xen/xenbus/xenbus_client.c index 040d2a43e8e3..d8e5c5e4fa67 100644 --- a/drivers/xen/xenbus

[PATCH 0/2] xen/xenbus: some cleanups

2020-05-11 Thread Juergen Gross
Avoid allocating large amount of data on the stack in xenbus_map_ring_valloc() and some related return value cleanups. Juergen Gross (2): xen/xenbus: avoid large structs and arrays on the stack xen/xenbus: let xenbus_map_ring_valloc() return errno values only drivers/xen/xenbus

[PATCH] ia64: remove stale paravirt leftovers

2019-10-21 Thread Juergen Gross
Remove the last leftovers from IA64 Xen pv-guest support. PARAVIRT is long gone from IA64 Kconfig and Xen IA64 support, too. Due to lack of infrastructure no testing done. Signed-off-by: Juergen Gross --- arch/ia64/include/asm/irqflags.h | 4 --- arch/ia64/include/uapi/asm

[PATCH] xen/netback: cleanup init and deinit code

2019-10-20 Thread Juergen Gross
) - there is no need to use get_task_struct() after creating a kthread and using put_task_struct() again after having stopped it. - use kthread_run() instead of kthread_create() to spare the call of wake_up_process(). Signed-off-by: Juergen Gross Reviewed-by: Paul Durrant --- drivers/net/xen

[PATCH] xen/netback: cleanup init and deinit code

2019-10-20 Thread Juergen Gross
) - there is no need to use get_task_struct() after creating a kthread and using put_task_struct() again after having stopped it. - use kthread_run() instead of kthread_create() to spare the call of wake_up_process(). Signed-off-by: Juergen Gross --- drivers/net/xen-netback/interface.c | 114

[PATCH] xen/netback: fix error path of xenvif_connect_data()

2019-10-18 Thread Juergen Gross
xenvif_connect_data() calls module_put() in case of error. This is wrong as there is no related module_get(). Remove the superfluous module_put(). Fixes: 279f438e36c0a7 ("xen-netback: Don't destroy the netdev until the vif is shut down") Cc: # 3.12 Signed-off-by: Juergen Gro

[PATCH 2/2] xen/netback: cleanup init and deinit code

2019-10-14 Thread Juergen Gross
) - there is no need to use get_task_struct() after creating a kthread and using put_task_struct() again after having stopped it. - use kthread_run() instead of kthread_create() to spare the call of wake_up_process(). Signed-off-by: Juergen Gross --- drivers/net/xen-netback/interface.c | 114

[PATCH 0/2] xen/netback: bug fix and cleanup

2019-10-14 Thread Juergen Gross
One bugfix (patch 1) I stumbled over while doing a cleanup (patch 2) of the xen-netback init/deinit code. Juergen Gross (2): xen/netback: fix error path of xenvif_connect_data() xen/netback: cleanup init and deinit code drivers/net/xen-netback/interface.c | 115

[PATCH 1/2] xen/netback: fix error path of xenvif_connect_data()

2019-10-14 Thread Juergen Gross
xenvif_connect_data() calls module_put() in case of error. This is wrong as there is no related module_get(). Remove the superfluous module_put(). Fixes: 279f438e36c0a7 ("xen-netback: Don't destroy the netdev until the vif is shut down") Cc: # 3.12 Signed-off-by: Juergen Gros

[GIT PULL] xen: fixes for 5.4-rc3

2019-10-12 Thread Juergen Gross
Linus, Please git pull the following tag: git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git for-linus-5.4-rc3-tag xen: fixes for 5.4-rc3 It contains the following patches: - a patch to correct panic handling when running as a Xen guest - a cleanup in the Xen grant driver to remove pr

<    1   2   3   4   5   6   7   8   9   10   >