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
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
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
+++---
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
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
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
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.
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
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
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
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
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
: 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
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
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
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
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
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
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
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
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-
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 +++
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(
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
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
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
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
+++---
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
("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/
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
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
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
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
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
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
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
/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:
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
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
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
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
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
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
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
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
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
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
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
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
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
+-
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
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
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
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
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
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
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
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
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
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
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
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
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
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
-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
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
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
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
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
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
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
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
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
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(+),
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
-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
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
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
)
- 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
)
- 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
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
)
- 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
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
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
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
201 - 300 of 1170 matches
Mail list logo