Compare commits
No commits in common. "main" and "hidden" have entirely different histories.
45
6617d62c-x86-hvm-Misra-Rule-19-1-regression.patch
Normal file
45
6617d62c-x86-hvm-Misra-Rule-19-1-regression.patch
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
# Commit d0a718a45f14b86471d8eb3083acd72760963470
|
||||||
|
# Date 2024-04-11 13:23:08 +0100
|
||||||
|
# Author Andrew Cooper <andrew.cooper3@citrix.com>
|
||||||
|
# Committer Andrew Cooper <andrew.cooper3@citrix.com>
|
||||||
|
x86/hvm: Fix Misra Rule 19.1 regression
|
||||||
|
|
||||||
|
Despite noticing an impending Rule 19.1 violation, the adjustment made (the
|
||||||
|
uint32_t cast) wasn't sufficient to avoid it. Try again.
|
||||||
|
|
||||||
|
Subsequently noticed by Coverity too.
|
||||||
|
|
||||||
|
Fixes: 6a98383b0877 ("x86/HVM: clear upper halves of GPRs upon entry from 32-bit code")
|
||||||
|
Coverity-IDs: 1596289 thru 1596298
|
||||||
|
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
|
||||||
|
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
|
||||||
|
|
||||||
|
--- a/xen/arch/x86/include/asm/hvm/hvm.h
|
||||||
|
+++ b/xen/arch/x86/include/asm/hvm/hvm.h
|
||||||
|
@@ -585,16 +585,16 @@ static inline void hvm_sanitize_regs_fie
|
||||||
|
if ( compat )
|
||||||
|
{
|
||||||
|
/* Clear GPR upper halves, to counteract guests playing games. */
|
||||||
|
- regs->rbp = (uint32_t)regs->ebp;
|
||||||
|
- regs->rbx = (uint32_t)regs->ebx;
|
||||||
|
- regs->rax = (uint32_t)regs->eax;
|
||||||
|
- regs->rcx = (uint32_t)regs->ecx;
|
||||||
|
- regs->rdx = (uint32_t)regs->edx;
|
||||||
|
- regs->rsi = (uint32_t)regs->esi;
|
||||||
|
- regs->rdi = (uint32_t)regs->edi;
|
||||||
|
- regs->rip = (uint32_t)regs->eip;
|
||||||
|
- regs->rflags = (uint32_t)regs->eflags;
|
||||||
|
- regs->rsp = (uint32_t)regs->esp;
|
||||||
|
+ regs->rbp = (uint32_t)regs->rbp;
|
||||||
|
+ regs->rbx = (uint32_t)regs->rbx;
|
||||||
|
+ regs->rax = (uint32_t)regs->rax;
|
||||||
|
+ regs->rcx = (uint32_t)regs->rcx;
|
||||||
|
+ regs->rdx = (uint32_t)regs->rdx;
|
||||||
|
+ regs->rsi = (uint32_t)regs->rsi;
|
||||||
|
+ regs->rdi = (uint32_t)regs->rdi;
|
||||||
|
+ regs->rip = (uint32_t)regs->rip;
|
||||||
|
+ regs->rflags = (uint32_t)regs->rflags;
|
||||||
|
+ regs->rsp = (uint32_t)regs->rsp;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifndef NDEBUG
|
50
bin-python3-conversion.patch
Normal file
50
bin-python3-conversion.patch
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
Index: xen-4.18.0-testing/tools/misc/xencov_split
|
||||||
|
===================================================================
|
||||||
|
--- xen-4.18.0-testing.orig/tools/misc/xencov_split
|
||||||
|
+++ xen-4.18.0-testing/tools/misc/xencov_split
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-#!/usr/bin/env python
|
||||||
|
+#!/usr/bin/python3
|
||||||
|
|
||||||
|
from __future__ import print_function
|
||||||
|
from builtins import str
|
||||||
|
Index: xen-4.18.0-testing/tools/python/scripts/convert-legacy-stream
|
||||||
|
===================================================================
|
||||||
|
--- xen-4.18.0-testing.orig/tools/python/scripts/convert-legacy-stream
|
||||||
|
+++ xen-4.18.0-testing/tools/python/scripts/convert-legacy-stream
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-#!/usr/bin/env python
|
||||||
|
+#!/usr/bin/python3
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
"""
|
||||||
|
Index: xen-4.18.0-testing/tools/python/scripts/verify-stream-v2
|
||||||
|
===================================================================
|
||||||
|
--- xen-4.18.0-testing.orig/tools/python/scripts/verify-stream-v2
|
||||||
|
+++ xen-4.18.0-testing/tools/python/scripts/verify-stream-v2
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-#!/usr/bin/env python
|
||||||
|
+#!/usr/bin/python3
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
""" Verify a v2 format migration stream """
|
||||||
|
Index: xen-4.18.0-testing/tools/xenmon/xenmon.py
|
||||||
|
===================================================================
|
||||||
|
--- xen-4.18.0-testing.orig/tools/xenmon/xenmon.py
|
||||||
|
+++ xen-4.18.0-testing/tools/xenmon/xenmon.py
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-#!/usr/bin/env python
|
||||||
|
+#!/usr/bin/python3
|
||||||
|
|
||||||
|
#####################################################################
|
||||||
|
# xenmon is a front-end for xenbaked.
|
||||||
|
Index: xen-4.18.0-testing/tools/xentrace/xentrace_format
|
||||||
|
===================================================================
|
||||||
|
--- xen-4.18.0-testing.orig/tools/xentrace/xentrace_format
|
||||||
|
+++ xen-4.18.0-testing/tools/xentrace/xentrace_format
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-#!/usr/bin/env python
|
||||||
|
+#!/usr/bin/python3
|
||||||
|
|
||||||
|
# by Mark Williamson, (C) 2004 Intel Research Cambridge
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
Index: xen-4.19.0-testing/Config.mk
|
Index: xen-4.18.3-testing/Config.mk
|
||||||
===================================================================
|
===================================================================
|
||||||
--- xen-4.19.0-testing.orig/Config.mk
|
--- xen-4.18.3-testing.orig/Config.mk
|
||||||
+++ xen-4.19.0-testing/Config.mk
|
+++ xen-4.18.3-testing/Config.mk
|
||||||
@@ -77,7 +77,7 @@ EXTRA_INCLUDES += $(EXTRA_PREFIX)/includ
|
@@ -77,7 +77,7 @@ EXTRA_INCLUDES += $(EXTRA_PREFIX)/includ
|
||||||
EXTRA_LIB += $(EXTRA_PREFIX)/lib
|
EXTRA_LIB += $(EXTRA_PREFIX)/lib
|
||||||
endif
|
endif
|
||||||
@ -11,34 +11,47 @@ Index: xen-4.19.0-testing/Config.mk
|
|||||||
PYTHON_PREFIX_ARG ?= --prefix="$(prefix)"
|
PYTHON_PREFIX_ARG ?= --prefix="$(prefix)"
|
||||||
# The above requires that prefix contains *no spaces*. This variable is here
|
# The above requires that prefix contains *no spaces*. This variable is here
|
||||||
# to permit the user to set PYTHON_PREFIX_ARG to '' to workaround this bug:
|
# to permit the user to set PYTHON_PREFIX_ARG to '' to workaround this bug:
|
||||||
Index: xen-4.19.0-testing/tools/configure
|
Index: xen-4.18.3-testing/tools/configure
|
||||||
===================================================================
|
===================================================================
|
||||||
--- xen-4.19.0-testing.orig/tools/configure
|
--- xen-4.18.3-testing.orig/tools/configure
|
||||||
+++ xen-4.19.0-testing/tools/configure
|
+++ xen-4.18.3-testing/tools/configure
|
||||||
@@ -8297,15 +8297,15 @@ if test x"${PYTHONPATH}" = x"no"
|
@@ -7382,15 +7382,15 @@ if test x"${PYTHONPATH}" = x"no"
|
||||||
then
|
then
|
||||||
as_fn_error $? "Unable to find $PYTHON, please install $PYTHON" "$LINENO" 5
|
as_fn_error $? "Unable to find $PYTHON, please install $PYTHON" "$LINENO" 5
|
||||||
fi
|
fi
|
||||||
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python version >= 2.7 " >&5
|
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for python version >= 2.6 " >&5
|
||||||
-printf %s "checking for python version >= 2.7 ... " >&6; }
|
-$as_echo_n "checking for python version >= 2.6 ... " >&6; }
|
||||||
-`$PYTHON -c 'import sys; sys.exit(eval("sys.version_info < (2, 7)"))'`
|
-`$PYTHON -c 'import sys; sys.exit(eval("sys.version_info < (2, 6)"))'`
|
||||||
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python version >= 3.0 " >&5
|
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for python3 version >= 3.0 " >&5
|
||||||
+printf %s "checking for python version >= 3.0 ... " >&6; }
|
+$as_echo_n "checking for python3 version >= 3.0 ... " >&6; }
|
||||||
+`$PYTHON -c 'import sys; sys.exit(eval("sys.version_info < (3, 0)"))'`
|
+`$PYTHON -c 'import sys; sys.exit(eval("sys.version_info < (3, 0)"))'`
|
||||||
if test "$?" != "0"
|
if test "$?" != "0"
|
||||||
then
|
then
|
||||||
python_version=`$PYTHON -V 2>&1`
|
python_version=`$PYTHON -V 2>&1`
|
||||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
||||||
printf "%s\n" "no" >&6; }
|
$as_echo "no" >&6; }
|
||||||
- as_fn_error $? "$python_version is too old, minimum required version is 2.7" "$LINENO" 5
|
- as_fn_error $? "$python_version is too old, minimum required version is 2.6" "$LINENO" 5
|
||||||
+ as_fn_error $? "$python_version is too old, minimum required version is 3.0" "$LINENO" 5
|
+ as_fn_error $? "$python_version is too old, minimum required version is 3.0" "$LINENO" 5
|
||||||
else
|
else
|
||||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
||||||
printf "%s\n" "yes" >&6; }
|
$as_echo "yes" >&6; }
|
||||||
Index: xen-4.19.0-testing/tools/libs/light/idl.py
|
Index: xen-4.18.3-testing/tools/configure.ac
|
||||||
===================================================================
|
===================================================================
|
||||||
--- xen-4.19.0-testing.orig/tools/libs/light/idl.py
|
--- xen-4.18.3-testing.orig/tools/configure.ac
|
||||||
+++ xen-4.19.0-testing/tools/libs/light/idl.py
|
+++ xen-4.18.3-testing/tools/configure.ac
|
||||||
|
@@ -385,7 +385,7 @@ PYTHONPATH=$PYTHON
|
||||||
|
PYTHON=`basename $PYTHONPATH`
|
||||||
|
|
||||||
|
AX_PATH_PROG_OR_FAIL([PYTHONPATH], [$PYTHON])
|
||||||
|
-AX_CHECK_PYTHON_VERSION([2], [6])
|
||||||
|
+AX_CHECK_PYTHON_VERSION([3], [0])
|
||||||
|
|
||||||
|
AS_IF([test "$cross_compiling" != yes], [
|
||||||
|
AX_CHECK_PYTHON_DEVEL()
|
||||||
|
Index: xen-4.18.3-testing/tools/libs/light/idl.py
|
||||||
|
===================================================================
|
||||||
|
--- xen-4.18.3-testing.orig/tools/libs/light/idl.py
|
||||||
|
+++ xen-4.18.3-testing/tools/libs/light/idl.py
|
||||||
@@ -271,7 +271,7 @@ class KeyedUnion(Aggregate):
|
@@ -271,7 +271,7 @@ class KeyedUnion(Aggregate):
|
||||||
if not isinstance(keyvar_type, Enumeration):
|
if not isinstance(keyvar_type, Enumeration):
|
||||||
raise ValueError
|
raise ValueError
|
||||||
@ -66,80 +79,80 @@ Index: xen-4.19.0-testing/tools/libs/light/idl.py
|
|||||||
if isinstance(t, Type):
|
if isinstance(t, Type):
|
||||||
globs[n] = t
|
globs[n] = t
|
||||||
elif isinstance(t,type(object)) and issubclass(t, Type):
|
elif isinstance(t,type(object)) and issubclass(t, Type):
|
||||||
Index: xen-4.19.0-testing/tools/libs/light/gentest.py
|
Index: xen-4.18.3-testing/tools/libs/light/gentest.py
|
||||||
===================================================================
|
===================================================================
|
||||||
--- xen-4.19.0-testing.orig/tools/libs/light/gentest.py
|
--- xen-4.18.3-testing.orig/tools/libs/light/gentest.py
|
||||||
+++ xen-4.19.0-testing/tools/libs/light/gentest.py
|
+++ xen-4.18.3-testing/tools/libs/light/gentest.py
|
||||||
@@ -1,4 +1,4 @@
|
@@ -1,4 +1,4 @@
|
||||||
-#!/usr/bin/python
|
-#!/usr/bin/python
|
||||||
+#!/usr/bin/python3
|
+#!/usr/bin/python3
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
Index: xen-4.19.0-testing/tools/libs/light/gentypes.py
|
Index: xen-4.18.3-testing/tools/libs/light/gentypes.py
|
||||||
===================================================================
|
===================================================================
|
||||||
--- xen-4.19.0-testing.orig/tools/libs/light/gentypes.py
|
--- xen-4.18.3-testing.orig/tools/libs/light/gentypes.py
|
||||||
+++ xen-4.19.0-testing/tools/libs/light/gentypes.py
|
+++ xen-4.18.3-testing/tools/libs/light/gentypes.py
|
||||||
@@ -1,4 +1,4 @@
|
@@ -1,4 +1,4 @@
|
||||||
-#!/usr/bin/python
|
-#!/usr/bin/python
|
||||||
+#!/usr/bin/python3
|
+#!/usr/bin/python3
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
Index: xen-4.19.0-testing/tools/include/xen-foreign/mkheader.py
|
Index: xen-4.18.3-testing/tools/include/xen-foreign/mkheader.py
|
||||||
===================================================================
|
===================================================================
|
||||||
--- xen-4.19.0-testing.orig/tools/include/xen-foreign/mkheader.py
|
--- xen-4.18.3-testing.orig/tools/include/xen-foreign/mkheader.py
|
||||||
+++ xen-4.19.0-testing/tools/include/xen-foreign/mkheader.py
|
+++ xen-4.18.3-testing/tools/include/xen-foreign/mkheader.py
|
||||||
@@ -1,4 +1,4 @@
|
@@ -1,4 +1,4 @@
|
||||||
-#!/usr/bin/python
|
-#!/usr/bin/python
|
||||||
+#!/usr/bin/python3
|
+#!/usr/bin/python3
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
Index: xen-4.19.0-testing/tools/include/xen-foreign/mkchecker.py
|
Index: xen-4.18.3-testing/tools/include/xen-foreign/mkchecker.py
|
||||||
===================================================================
|
===================================================================
|
||||||
--- xen-4.19.0-testing.orig/tools/include/xen-foreign/mkchecker.py
|
--- xen-4.18.3-testing.orig/tools/include/xen-foreign/mkchecker.py
|
||||||
+++ xen-4.19.0-testing/tools/include/xen-foreign/mkchecker.py
|
+++ xen-4.18.3-testing/tools/include/xen-foreign/mkchecker.py
|
||||||
@@ -1,4 +1,4 @@
|
@@ -1,4 +1,4 @@
|
||||||
-#!/usr/bin/python
|
-#!/usr/bin/python
|
||||||
+#!/usr/bin/python3
|
+#!/usr/bin/python3
|
||||||
|
|
||||||
import sys;
|
import sys;
|
||||||
from structs import structs, compat_arches;
|
from structs import structs, compat_arches;
|
||||||
Index: xen-4.19.0-testing/xen/tools/gen-cpuid.py
|
Index: xen-4.18.3-testing/xen/tools/gen-cpuid.py
|
||||||
===================================================================
|
===================================================================
|
||||||
--- xen-4.19.0-testing.orig/xen/tools/gen-cpuid.py
|
--- xen-4.18.3-testing.orig/xen/tools/gen-cpuid.py
|
||||||
+++ xen-4.19.0-testing/xen/tools/gen-cpuid.py
|
+++ xen-4.18.3-testing/xen/tools/gen-cpuid.py
|
||||||
@@ -1,4 +1,4 @@
|
@@ -1,4 +1,4 @@
|
||||||
-#!/usr/bin/env python
|
-#!/usr/bin/env python
|
||||||
+#!/usr/bin/python3
|
+#!/usr/bin/python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
import sys, os, re
|
import sys, os, re
|
||||||
Index: xen-4.19.0-testing/xen/tools/compat-build-source.py
|
Index: xen-4.18.3-testing/xen/tools/compat-build-source.py
|
||||||
===================================================================
|
===================================================================
|
||||||
--- xen-4.19.0-testing.orig/xen/tools/compat-build-source.py
|
--- xen-4.18.3-testing.orig/xen/tools/compat-build-source.py
|
||||||
+++ xen-4.19.0-testing/xen/tools/compat-build-source.py
|
+++ xen-4.18.3-testing/xen/tools/compat-build-source.py
|
||||||
@@ -1,4 +1,4 @@
|
@@ -1,4 +1,4 @@
|
||||||
-#!/usr/bin/env python
|
-#!/usr/bin/env python
|
||||||
+#!/usr/bin/python3
|
+#!/usr/bin/python3
|
||||||
|
|
||||||
import re,sys
|
import re,sys
|
||||||
|
|
||||||
Index: xen-4.19.0-testing/xen/tools/compat-build-header.py
|
Index: xen-4.18.3-testing/xen/tools/compat-build-header.py
|
||||||
===================================================================
|
===================================================================
|
||||||
--- xen-4.19.0-testing.orig/xen/tools/compat-build-header.py
|
--- xen-4.18.3-testing.orig/xen/tools/compat-build-header.py
|
||||||
+++ xen-4.19.0-testing/xen/tools/compat-build-header.py
|
+++ xen-4.18.3-testing/xen/tools/compat-build-header.py
|
||||||
@@ -1,4 +1,4 @@
|
@@ -1,4 +1,4 @@
|
||||||
-#!/usr/bin/env python
|
-#!/usr/bin/env python
|
||||||
+#!/usr/bin/python3
|
+#!/usr/bin/python3
|
||||||
|
|
||||||
import re,sys
|
import re,sys
|
||||||
|
|
||||||
Index: xen-4.19.0-testing/tools/misc/xensymoops
|
Index: xen-4.18.3-testing/tools/misc/xensymoops
|
||||||
===================================================================
|
===================================================================
|
||||||
--- xen-4.19.0-testing.orig/tools/misc/xensymoops
|
--- xen-4.18.3-testing.orig/tools/misc/xensymoops
|
||||||
+++ xen-4.19.0-testing/tools/misc/xensymoops
|
+++ xen-4.18.3-testing/tools/misc/xensymoops
|
||||||
@@ -1,4 +1,4 @@
|
@@ -1,4 +1,4 @@
|
||||||
-#!/usr/bin/env python
|
-#!/usr/bin/env python
|
||||||
+#!/usr/bin/python3
|
+#!/usr/bin/python3
|
||||||
|
81
gcc14-fixes.patch
Normal file
81
gcc14-fixes.patch
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
References: bsc#1225953
|
||||||
|
|
||||||
|
Compiling against gcc14.
|
||||||
|
../../../../../newlib-1.16.0/newlib/libc/stdlib/wcstoull.c: In function ‘wcstoull’:
|
||||||
|
../../../../../newlib-1.16.0/newlib/libc/stdlib/wcstoull.c:136:16: error: implicit declaration of function ‘_wcstoull_r’; did you mean ‘wcstoull’? [-Wimplicit-function-declaration]
|
||||||
|
136 | return _wcstoull_r (_REENT, s, ptr, base);
|
||||||
|
| ^~~~~~~~~~~
|
||||||
|
| wcstoull
|
||||||
|
|
||||||
|
In file included from ../../../../../newlib-1.16.0/newlib/libc/reent/signalr.c:7:
|
||||||
|
../../../../../newlib-1.16.0/newlib/libc/reent/signalr.c: In function ‘_kill_r’:
|
||||||
|
../../../../../newlib-1.16.0/newlib/libc/reent/signalr.c:61:14: error: implicit declaration of function ‘kill’; did you mean ‘_kill’? [-Wimplicit-function-declaration]
|
||||||
|
61 | if ((ret = _kill (pid, sig)) == -1 && errno != 0)
|
||||||
|
| ^~~~~
|
||||||
|
|
||||||
|
|
||||||
|
Index: xen-4.18.2-testing/stubdom/Makefile
|
||||||
|
===================================================================
|
||||||
|
--- xen-4.18.2-testing.orig/stubdom/Makefile
|
||||||
|
+++ xen-4.18.2-testing/stubdom/Makefile
|
||||||
|
@@ -97,6 +97,7 @@ newlib-$(NEWLIB_VERSION): newlib-$(NEWLI
|
||||||
|
patch -d $@ -p1 < newlib-disable-texinfo.patch
|
||||||
|
patch -d $@ -p1 < newlib-cygmon-gmon.patch
|
||||||
|
patch -d $@ -p1 < newlib-makedoc.patch
|
||||||
|
+ patch -d $@ -p1 < newlib-gcc14-pragmas.patch
|
||||||
|
find $@ -type f | xargs perl -i.bak \
|
||||||
|
-pe 's/\b_(tzname|daylight|timezone)\b/$$1/g'
|
||||||
|
touch $@
|
||||||
|
Index: xen-4.18.2-testing/stubdom/newlib-gcc14-pragmas.patch
|
||||||
|
===================================================================
|
||||||
|
--- /dev/null
|
||||||
|
+++ xen-4.18.2-testing/stubdom/newlib-gcc14-pragmas.patch
|
||||||
|
@@ -0,0 +1,36 @@
|
||||||
|
+--- newlib-1.16.0/newlib/libc/stdlib/wcstoull.c.orig 2024-06-04 15:32:01.495146632 -0600
|
||||||
|
++++ newlib-1.16.0/newlib/libc/stdlib/wcstoull.c 2024-06-04 15:38:56.627156524 -0600
|
||||||
|
+@@ -127,6 +127,10 @@ PORTABILITY
|
||||||
|
+
|
||||||
|
+ #ifndef _REENT_ONLY
|
||||||
|
+
|
||||||
|
++#if __GNUC__ >= 14
|
||||||
|
++#pragma GCC diagnostic ignored "-Wimplicit-function-declaration"
|
||||||
|
++#endif
|
||||||
|
++
|
||||||
|
+ unsigned long long
|
||||||
|
+ _DEFUN (wcstoull, (s, ptr, base),
|
||||||
|
+ _CONST wchar_t *s _AND
|
||||||
|
+--- newlib-1.16.0/newlib/libc/reent/signalr.c.orig 2024-06-04 15:39:15.139156966 -0600
|
||||||
|
++++ newlib-1.16.0/newlib/libc/reent/signalr.c 2024-06-04 15:40:24.899158628 -0600
|
||||||
|
+@@ -49,6 +49,10 @@ DESCRIPTION
|
||||||
|
+ <<errno>>.
|
||||||
|
+ */
|
||||||
|
+
|
||||||
|
++#if __GNUC__ >= 14
|
||||||
|
++#pragma GCC diagnostic ignored "-Wimplicit-function-declaration"
|
||||||
|
++#endif
|
||||||
|
++
|
||||||
|
+ int
|
||||||
|
+ _DEFUN (_kill_r, (ptr, pid, sig),
|
||||||
|
+ struct _reent *ptr _AND
|
||||||
|
+--- newlib-1.16.0/newlib/doc/makedoc.c.orig 2024-06-04 16:07:54.423197934 -0600
|
||||||
|
++++ newlib-1.16.0/newlib/doc/makedoc.c 2024-06-04 16:15:15.395208441 -0600
|
||||||
|
+@@ -798,6 +798,7 @@ DEFUN( iscommand,(ptr, idx),
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+
|
||||||
|
++static unsigned int
|
||||||
|
+ DEFUN(copy_past_newline,(ptr, idx, dst),
|
||||||
|
+ string_type *ptr AND
|
||||||
|
+ unsigned int idx AND
|
||||||
|
--- xen-4.18.2-testing/extras/mini-os-remote/include/posix/sys/mman.h.orig 2024-06-04 16:27:35.155226069 -0600
|
||||||
|
+++ xen-4.18.2-testing/extras/mini-os-remote/include/posix/sys/mman.h 2024-06-04 16:31:46.591232060 -0600
|
||||||
|
@@ -16,7 +16,7 @@
|
||||||
|
|
||||||
|
void *mmap(void *start, size_t length, int prot, int flags, int fd, off_t offset) asm("mmap64");
|
||||||
|
int munmap(void *start, size_t length);
|
||||||
|
-static inline mlock(const void *addr, size_t len) { return 0; }
|
||||||
|
-static inline munlock(const void *addr, size_t len) { return 0; }
|
||||||
|
+static inline int mlock(const void *addr, size_t len) { return 0; }
|
||||||
|
+static inline int munlock(const void *addr, size_t len) { return 0; }
|
||||||
|
|
||||||
|
#endif /* _POSIX_SYS_MMAN_H */
|
@ -20,7 +20,7 @@ Acked-by: Christian Lindig <christian.lindig@citrix.com>
|
|||||||
|
|
||||||
--- a/tools/include/libxl.h
|
--- a/tools/include/libxl.h
|
||||||
+++ b/tools/include/libxl.h
|
+++ b/tools/include/libxl.h
|
||||||
@@ -1850,13 +1850,28 @@ static inline int libxl_retrieve_domain_
|
@@ -1811,13 +1811,28 @@ static inline int libxl_retrieve_domain_
|
||||||
libxl_retrieve_domain_configuration_0x041200
|
libxl_retrieve_domain_configuration_0x041200
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ Signed-off-by: Olaf Hering <olaf@aepfle.de>
|
|||||||
=item B<remus> [I<OPTIONS>] I<domain-id> I<host>
|
=item B<remus> [I<OPTIONS>] I<domain-id> I<host>
|
||||||
--- a/tools/include/libxl.h
|
--- a/tools/include/libxl.h
|
||||||
+++ b/tools/include/libxl.h
|
+++ b/tools/include/libxl.h
|
||||||
@@ -1863,6 +1863,7 @@ typedef struct {
|
@@ -1824,6 +1824,7 @@ typedef struct {
|
||||||
} libxl_domain_suspend_suse_properties;
|
} libxl_domain_suspend_suse_properties;
|
||||||
#define LIBXL_SUSPEND_DEBUG 1
|
#define LIBXL_SUSPEND_DEBUG 1
|
||||||
#define LIBXL_SUSPEND_LIVE 2
|
#define LIBXL_SUSPEND_LIVE 2
|
||||||
@ -93,7 +93,7 @@ Signed-off-by: Olaf Hering <olaf@aepfle.de>
|
|||||||
dss->checkpointed_stream = LIBXL_CHECKPOINTED_STREAM_NONE;
|
dss->checkpointed_stream = LIBXL_CHECKPOINTED_STREAM_NONE;
|
||||||
--- a/tools/libs/light/libxl_internal.h
|
--- a/tools/libs/light/libxl_internal.h
|
||||||
+++ b/tools/libs/light/libxl_internal.h
|
+++ b/tools/libs/light/libxl_internal.h
|
||||||
@@ -3651,9 +3651,11 @@ struct libxl__domain_save_state {
|
@@ -3655,9 +3655,11 @@ struct libxl__domain_save_state {
|
||||||
libxl_domain_type type;
|
libxl_domain_type type;
|
||||||
int live;
|
int live;
|
||||||
int debug;
|
int debug;
|
||||||
|
@ -46,7 +46,7 @@ Signed-off-by: Olaf Hering <olaf@aepfle.de>
|
|||||||
=item B<remus> [I<OPTIONS>] I<domain-id> I<host>
|
=item B<remus> [I<OPTIONS>] I<domain-id> I<host>
|
||||||
--- a/tools/include/libxl.h
|
--- a/tools/include/libxl.h
|
||||||
+++ b/tools/include/libxl.h
|
+++ b/tools/include/libxl.h
|
||||||
@@ -1858,6 +1858,7 @@ static inline int libxl_retrieve_domain_
|
@@ -1819,6 +1819,7 @@ static inline int libxl_retrieve_domain_
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
uint32_t flags; /* LIBXL_SUSPEND_* */
|
uint32_t flags; /* LIBXL_SUSPEND_* */
|
||||||
@ -77,7 +77,7 @@ Signed-off-by: Olaf Hering <olaf@aepfle.de>
|
|||||||
dss->checkpointed_stream = LIBXL_CHECKPOINTED_STREAM_NONE;
|
dss->checkpointed_stream = LIBXL_CHECKPOINTED_STREAM_NONE;
|
||||||
--- a/tools/libs/light/libxl_internal.h
|
--- a/tools/libs/light/libxl_internal.h
|
||||||
+++ b/tools/libs/light/libxl_internal.h
|
+++ b/tools/libs/light/libxl_internal.h
|
||||||
@@ -3652,6 +3652,7 @@ struct libxl__domain_save_state {
|
@@ -3656,6 +3656,7 @@ struct libxl__domain_save_state {
|
||||||
int live;
|
int live;
|
||||||
int debug;
|
int debug;
|
||||||
int checkpointed_stream;
|
int checkpointed_stream;
|
||||||
|
@ -51,7 +51,7 @@ Signed-off-by: Olaf Hering <olaf@aepfle.de>
|
|||||||
=item B<remus> [I<OPTIONS>] I<domain-id> I<host>
|
=item B<remus> [I<OPTIONS>] I<domain-id> I<host>
|
||||||
--- a/tools/include/libxl.h
|
--- a/tools/include/libxl.h
|
||||||
+++ b/tools/include/libxl.h
|
+++ b/tools/include/libxl.h
|
||||||
@@ -1859,6 +1859,7 @@ static inline int libxl_retrieve_domain_
|
@@ -1820,6 +1820,7 @@ static inline int libxl_retrieve_domain_
|
||||||
typedef struct {
|
typedef struct {
|
||||||
uint32_t flags; /* LIBXL_SUSPEND_* */
|
uint32_t flags; /* LIBXL_SUSPEND_* */
|
||||||
uint32_t max_iters;
|
uint32_t max_iters;
|
||||||
@ -82,7 +82,7 @@ Signed-off-by: Olaf Hering <olaf@aepfle.de>
|
|||||||
dss->checkpointed_stream = LIBXL_CHECKPOINTED_STREAM_NONE;
|
dss->checkpointed_stream = LIBXL_CHECKPOINTED_STREAM_NONE;
|
||||||
--- a/tools/libs/light/libxl_internal.h
|
--- a/tools/libs/light/libxl_internal.h
|
||||||
+++ b/tools/libs/light/libxl_internal.h
|
+++ b/tools/libs/light/libxl_internal.h
|
||||||
@@ -3653,6 +3653,7 @@ struct libxl__domain_save_state {
|
@@ -3657,6 +3657,7 @@ struct libxl__domain_save_state {
|
||||||
int debug;
|
int debug;
|
||||||
int checkpointed_stream;
|
int checkpointed_stream;
|
||||||
uint32_t max_iters;
|
uint32_t max_iters;
|
||||||
|
@ -13,7 +13,7 @@ iterations for dirty memory, and a final copy iteration prior move.
|
|||||||
|
|
||||||
--- a/tools/libs/light/libxl_internal.h
|
--- a/tools/libs/light/libxl_internal.h
|
||||||
+++ b/tools/libs/light/libxl_internal.h
|
+++ b/tools/libs/light/libxl_internal.h
|
||||||
@@ -125,7 +125,7 @@
|
@@ -124,7 +124,7 @@
|
||||||
#define DOMID_XS_PATH "domid"
|
#define DOMID_XS_PATH "domid"
|
||||||
#define PVSHIM_BASENAME "xen-shim"
|
#define PVSHIM_BASENAME "xen-shim"
|
||||||
#define PVSHIM_CMDLINE "pv-shim console=xen,pv"
|
#define PVSHIM_CMDLINE "pv-shim console=xen,pv"
|
||||||
@ -21,4 +21,4 @@ iterations for dirty memory, and a final copy iteration prior move.
|
|||||||
+#define LIBXL_XGS_POLICY_MAX_ITERATIONS 1
|
+#define LIBXL_XGS_POLICY_MAX_ITERATIONS 1
|
||||||
#define LIBXL_XGS_POLICY_TARGET_DIRTY_COUNT 50
|
#define LIBXL_XGS_POLICY_TARGET_DIRTY_COUNT 50
|
||||||
|
|
||||||
#define DIV_ROUNDUP(n, d) (((n) + (d) - 1) / (d))
|
/* Size macros. */
|
||||||
|
@ -60,15 +60,15 @@ v02:
|
|||||||
dss->sws.dss = dss;
|
dss->sws.dss = dss;
|
||||||
--- a/tools/libs/light/libxl_internal.h
|
--- a/tools/libs/light/libxl_internal.h
|
||||||
+++ b/tools/libs/light/libxl_internal.h
|
+++ b/tools/libs/light/libxl_internal.h
|
||||||
@@ -125,6 +125,8 @@
|
@@ -124,6 +124,8 @@
|
||||||
#define DOMID_XS_PATH "domid"
|
#define DOMID_XS_PATH "domid"
|
||||||
#define PVSHIM_BASENAME "xen-shim"
|
#define PVSHIM_BASENAME "xen-shim"
|
||||||
#define PVSHIM_CMDLINE "pv-shim console=xen,pv"
|
#define PVSHIM_CMDLINE "pv-shim console=xen,pv"
|
||||||
+#define LIBXL_XGS_POLICY_MAX_ITERATIONS 5
|
+#define LIBXL_XGS_POLICY_MAX_ITERATIONS 5
|
||||||
+#define LIBXL_XGS_POLICY_TARGET_DIRTY_COUNT 50
|
+#define LIBXL_XGS_POLICY_TARGET_DIRTY_COUNT 50
|
||||||
|
|
||||||
#define DIV_ROUNDUP(n, d) (((n) + (d) - 1) / (d))
|
/* Size macros. */
|
||||||
|
#define MB(_mb) (_AC(_mb, ULL) << 20)
|
||||||
--- a/tools/libs/light/libxl_save_msgs_gen.pl
|
--- a/tools/libs/light/libxl_save_msgs_gen.pl
|
||||||
+++ b/tools/libs/light/libxl_save_msgs_gen.pl
|
+++ b/tools/libs/light/libxl_save_msgs_gen.pl
|
||||||
@@ -23,6 +23,7 @@ our @msgs = (
|
@@ -23,6 +23,7 @@ our @msgs = (
|
||||||
|
@ -93,7 +93,7 @@ v2:
|
|||||||
struct iovec *local_iov = NULL;
|
struct iovec *local_iov = NULL;
|
||||||
--- a/tools/libs/ctrl/xc_private.h
|
--- a/tools/libs/ctrl/xc_private.h
|
||||||
+++ b/tools/libs/ctrl/xc_private.h
|
+++ b/tools/libs/ctrl/xc_private.h
|
||||||
@@ -389,6 +389,7 @@ int xc_flush_mmu_updates(xc_interface *x
|
@@ -395,6 +395,7 @@ int xc_flush_mmu_updates(xc_interface *x
|
||||||
|
|
||||||
/* Return 0 on success; -1 on error setting errno. */
|
/* Return 0 on success; -1 on error setting errno. */
|
||||||
int read_exact(int fd, void *data, size_t size); /* EOF => -1, errno=0 */
|
int read_exact(int fd, void *data, size_t size); /* EOF => -1, errno=0 */
|
||||||
|
@ -34,7 +34,7 @@ Signed-off-by: Olaf Hering <olaf@aepfle.de>
|
|||||||
uint32_t domid)
|
uint32_t domid)
|
||||||
{
|
{
|
||||||
+ int ret;
|
+ int ret;
|
||||||
struct xen_domctl domctl = {};
|
DECLARE_DOMCTL;
|
||||||
domctl.cmd = XEN_DOMCTL_pausedomain;
|
domctl.cmd = XEN_DOMCTL_pausedomain;
|
||||||
domctl.domain = domid;
|
domctl.domain = domid;
|
||||||
- return do_domctl(xch, &domctl);
|
- return do_domctl(xch, &domctl);
|
||||||
@ -49,7 +49,7 @@ Signed-off-by: Olaf Hering <olaf@aepfle.de>
|
|||||||
uint32_t domid)
|
uint32_t domid)
|
||||||
{
|
{
|
||||||
+ int ret;
|
+ int ret;
|
||||||
struct xen_domctl domctl = {};
|
DECLARE_DOMCTL;
|
||||||
domctl.cmd = XEN_DOMCTL_unpausedomain;
|
domctl.cmd = XEN_DOMCTL_unpausedomain;
|
||||||
domctl.domain = domid;
|
domctl.domain = domid;
|
||||||
- return do_domctl(xch, &domctl);
|
- return do_domctl(xch, &domctl);
|
||||||
|
@ -85,7 +85,7 @@ the execution time of each script.
|
|||||||
|
|
||||||
--- a/tools/libs/light/libxl_create.c
|
--- a/tools/libs/light/libxl_create.c
|
||||||
+++ b/tools/libs/light/libxl_create.c
|
+++ b/tools/libs/light/libxl_create.c
|
||||||
@@ -1345,6 +1345,7 @@ static void initiate_domain_create(libxl
|
@@ -1323,6 +1323,7 @@ static void initiate_domain_create(libxl
|
||||||
* build info around just to know if the domain has a device model or not.
|
* build info around just to know if the domain has a device model or not.
|
||||||
*/
|
*/
|
||||||
store_libxl_entry(gc, domid, &d_config->b_info);
|
store_libxl_entry(gc, domid, &d_config->b_info);
|
||||||
@ -95,7 +95,7 @@ the execution time of each script.
|
|||||||
ret = libxl__disk_devtype.set_default(gc, domid, &d_config->disks[i],
|
ret = libxl__disk_devtype.set_default(gc, domid, &d_config->disks[i],
|
||||||
--- a/tools/libs/light/libxl_device.c
|
--- a/tools/libs/light/libxl_device.c
|
||||||
+++ b/tools/libs/light/libxl_device.c
|
+++ b/tools/libs/light/libxl_device.c
|
||||||
@@ -1309,7 +1309,7 @@ static void device_hotplug(libxl__egc *e
|
@@ -1296,7 +1296,7 @@ static void device_hotplug(libxl__egc *e
|
||||||
}
|
}
|
||||||
|
|
||||||
aes->ao = ao;
|
aes->ao = ao;
|
||||||
@ -104,7 +104,7 @@ the execution time of each script.
|
|||||||
aes->env = env;
|
aes->env = env;
|
||||||
aes->args = args;
|
aes->args = args;
|
||||||
aes->callback = device_hotplug_child_death_cb;
|
aes->callback = device_hotplug_child_death_cb;
|
||||||
@@ -1318,6 +1318,15 @@ static void device_hotplug(libxl__egc *e
|
@@ -1305,6 +1305,15 @@ static void device_hotplug(libxl__egc *e
|
||||||
aes->stdfds[1] = 2;
|
aes->stdfds[1] = 2;
|
||||||
aes->stdfds[2] = -1;
|
aes->stdfds[2] = -1;
|
||||||
|
|
||||||
@ -278,7 +278,7 @@ the execution time of each script.
|
|||||||
|
|
||||||
#include <xenevtchn.h>
|
#include <xenevtchn.h>
|
||||||
#include <xenstore.h>
|
#include <xenstore.h>
|
||||||
@@ -1626,6 +1627,7 @@ struct libxl__xswait_state {
|
@@ -1629,6 +1630,7 @@ struct libxl__xswait_state {
|
||||||
const char *what; /* for error msgs: noun phrase, what we're waiting for */
|
const char *what; /* for error msgs: noun phrase, what we're waiting for */
|
||||||
const char *path;
|
const char *path;
|
||||||
int timeout_ms; /* as for poll(2) */
|
int timeout_ms; /* as for poll(2) */
|
||||||
@ -286,7 +286,7 @@ the execution time of each script.
|
|||||||
libxl__xswait_callback *callback;
|
libxl__xswait_callback *callback;
|
||||||
/* remaining fields are private to xswait */
|
/* remaining fields are private to xswait */
|
||||||
libxl__ev_time time_ev;
|
libxl__ev_time time_ev;
|
||||||
@@ -2703,6 +2705,7 @@ struct libxl__async_exec_state {
|
@@ -2707,6 +2709,7 @@ struct libxl__async_exec_state {
|
||||||
char **args; /* execution arguments */
|
char **args; /* execution arguments */
|
||||||
char **env; /* execution environment */
|
char **env; /* execution environment */
|
||||||
|
|
||||||
@ -294,7 +294,7 @@ the execution time of each script.
|
|||||||
/* private */
|
/* private */
|
||||||
libxl__ev_time time;
|
libxl__ev_time time;
|
||||||
libxl__ev_child child;
|
libxl__ev_child child;
|
||||||
@@ -4892,6 +4895,9 @@ _hidden int userlookup_helper_getpwuid(l
|
@@ -4896,6 +4899,9 @@ _hidden int userlookup_helper_getpwuid(l
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -7,11 +7,11 @@ https://bugzilla.novell.com/show_bug.cgi?id=879425
|
|||||||
tools/libxl/libxlu_disk_l.l | 1 +
|
tools/libxl/libxlu_disk_l.l | 1 +
|
||||||
5 files changed, 18 insertions(+), 1 deletion(-)
|
5 files changed, 18 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
Index: xen-4.19.0-testing/docs/man/xl-disk-configuration.5.pod.in
|
Index: xen-4.18.0-testing/docs/man/xl-disk-configuration.5.pod.in
|
||||||
===================================================================
|
===================================================================
|
||||||
--- xen-4.19.0-testing.orig/docs/man/xl-disk-configuration.5.pod.in
|
--- xen-4.18.0-testing.orig/docs/man/xl-disk-configuration.5.pod.in
|
||||||
+++ xen-4.19.0-testing/docs/man/xl-disk-configuration.5.pod.in
|
+++ xen-4.18.0-testing/docs/man/xl-disk-configuration.5.pod.in
|
||||||
@@ -339,6 +339,32 @@ No
|
@@ -337,6 +337,32 @@ No
|
||||||
|
|
||||||
discard
|
discard
|
||||||
|
|
||||||
@ -44,13 +44,13 @@ Index: xen-4.19.0-testing/docs/man/xl-disk-configuration.5.pod.in
|
|||||||
=back
|
=back
|
||||||
|
|
||||||
An advisory setting for the backend driver, specifying whether to
|
An advisory setting for the backend driver, specifying whether to
|
||||||
Index: xen-4.19.0-testing/tools/include/libxl.h
|
Index: xen-4.18.0-testing/tools/include/libxl.h
|
||||||
===================================================================
|
===================================================================
|
||||||
--- xen-4.19.0-testing.orig/tools/include/libxl.h
|
--- xen-4.18.0-testing.orig/tools/include/libxl.h
|
||||||
+++ xen-4.19.0-testing/tools/include/libxl.h
|
+++ xen-4.18.0-testing/tools/include/libxl.h
|
||||||
@@ -603,6 +603,21 @@
|
@@ -584,6 +584,21 @@
|
||||||
#define LIBXL_HAVE_P9_ADD 1
|
*/
|
||||||
|
#define LIBXL_HAVE_CONSOLE_ADD_XENSTORE 1
|
||||||
/*
|
/*
|
||||||
+ * The libxl_device_disk has no way to indicate that cache=unsafe is
|
+ * The libxl_device_disk has no way to indicate that cache=unsafe is
|
||||||
+ * supposed to be used. Provide this knob without breaking the ABI.
|
+ * supposed to be used. Provide this knob without breaking the ABI.
|
||||||
@ -70,11 +70,11 @@ Index: xen-4.19.0-testing/tools/include/libxl.h
|
|||||||
* libxl ABI compatibility
|
* libxl ABI compatibility
|
||||||
*
|
*
|
||||||
* The only guarantee which libxl makes regarding ABI compatibility
|
* The only guarantee which libxl makes regarding ABI compatibility
|
||||||
Index: xen-4.19.0-testing/tools/libs/light/libxl_disk.c
|
Index: xen-4.18.0-testing/tools/libs/light/libxl_disk.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- xen-4.19.0-testing.orig/tools/libs/light/libxl_disk.c
|
--- xen-4.18.0-testing.orig/tools/libs/light/libxl_disk.c
|
||||||
+++ xen-4.19.0-testing/tools/libs/light/libxl_disk.c
|
+++ xen-4.18.0-testing/tools/libs/light/libxl_disk.c
|
||||||
@@ -464,6 +464,8 @@ static void device_disk_add(libxl__egc *
|
@@ -422,6 +422,8 @@ static void device_disk_add(libxl__egc *
|
||||||
flexarray_append_pair(back, "discard-enable",
|
flexarray_append_pair(back, "discard-enable",
|
||||||
libxl_defbool_val(disk->discard_enable) ?
|
libxl_defbool_val(disk->discard_enable) ?
|
||||||
"1" : "0");
|
"1" : "0");
|
||||||
@ -83,10 +83,10 @@ Index: xen-4.19.0-testing/tools/libs/light/libxl_disk.c
|
|||||||
flexarray_append(back, "specification");
|
flexarray_append(back, "specification");
|
||||||
flexarray_append(back, libxl__device_disk_string_of_specification(disk->specification));
|
flexarray_append(back, libxl__device_disk_string_of_specification(disk->specification));
|
||||||
if (disk->specification == LIBXL_DISK_SPECIFICATION_VIRTIO) {
|
if (disk->specification == LIBXL_DISK_SPECIFICATION_VIRTIO) {
|
||||||
Index: xen-4.19.0-testing/tools/libs/light/libxl_dm.c
|
Index: xen-4.18.0-testing/tools/libs/light/libxl_dm.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- xen-4.19.0-testing.orig/tools/libs/light/libxl_dm.c
|
--- xen-4.18.0-testing.orig/tools/libs/light/libxl_dm.c
|
||||||
+++ xen-4.19.0-testing/tools/libs/light/libxl_dm.c
|
+++ xen-4.18.0-testing/tools/libs/light/libxl_dm.c
|
||||||
@@ -1019,14 +1019,27 @@ enum {
|
@@ -1019,14 +1019,27 @@ enum {
|
||||||
LIBXL__COLO_SECONDARY,
|
LIBXL__COLO_SECONDARY,
|
||||||
};
|
};
|
||||||
@ -164,7 +164,7 @@ Index: xen-4.19.0-testing/tools/libs/light/libxl_dm.c
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
abort();
|
abort();
|
||||||
@@ -1997,8 +2012,8 @@ static int libxl__build_device_model_arg
|
@@ -1998,8 +2013,8 @@ static int libxl__build_device_model_arg
|
||||||
return ERROR_INVAL;
|
return ERROR_INVAL;
|
||||||
}
|
}
|
||||||
flexarray_vappend(dm_args, "-drive",
|
flexarray_vappend(dm_args, "-drive",
|
||||||
@ -175,10 +175,10 @@ Index: xen-4.19.0-testing/tools/libs/light/libxl_dm.c
|
|||||||
"-device", GCSPRINTF("ide-hd,bus=ahci0.%d,unit=0,drive=ahcidisk-%d",
|
"-device", GCSPRINTF("ide-hd,bus=ahci0.%d,unit=0,drive=ahcidisk-%d",
|
||||||
disk, disk), NULL);
|
disk, disk), NULL);
|
||||||
continue;
|
continue;
|
||||||
Index: xen-4.19.0-testing/tools/libs/util/libxlu_disk.c
|
Index: xen-4.18.0-testing/tools/libs/util/libxlu_disk.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- xen-4.19.0-testing.orig/tools/libs/util/libxlu_disk.c
|
--- xen-4.18.0-testing.orig/tools/libs/util/libxlu_disk.c
|
||||||
+++ xen-4.19.0-testing/tools/libs/util/libxlu_disk.c
|
+++ xen-4.18.0-testing/tools/libs/util/libxlu_disk.c
|
||||||
@@ -78,6 +78,8 @@ int xlu_disk_parse(XLU_Config *cfg,
|
@@ -78,6 +78,8 @@ int xlu_disk_parse(XLU_Config *cfg,
|
||||||
if (!disk->pdev_path || !strcmp(disk->pdev_path, ""))
|
if (!disk->pdev_path || !strcmp(disk->pdev_path, ""))
|
||||||
disk->format = LIBXL_DISK_FORMAT_EMPTY;
|
disk->format = LIBXL_DISK_FORMAT_EMPTY;
|
||||||
@ -188,10 +188,10 @@ Index: xen-4.19.0-testing/tools/libs/util/libxlu_disk.c
|
|||||||
|
|
||||||
if (!disk->vdev) {
|
if (!disk->vdev) {
|
||||||
xlu__disk_err(&dpc,0, "no vdev specified");
|
xlu__disk_err(&dpc,0, "no vdev specified");
|
||||||
Index: xen-4.19.0-testing/tools/libs/util/libxlu_disk_i.h
|
Index: xen-4.18.0-testing/tools/libs/util/libxlu_disk_i.h
|
||||||
===================================================================
|
===================================================================
|
||||||
--- xen-4.19.0-testing.orig/tools/libs/util/libxlu_disk_i.h
|
--- xen-4.18.0-testing.orig/tools/libs/util/libxlu_disk_i.h
|
||||||
+++ xen-4.19.0-testing/tools/libs/util/libxlu_disk_i.h
|
+++ xen-4.18.0-testing/tools/libs/util/libxlu_disk_i.h
|
||||||
@@ -10,7 +10,7 @@ typedef struct {
|
@@ -10,7 +10,7 @@ typedef struct {
|
||||||
void *scanner;
|
void *scanner;
|
||||||
YY_BUFFER_STATE buf;
|
YY_BUFFER_STATE buf;
|
||||||
@ -201,10 +201,10 @@ Index: xen-4.19.0-testing/tools/libs/util/libxlu_disk_i.h
|
|||||||
const char *spec;
|
const char *spec;
|
||||||
} DiskParseContext;
|
} DiskParseContext;
|
||||||
|
|
||||||
Index: xen-4.19.0-testing/tools/libs/util/libxlu_disk_l.l
|
Index: xen-4.18.0-testing/tools/libs/util/libxlu_disk_l.l
|
||||||
===================================================================
|
===================================================================
|
||||||
--- xen-4.19.0-testing.orig/tools/libs/util/libxlu_disk_l.l
|
--- xen-4.18.0-testing.orig/tools/libs/util/libxlu_disk_l.l
|
||||||
+++ xen-4.19.0-testing/tools/libs/util/libxlu_disk_l.l
|
+++ xen-4.18.0-testing/tools/libs/util/libxlu_disk_l.l
|
||||||
@@ -216,6 +216,7 @@ colo-port=[^,]*,? { STRIP(','); setcolop
|
@@ -216,6 +216,7 @@ colo-port=[^,]*,? { STRIP(','); setcolop
|
||||||
colo-export=[^,]*,? { STRIP(','); SAVESTRING("colo-export", colo_export, FROMEQUALS); }
|
colo-export=[^,]*,? { STRIP(','); SAVESTRING("colo-export", colo_export, FROMEQUALS); }
|
||||||
active-disk=[^,]*,? { STRIP(','); SAVESTRING("active-disk", active_disk, FROMEQUALS); }
|
active-disk=[^,]*,? { STRIP(','); SAVESTRING("active-disk", active_disk, FROMEQUALS); }
|
||||||
|
63
migration-python3-conversion.patch
Normal file
63
migration-python3-conversion.patch
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
Index: xen-4.18.0-testing/tools/python/xen/migration/legacy.py
|
||||||
|
===================================================================
|
||||||
|
--- xen-4.18.0-testing.orig/tools/python/xen/migration/legacy.py
|
||||||
|
+++ xen-4.18.0-testing/tools/python/xen/migration/legacy.py
|
||||||
|
@@ -1,3 +1,4 @@
|
||||||
|
+#!/usr/bin/python3
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
"""
|
||||||
|
Index: xen-4.18.0-testing/tools/python/xen/migration/libxc.py
|
||||||
|
===================================================================
|
||||||
|
--- xen-4.18.0-testing.orig/tools/python/xen/migration/libxc.py
|
||||||
|
+++ xen-4.18.0-testing/tools/python/xen/migration/libxc.py
|
||||||
|
@@ -1,3 +1,4 @@
|
||||||
|
+#!/usr/bin/python3
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
"""
|
||||||
|
Index: xen-4.18.0-testing/tools/python/xen/migration/libxl.py
|
||||||
|
===================================================================
|
||||||
|
--- xen-4.18.0-testing.orig/tools/python/xen/migration/libxl.py
|
||||||
|
+++ xen-4.18.0-testing/tools/python/xen/migration/libxl.py
|
||||||
|
@@ -1,3 +1,4 @@
|
||||||
|
+#!/usr/bin/python3
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
"""
|
||||||
|
Index: xen-4.18.0-testing/tools/python/xen/migration/public.py
|
||||||
|
===================================================================
|
||||||
|
--- xen-4.18.0-testing.orig/tools/python/xen/migration/public.py
|
||||||
|
+++ xen-4.18.0-testing/tools/python/xen/migration/public.py
|
||||||
|
@@ -1,3 +1,4 @@
|
||||||
|
+#!/usr/bin/python3
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
"""
|
||||||
|
Index: xen-4.18.0-testing/tools/python/xen/migration/tests.py
|
||||||
|
===================================================================
|
||||||
|
--- xen-4.18.0-testing.orig/tools/python/xen/migration/tests.py
|
||||||
|
+++ xen-4.18.0-testing/tools/python/xen/migration/tests.py
|
||||||
|
@@ -1,3 +1,4 @@
|
||||||
|
+#!/usr/bin/python3
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
"""
|
||||||
|
Index: xen-4.18.0-testing/tools/python/xen/migration/verify.py
|
||||||
|
===================================================================
|
||||||
|
--- xen-4.18.0-testing.orig/tools/python/xen/migration/verify.py
|
||||||
|
+++ xen-4.18.0-testing/tools/python/xen/migration/verify.py
|
||||||
|
@@ -1,3 +1,4 @@
|
||||||
|
+#!/usr/bin/python3
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
"""
|
||||||
|
Index: xen-4.18.0-testing/tools/python/xen/migration/xl.py
|
||||||
|
===================================================================
|
||||||
|
--- xen-4.18.0-testing.orig/tools/python/xen/migration/xl.py
|
||||||
|
+++ xen-4.18.0-testing/tools/python/xen/migration/xl.py
|
||||||
|
@@ -1,3 +1,4 @@
|
||||||
|
+#!/usr/bin/python3
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
"""
|
BIN
mini-os.tar.bz2
(Stored with Git LFS)
BIN
mini-os.tar.bz2
(Stored with Git LFS)
Binary file not shown.
@ -1,8 +1,8 @@
|
|||||||
Index: xen-4.19.0-testing/tools/pygrub/src/pygrub
|
Index: xen-4.17.2-testing/tools/pygrub/src/pygrub
|
||||||
===================================================================
|
===================================================================
|
||||||
--- xen-4.19.0-testing.orig/tools/pygrub/src/pygrub
|
--- xen-4.17.2-testing.orig/tools/pygrub/src/pygrub
|
||||||
+++ xen-4.19.0-testing/tools/pygrub/src/pygrub
|
+++ xen-4.17.2-testing/tools/pygrub/src/pygrub
|
||||||
@@ -593,7 +593,7 @@ class Grub:
|
@@ -579,7 +579,7 @@ class Grub:
|
||||||
self.cf.filename = f
|
self.cf.filename = f
|
||||||
break
|
break
|
||||||
if self.__dict__.get('cf', None) is None:
|
if self.__dict__.get('cf', None) is None:
|
||||||
@ -11,7 +11,7 @@ Index: xen-4.19.0-testing/tools/pygrub/src/pygrub
|
|||||||
f = fs.open_file(self.cf.filename)
|
f = fs.open_file(self.cf.filename)
|
||||||
# limit read size to avoid pathological cases
|
# limit read size to avoid pathological cases
|
||||||
buf = f.read(FS_READ_MAX)
|
buf = f.read(FS_READ_MAX)
|
||||||
@@ -768,6 +768,20 @@ def run_grub(file, entry, fs, cfg_args):
|
@@ -754,6 +754,20 @@ def run_grub(file, entry, fs, cfg_args):
|
||||||
|
|
||||||
g = Grub(file, fs)
|
g = Grub(file, fs)
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ Index: xen-4.19.0-testing/tools/pygrub/src/pygrub
|
|||||||
if list_entries:
|
if list_entries:
|
||||||
for i in range(len(g.cf.images)):
|
for i in range(len(g.cf.images)):
|
||||||
img = g.cf.images[i]
|
img = g.cf.images[i]
|
||||||
@@ -854,6 +868,19 @@ def sniff_netware(fs, cfg):
|
@@ -840,6 +854,19 @@ def sniff_netware(fs, cfg):
|
||||||
|
|
||||||
return cfg
|
return cfg
|
||||||
|
|
||||||
@ -52,7 +52,7 @@ Index: xen-4.19.0-testing/tools/pygrub/src/pygrub
|
|||||||
def format_sxp(kernel, ramdisk, args):
|
def format_sxp(kernel, ramdisk, args):
|
||||||
s = "linux (kernel %s)" % repr(kernel)
|
s = "linux (kernel %s)" % repr(kernel)
|
||||||
if ramdisk:
|
if ramdisk:
|
||||||
@@ -932,7 +959,7 @@ if __name__ == "__main__":
|
@@ -918,7 +945,7 @@ if __name__ == "__main__":
|
||||||
debug = False
|
debug = False
|
||||||
not_really = False
|
not_really = False
|
||||||
output_format = "sxp"
|
output_format = "sxp"
|
||||||
|
@ -16,11 +16,11 @@ brctl. Replace them by commands from iproute2 package.
|
|||||||
.../i386-dm/qemu-ifup-Linux | 5 +++--
|
.../i386-dm/qemu-ifup-Linux | 5 +++--
|
||||||
9 files changed, 26 insertions(+), 26 deletions(-)
|
9 files changed, 26 insertions(+), 26 deletions(-)
|
||||||
|
|
||||||
Index: xen-4.19.0-testing/README
|
Index: xen-4.17.0-testing/README
|
||||||
===================================================================
|
===================================================================
|
||||||
--- xen-4.19.0-testing.orig/README
|
--- xen-4.17.0-testing.orig/README
|
||||||
+++ xen-4.19.0-testing/README
|
+++ xen-4.17.0-testing/README
|
||||||
@@ -59,8 +59,7 @@ provided by your OS distributor:
|
@@ -61,8 +61,7 @@ provided by your OS distributor:
|
||||||
* Development install of GLib v2.0 (e.g. libglib2.0-dev)
|
* Development install of GLib v2.0 (e.g. libglib2.0-dev)
|
||||||
* Development install of Pixman (e.g. libpixman-1-dev)
|
* Development install of Pixman (e.g. libpixman-1-dev)
|
||||||
* pkg-config
|
* pkg-config
|
||||||
@ -30,10 +30,10 @@ Index: xen-4.19.0-testing/README
|
|||||||
* GNU bison and GNU flex
|
* GNU bison and GNU flex
|
||||||
* ACPI ASL compiler (iasl)
|
* ACPI ASL compiler (iasl)
|
||||||
|
|
||||||
Index: xen-4.19.0-testing/tools/hotplug/Linux/remus-netbuf-setup
|
Index: xen-4.17.0-testing/tools/hotplug/Linux/remus-netbuf-setup
|
||||||
===================================================================
|
===================================================================
|
||||||
--- xen-4.19.0-testing.orig/tools/hotplug/Linux/remus-netbuf-setup
|
--- xen-4.17.0-testing.orig/tools/hotplug/Linux/remus-netbuf-setup
|
||||||
+++ xen-4.19.0-testing/tools/hotplug/Linux/remus-netbuf-setup
|
+++ xen-4.17.0-testing/tools/hotplug/Linux/remus-netbuf-setup
|
||||||
@@ -76,6 +76,7 @@
|
@@ -76,6 +76,7 @@
|
||||||
#specific setup code such as renaming.
|
#specific setup code such as renaming.
|
||||||
dir=$(dirname "$0")
|
dir=$(dirname "$0")
|
||||||
@ -60,10 +60,10 @@ Index: xen-4.19.0-testing/tools/hotplug/Linux/remus-netbuf-setup
|
|||||||
check_ifb "$ifb" || continue
|
check_ifb "$ifb" || continue
|
||||||
REMUS_IFB="$ifb"
|
REMUS_IFB="$ifb"
|
||||||
break
|
break
|
||||||
Index: xen-4.19.0-testing/tools/hotplug/Linux/vif-bridge
|
Index: xen-4.17.0-testing/tools/hotplug/Linux/vif-bridge
|
||||||
===================================================================
|
===================================================================
|
||||||
--- xen-4.19.0-testing.orig/tools/hotplug/Linux/vif-bridge
|
--- xen-4.17.0-testing.orig/tools/hotplug/Linux/vif-bridge
|
||||||
+++ xen-4.19.0-testing/tools/hotplug/Linux/vif-bridge
|
+++ xen-4.17.0-testing/tools/hotplug/Linux/vif-bridge
|
||||||
@@ -42,7 +42,8 @@ if [ -z "$bridge" ]; then
|
@@ -42,7 +42,8 @@ if [ -z "$bridge" ]; then
|
||||||
if which brctl >&/dev/null; then
|
if which brctl >&/dev/null; then
|
||||||
bridge=$(brctl show | awk 'NR==2{print$1}')
|
bridge=$(brctl show | awk 'NR==2{print$1}')
|
||||||
@ -74,10 +74,10 @@ Index: xen-4.19.0-testing/tools/hotplug/Linux/vif-bridge
|
|||||||
fi
|
fi
|
||||||
if [ -z "$bridge" ]
|
if [ -z "$bridge" ]
|
||||||
then
|
then
|
||||||
Index: xen-4.19.0-testing/tools/hotplug/Linux/vif-nat
|
Index: xen-4.17.0-testing/tools/hotplug/Linux/vif-nat
|
||||||
===================================================================
|
===================================================================
|
||||||
--- xen-4.19.0-testing.orig/tools/hotplug/Linux/vif-nat
|
--- xen-4.17.0-testing.orig/tools/hotplug/Linux/vif-nat
|
||||||
+++ xen-4.19.0-testing/tools/hotplug/Linux/vif-nat
|
+++ xen-4.17.0-testing/tools/hotplug/Linux/vif-nat
|
||||||
@@ -172,7 +172,11 @@ case "$command" in
|
@@ -172,7 +172,11 @@ case "$command" in
|
||||||
;;
|
;;
|
||||||
offline)
|
offline)
|
||||||
@ -91,10 +91,10 @@ Index: xen-4.19.0-testing/tools/hotplug/Linux/vif-nat
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
Index: xen-4.19.0-testing/tools/hotplug/Linux/vif-route
|
Index: xen-4.17.0-testing/tools/hotplug/Linux/vif-route
|
||||||
===================================================================
|
===================================================================
|
||||||
--- xen-4.19.0-testing.orig/tools/hotplug/Linux/vif-route
|
--- xen-4.17.0-testing.orig/tools/hotplug/Linux/vif-route
|
||||||
+++ xen-4.19.0-testing/tools/hotplug/Linux/vif-route
|
+++ xen-4.17.0-testing/tools/hotplug/Linux/vif-route
|
||||||
@@ -23,13 +23,23 @@ main_ip=$(dom0_ip)
|
@@ -23,13 +23,23 @@ main_ip=$(dom0_ip)
|
||||||
|
|
||||||
case "${command}" in
|
case "${command}" in
|
||||||
@ -121,10 +121,10 @@ Index: xen-4.19.0-testing/tools/hotplug/Linux/vif-route
|
|||||||
ipcmd='del'
|
ipcmd='del'
|
||||||
cmdprefix='do_without_error'
|
cmdprefix='do_without_error'
|
||||||
;;
|
;;
|
||||||
Index: xen-4.19.0-testing/tools/hotplug/Linux/xen-network-common.sh
|
Index: xen-4.17.0-testing/tools/hotplug/Linux/xen-network-common.sh
|
||||||
===================================================================
|
===================================================================
|
||||||
--- xen-4.19.0-testing.orig/tools/hotplug/Linux/xen-network-common.sh
|
--- xen-4.17.0-testing.orig/tools/hotplug/Linux/xen-network-common.sh
|
||||||
+++ xen-4.19.0-testing/tools/hotplug/Linux/xen-network-common.sh
|
+++ xen-4.17.0-testing/tools/hotplug/Linux/xen-network-common.sh
|
||||||
@@ -15,6 +15,12 @@
|
@@ -15,6 +15,12 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
|
16
stdvga-cache.patch
Normal file
16
stdvga-cache.patch
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
Index: xen-4.18.0-testing/xen/arch/x86/hvm/stdvga.c
|
||||||
|
===================================================================
|
||||||
|
--- xen-4.18.0-testing.orig/xen/arch/x86/hvm/stdvga.c
|
||||||
|
+++ xen-4.18.0-testing/xen/arch/x86/hvm/stdvga.c
|
||||||
|
@@ -165,7 +165,10 @@ static int stdvga_outb(uint64_t addr, ui
|
||||||
|
|
||||||
|
/* When in standard vga mode, emulate here all writes to the vram buffer
|
||||||
|
* so we can immediately satisfy reads without waiting for qemu. */
|
||||||
|
- s->stdvga = (s->sr[7] == 0x00);
|
||||||
|
+ s->stdvga =
|
||||||
|
+ (s->sr[7] == 0x00) && /* standard vga mode */
|
||||||
|
+ (s->gr[6] == 0x05); /* misc graphics register w/ MemoryMapSelect=1
|
||||||
|
+ * 0xa0000-0xaffff (64k region), AlphaDis=1 */
|
||||||
|
|
||||||
|
if ( !prev_stdvga && s->stdvga )
|
||||||
|
{
|
BIN
stubdom.tar.bz2
(Stored with Git LFS)
BIN
stubdom.tar.bz2
(Stored with Git LFS)
Binary file not shown.
@ -2,7 +2,7 @@ Change default IO-APIC ack mode for single IO-APIC systems to old-style.
|
|||||||
|
|
||||||
--- a/xen/arch/x86/io_apic.c
|
--- a/xen/arch/x86/io_apic.c
|
||||||
+++ b/xen/arch/x86/io_apic.c
|
+++ b/xen/arch/x86/io_apic.c
|
||||||
@@ -2136,7 +2136,10 @@ void __init setup_IO_APIC(void)
|
@@ -2076,7 +2076,10 @@ void __init setup_IO_APIC(void)
|
||||||
io_apic_irqs = ~PIC_IRQS;
|
io_apic_irqs = ~PIC_IRQS;
|
||||||
|
|
||||||
printk("ENABLING IO-APIC IRQs\n");
|
printk("ENABLING IO-APIC IRQs\n");
|
||||||
|
BIN
xen-4.18.3-testing-src.tar.bz2
(Stored with Git LFS)
Normal file
BIN
xen-4.18.3-testing-src.tar.bz2
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
xen-4.19.1-testing-src.tar.bz2
(Stored with Git LFS)
BIN
xen-4.19.1-testing-src.tar.bz2
(Stored with Git LFS)
Binary file not shown.
@ -1,11 +1,11 @@
|
|||||||
Index: xen-4.19.0-testing/xen/arch/Kconfig
|
Index: xen-4.18.0-testing/xen/arch/Kconfig
|
||||||
===================================================================
|
===================================================================
|
||||||
--- xen-4.19.0-testing.orig/xen/arch/Kconfig
|
--- xen-4.18.0-testing.orig/xen/arch/Kconfig
|
||||||
+++ xen-4.19.0-testing/xen/arch/Kconfig
|
+++ xen-4.18.0-testing/xen/arch/Kconfig
|
||||||
@@ -7,7 +7,7 @@ config PHYS_ADDR_T_32
|
@@ -7,7 +7,7 @@ config PHYS_ADDR_T_32
|
||||||
config NR_CPUS
|
config NR_CPUS
|
||||||
int "Maximum number of CPUs"
|
int "Maximum number of CPUs"
|
||||||
range 1 16383
|
range 1 4095
|
||||||
- default "256" if X86
|
- default "256" if X86
|
||||||
+ default "1024" if X86
|
+ default "1024" if X86
|
||||||
default "8" if ARM && RCAR3
|
default "8" if ARM && RCAR3
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
--- a/tools/xs-clients/Makefile
|
Index: xen-4.18.3-testing/tools/xs-clients/Makefile
|
||||||
+++ b/tools/xs-clients/Makefile
|
===================================================================
|
||||||
|
--- xen-4.18.3-testing.orig/tools/xs-clients/Makefile
|
||||||
|
+++ xen-4.18.3-testing/tools/xs-clients/Makefile
|
||||||
@@ -29,7 +29,7 @@ all: $(TARGETS)
|
@@ -29,7 +29,7 @@ all: $(TARGETS)
|
||||||
clients: xenstore $(CLIENTS) xenstore-control
|
clients: xenstore $(CLIENTS) xenstore-control
|
||||||
|
|
||||||
@ -18,8 +20,10 @@
|
|||||||
done
|
done
|
||||||
|
|
||||||
.PHONY: uninstall
|
.PHONY: uninstall
|
||||||
--- a/tools/xenstored/Makefile
|
Index: xen-4.18.3-testing/tools/xenstored/Makefile
|
||||||
+++ b/tools/xenstored/Makefile
|
===================================================================
|
||||||
|
--- xen-4.18.3-testing.orig/tools/xenstored/Makefile
|
||||||
|
+++ xen-4.18.3-testing/tools/xenstored/Makefile
|
||||||
@@ -32,6 +32,7 @@ TAGS:
|
@@ -32,6 +32,7 @@ TAGS:
|
||||||
install: all
|
install: all
|
||||||
$(INSTALL_DIR) $(DESTDIR)$(sbindir)
|
$(INSTALL_DIR) $(DESTDIR)$(sbindir)
|
||||||
|
@ -60,15 +60,11 @@ conf_files $OF "$XEN_CONF_FILES"
|
|||||||
log_cmd $OF "xl list --long"
|
log_cmd $OF "xl list --long"
|
||||||
log_cmd $OF "xl dmesg"
|
log_cmd $OF "xl dmesg"
|
||||||
# network-related info often useful for debugging
|
# network-related info often useful for debugging
|
||||||
if systemctl is-enabled NetworkManager.service &> /dev/null ; then
|
if [ systemctl is-enabled NetworkManager.service 2>&1 > /dev/null ]; then
|
||||||
log_write $OF "NOTE: NetworkManager should not be enabled on a Xen host"
|
log_write $OF "NOTE: NetworkManager should not be enabled on a Xen host"
|
||||||
fi
|
fi
|
||||||
for proto in '-4' '-6'
|
log_cmd $OF "route -n"
|
||||||
do
|
log_cmd $OF "arp -v"
|
||||||
log_cmd $OF "ip $proto neighbor show"
|
|
||||||
log_cmd $OF "ip $proto route show"
|
|
||||||
log_cmd $OF "ip $proto address show"
|
|
||||||
done
|
|
||||||
log_cmd $OF "ip link show type bridge"
|
log_cmd $OF "ip link show type bridge"
|
||||||
log_cmd $OF "bridge link show"
|
log_cmd $OF "bridge link show"
|
||||||
# list contents of common config and image directories
|
# list contents of common config and image directories
|
||||||
|
@ -20,7 +20,7 @@ actually handle. The default is zero tolerance.
|
|||||||
unsigned long __read_mostly cpu_khz; /* CPU clock frequency in kHz. */
|
unsigned long __read_mostly cpu_khz; /* CPU clock frequency in kHz. */
|
||||||
DEFINE_SPINLOCK(rtc_lock);
|
DEFINE_SPINLOCK(rtc_lock);
|
||||||
unsigned long pit0_ticks;
|
unsigned long pit0_ticks;
|
||||||
@@ -2797,6 +2800,8 @@ int tsc_set_info(struct domain *d,
|
@@ -2720,6 +2723,8 @@ int tsc_set_info(struct domain *d,
|
||||||
|
|
||||||
switch ( tsc_mode )
|
switch ( tsc_mode )
|
||||||
{
|
{
|
||||||
@ -29,7 +29,7 @@ actually handle. The default is zero tolerance.
|
|||||||
case XEN_CPUID_TSC_MODE_DEFAULT:
|
case XEN_CPUID_TSC_MODE_DEFAULT:
|
||||||
case XEN_CPUID_TSC_MODE_ALWAYS_EMULATE:
|
case XEN_CPUID_TSC_MODE_ALWAYS_EMULATE:
|
||||||
d->arch.vtsc_offset = get_s_time() - elapsed_nsec;
|
d->arch.vtsc_offset = get_s_time() - elapsed_nsec;
|
||||||
@@ -2810,8 +2815,25 @@ int tsc_set_info(struct domain *d,
|
@@ -2733,8 +2738,25 @@ int tsc_set_info(struct domain *d,
|
||||||
* When a guest is created, gtsc_khz is passed in as zero, making
|
* When a guest is created, gtsc_khz is passed in as zero, making
|
||||||
* d->arch.tsc_khz == cpu_khz. Thus no need to check incarnation.
|
* d->arch.tsc_khz == cpu_khz. Thus no need to check incarnation.
|
||||||
*/
|
*/
|
||||||
|
175
xen.changes
175
xen.changes
@ -1,167 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Wed Dec 4 09:16:24 MST 2024 - carnold@suse.com
|
|
||||||
|
|
||||||
- Update to Xen 4.19.1 bug fix release (jsc#PED-8907)
|
|
||||||
xen-4.19.1-testing-src.tar.bz2
|
|
||||||
* No upstream changelog found in sources or webpage
|
|
||||||
- Dropped patches
|
|
||||||
66a8b8ac-bunzip2-rare-failure.patch
|
|
||||||
66bb6f78-x86-IOMMU-move-tracking-in-iommu_identity_mapping.patch
|
|
||||||
66bb6fa5-x86-pass-through-document-as-security-unsupported.patch
|
|
||||||
66cf737b-x86-Dom0-disable-SMAP-for-PV-only.patch
|
|
||||||
66d02b69-Arm64-adjust-irq_to_desc-to-fix-build-with-gcc14.patch
|
|
||||||
66d6dca8-libxl-nul-termination-in-xen_console_read_line.patch
|
|
||||||
66d8690f-SUPPORT-split-XSM-from-Flask.patch
|
|
||||||
66e29480-x86-HVM-properly-reject-indirect-VRAM-writes.patch
|
|
||||||
66e44ae2-x86-ucode-AMD-buffer-underrun.patch
|
|
||||||
66f2af41-x86-vLAPIC-undue-recursion-of-vlapic_error.patch
|
|
||||||
66f2fd92-x86-ucode-Intel-stricter-sanity-check.patch
|
|
||||||
xsa463-01.patch
|
|
||||||
xsa463-02.patch
|
|
||||||
xsa463-03.patch
|
|
||||||
xsa463-04.patch
|
|
||||||
xsa463-05.patch
|
|
||||||
xsa463-06.patch
|
|
||||||
xsa463-07.patch
|
|
||||||
xsa463-08.patch
|
|
||||||
xsa463-09.patch
|
|
||||||
xsa464.patch
|
|
||||||
gcc14-fixes.patch
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Wed Oct 30 09:34:38 MDT 2024 - carnold@suse.com
|
|
||||||
|
|
||||||
- bsc#1232622 - VUL-0: CVE-2024-45818: xen: Deadlock in x86 HVM
|
|
||||||
standard VGA handling (XSA-463)
|
|
||||||
xsa463-01.patch
|
|
||||||
xsa463-02.patch
|
|
||||||
xsa463-03.patch
|
|
||||||
xsa463-04.patch
|
|
||||||
xsa463-05.patch
|
|
||||||
xsa463-06.patch
|
|
||||||
xsa463-07.patch
|
|
||||||
xsa463-08.patch
|
|
||||||
xsa463-09.patch
|
|
||||||
- bsc#1232624 - VUL-0: CVE-2024-45819: xen: libxl leaks data to PVH
|
|
||||||
guests via ACPI tables (XSA-464)
|
|
||||||
xsa464.patch
|
|
||||||
- Drop stdvga-cache.patch
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Tue Oct 29 12:34:56 UTC 2024 - ohering@suse.de
|
|
||||||
|
|
||||||
- bsc#1232542 - remove usage of net-tools-deprecated from supportconfig plugin
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Thu Sep 26 11:30:00 CEST 2024 - jbeulich@suse.com
|
|
||||||
|
|
||||||
- bsc#1230366 - VUL-0: CVE-2024-45817: xen: x86: Deadlock in
|
|
||||||
vlapic_error() (XSA-462)
|
|
||||||
66f2af41-x86-vLAPIC-undue-recursion-of-vlapic_error.patch
|
|
||||||
Drop xsa462.patch
|
|
||||||
- Upstream bug fixes (bsc#1027519)
|
|
||||||
66cf737b-x86-Dom0-disable-SMAP-for-PV-only.patch
|
|
||||||
66d6dca8-libxl-nul-termination-in-xen_console_read_line.patch
|
|
||||||
66d8690f-SUPPORT-split-XSM-from-Flask.patch
|
|
||||||
66e29480-x86-HVM-properly-reject-indirect-VRAM-writes.patch
|
|
||||||
66e44ae2-x86-ucode-AMD-buffer-underrun.patch
|
|
||||||
66f2fd92-x86-ucode-Intel-stricter-sanity-check.patch
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Tue Sep 10 09:54:34 MDT 2024 - carnold@suse.com
|
|
||||||
|
|
||||||
- bsc#1230366 - VUL-0: CVE-2024-45817: xen: x86: Deadlock in
|
|
||||||
vlapic_error() (XSA-462)
|
|
||||||
xsa462.patch
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Fri Aug 30 07:32:58 UTC 2024 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
|
||||||
|
|
||||||
- Fix build on aarch64 with gcc14 (bsc#1225953)
|
|
||||||
66d02b69-Arm64-adjust-irq_to_desc-to-fix-build-with-gcc14.patch
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Thu Aug 15 15:13:42 MDT 2024 - carnold@suse.com
|
|
||||||
|
|
||||||
- Update to Xen 4.19.0 FCS release (jsc#PED-8907)
|
|
||||||
xen-4.19.0-testing-src.tar.bz2
|
|
||||||
- New Features
|
|
||||||
* On x86:
|
|
||||||
- Introduce a new x2APIC driver that uses Cluster Logical addressing mode
|
|
||||||
for IPIs and Physical addressing mode for external interrupts.
|
|
||||||
* On Arm:
|
|
||||||
- FF-A notification support.
|
|
||||||
- Introduction of dynamic node programming using overlay dtbo.
|
|
||||||
* Add a new 9pfs backend running as a daemon in dom0. First user is
|
|
||||||
Xenstore-stubdom now being able to support full Xenstore trace capability.
|
|
||||||
* libxl support for backendtype=tap with tapback.
|
|
||||||
- Changed Features
|
|
||||||
* Changed flexible array definitions in public I/O interface headers to not
|
|
||||||
use "1" as the number of array elements.
|
|
||||||
* The minimum supported OCaml toolchain version is now 4.05
|
|
||||||
* On x86:
|
|
||||||
- HVM PIRQs are disabled by default.
|
|
||||||
- Reduce IOMMU setup time for hardware domain.
|
|
||||||
- Allow HVM/PVH domains to map foreign pages.
|
|
||||||
- Declare PVH dom0 supported with caveats.
|
|
||||||
* xl/libxl configures vkb=[] for HVM domains with priority over vkb_device.
|
|
||||||
* Increase the maximum number of CPUs Xen can be built for from 4095 to
|
|
||||||
16383.
|
|
||||||
* When building with Systemd support (./configure --enable-systemd), remove
|
|
||||||
libsystemd as a build dependency. Systemd Notify support is retained, now
|
|
||||||
using a standalone library implementation.
|
|
||||||
* xenalyze no longer requires `--svm-mode` when analyzing traces
|
|
||||||
generated on AMD CPUs
|
|
||||||
* Code symbol annotations and MISRA compliance improvements.
|
|
||||||
- Removed Features
|
|
||||||
* caml-stubdom. It hasn't built since 2014, was pinned to Ocaml 4.02, and has
|
|
||||||
been superseded by the MirageOS/SOLO5 projects.
|
|
||||||
* /usr/bin/pygrub symlink. This was deprecated in Xen 4.2 (2012) but left for
|
|
||||||
compatibility reasons. VMs configured with bootloader="/usr/bin/pygrub"
|
|
||||||
should be updated to just bootloader="pygrub".
|
|
||||||
* The Xen gdbstub on x86.
|
|
||||||
* xentrace_format has been removed; use xenalyze instead.
|
|
||||||
- Dropped patches contained in new tarball
|
|
||||||
6617d62c-x86-hvm-Misra-Rule-19-1-regression.patch
|
|
||||||
6627a4ee-vRTC-UIP-set-for-longer-than-expected.patch
|
|
||||||
6627a5fc-x86-MTRR-inverted-WC-check.patch
|
|
||||||
662a6a4c-x86-spec-reporting-of-BHB-clearing.patch
|
|
||||||
662a6a8d-x86-spec-adjust-logic-to-elide-LFENCE.patch
|
|
||||||
663090fd-x86-gen-cpuid-syntax.patch
|
|
||||||
663a383c-libxs-open-xenbus-fds-as-O_CLOEXEC.patch
|
|
||||||
663a4f3e-x86-cpu-policy-migration-IceLake-to-CascadeLake.patch
|
|
||||||
663d05b5-x86-ucode-distinguish-up-to-date.patch
|
|
||||||
663eaa27-libxl-XenStore-error-handling-in-device-creation.patch
|
|
||||||
66450626-sched-set-all-sched_resource-data-inside-locked.patch
|
|
||||||
66450627-x86-respect-mapcache_domain_init-failing.patch
|
|
||||||
6646031f-x86-ucode-further-identify-already-up-to-date.patch
|
|
||||||
6666ba52-x86-irq-remove-offline-CPUs-from-old-CPU-mask-when.patch
|
|
||||||
666994ab-x86-SMP-no-shorthand-IPI-in-hotplug.patch
|
|
||||||
666994f0-x86-IRQ-limit-interrupt-movement-in-fixup_irqs.patch
|
|
||||||
666b07ee-x86-EPT-special-page-in-epte_get_entry_emt.patch
|
|
||||||
666b0819-x86-EPT-avoid-marking-np-ents-for-reconfig.patch
|
|
||||||
666b085a-x86-EPT-drop-questionable-mfn_valid-from-.patch
|
|
||||||
667187cc-x86-Intel-unlock-CPUID-earlier.patch
|
|
||||||
66718849-x86-IRQ-old_cpu_mask-in-fixup_irqs.patch
|
|
||||||
6671885e-x86-IRQ-handle-moving-in-_assign_irq_vector.patch
|
|
||||||
6672c846-x86-xstate-initialisation-of-XSS-cache.patch
|
|
||||||
6672c847-x86-CPUID-XSAVE-dynamic-leaves.patch
|
|
||||||
6673ffdc-x86-IRQ-forward-pending-to-new-dest-in-fixup_irqs.patch
|
|
||||||
xsa458.patch
|
|
||||||
- Dropped patches no longer necessary
|
|
||||||
bin-python3-conversion.patch
|
|
||||||
migration-python3-conversion.patch
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Wed Aug 14 14:10:47 MDT 2024 - carnold@suse.com
|
|
||||||
|
|
||||||
- bsc#1228574 - VUL-0: CVE-2024-31145: xen: error handling in x86
|
|
||||||
IOMMU identity mapping (XSA-460)
|
|
||||||
66bb6f78-x86-IOMMU-move-tracking-in-iommu_identity_mapping.patch
|
|
||||||
- bsc#1228575 - VUL-0: CVE-2024-31146: xen: PCI device pass-through
|
|
||||||
with shared resources (XSA-461)
|
|
||||||
66bb6fa5-x86-pass-through-document-as-security-unsupported.patch
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Aug 14 11:33:39 MDT 2024 - carnold@suse.com
|
Wed Aug 14 11:33:39 MDT 2024 - carnold@suse.com
|
||||||
|
|
||||||
@ -199,17 +35,6 @@ Wed Aug 14 11:33:39 MDT 2024 - carnold@suse.com
|
|||||||
6673ffdc-x86-IRQ-forward-pending-to-new-dest-in-fixup_irqs.patch
|
6673ffdc-x86-IRQ-forward-pending-to-new-dest-in-fixup_irqs.patch
|
||||||
xsa458.patch
|
xsa458.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Wed Aug 7 08:06:00 CEST 2024 - jbeulich@suse.com
|
|
||||||
|
|
||||||
- Upstream bug fixes (bsc#1027519)
|
|
||||||
66a8b8ac-bunzip2-rare-failure.patch
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Tue Jul 23 09:43:13 UTC 2024 - Franz Sirl <franz.sirl-obs@lauterbach.com>
|
|
||||||
|
|
||||||
- Enable support for ZSTD and LZO compression formats
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jul 3 12:41:39 MDT 2024 - carnold@suse.com
|
Wed Jul 3 12:41:39 MDT 2024 - carnold@suse.com
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ References: bsc#954872
|
|||||||
|
|
||||||
--- a/tools/libs/light/libxl_disk.c
|
--- a/tools/libs/light/libxl_disk.c
|
||||||
+++ b/tools/libs/light/libxl_disk.c
|
+++ b/tools/libs/light/libxl_disk.c
|
||||||
@@ -237,7 +237,7 @@ static int libxl__device_disk_setdefault
|
@@ -203,7 +203,7 @@ static int libxl__device_disk_setdefault
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -18,9 +18,9 @@ References: bsc#954872
|
|||||||
const libxl_device_disk *disk,
|
const libxl_device_disk *disk,
|
||||||
libxl__device *device)
|
libxl__device *device)
|
||||||
{
|
{
|
||||||
@@ -414,6 +414,10 @@ static void device_disk_add(libxl__egc *
|
@@ -372,6 +372,10 @@ static void device_disk_add(libxl__egc *
|
||||||
assert(device->backend_kind == LIBXL__DEVICE_KIND_VBD3);
|
rc = ERROR_FAIL;
|
||||||
break;
|
goto out;
|
||||||
case LIBXL_DISK_BACKEND_QDISK:
|
case LIBXL_DISK_BACKEND_QDISK:
|
||||||
+ if (disk->script) {
|
+ if (disk->script) {
|
||||||
+ script = libxl__abs_path(gc, disk->script, libxl__xen_script_dir_path());
|
+ script = libxl__abs_path(gc, disk->script, libxl__xen_script_dir_path());
|
||||||
@ -31,8 +31,8 @@ References: bsc#954872
|
|||||||
libxl__device_disk_string_of_format(disk->format),
|
libxl__device_disk_string_of_format(disk->format),
|
||||||
--- a/tools/libs/light/libxl_device.c
|
--- a/tools/libs/light/libxl_device.c
|
||||||
+++ b/tools/libs/light/libxl_device.c
|
+++ b/tools/libs/light/libxl_device.c
|
||||||
@@ -361,7 +361,8 @@ static int disk_try_backend(disk_try_bac
|
@@ -351,7 +351,8 @@ static int disk_try_backend(disk_try_bac
|
||||||
return backend;
|
return 0;
|
||||||
|
|
||||||
case LIBXL_DISK_BACKEND_QDISK:
|
case LIBXL_DISK_BACKEND_QDISK:
|
||||||
- if (a->disk->script) goto bad_script;
|
- if (a->disk->script) goto bad_script;
|
||||||
@ -89,7 +89,7 @@ References: bsc#954872
|
|||||||
disks[i].vdev);
|
disks[i].vdev);
|
||||||
--- a/tools/libs/util/libxlu_disk_l.l
|
--- a/tools/libs/util/libxlu_disk_l.l
|
||||||
+++ b/tools/libs/util/libxlu_disk_l.l
|
+++ b/tools/libs/util/libxlu_disk_l.l
|
||||||
@@ -256,6 +256,8 @@ target=.* { STRIP(','); SAVESTRING("targ
|
@@ -253,6 +253,8 @@ target=.* { STRIP(','); SAVESTRING("targ
|
||||||
free(newscript);
|
free(newscript);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -100,7 +100,7 @@ References: bsc#954872
|
|||||||
aio:/.* { DPC->had_depr_prefix=1; DEPRECATE(0); }
|
aio:/.* { DPC->had_depr_prefix=1; DEPRECATE(0); }
|
||||||
--- a/tools/libs/light/libxl_internal.h
|
--- a/tools/libs/light/libxl_internal.h
|
||||||
+++ b/tools/libs/light/libxl_internal.h
|
+++ b/tools/libs/light/libxl_internal.h
|
||||||
@@ -2070,6 +2070,10 @@ _hidden char *libxl__object_to_json(libx
|
@@ -2073,6 +2073,10 @@ _hidden char *libxl__object_to_json(libx
|
||||||
_hidden int libxl__cpuid_legacy(libxl_ctx *ctx, uint32_t domid, bool retore,
|
_hidden int libxl__cpuid_legacy(libxl_ctx *ctx, uint32_t domid, bool retore,
|
||||||
libxl_domain_build_info *info);
|
libxl_domain_build_info *info);
|
||||||
|
|
||||||
|
32
xen.spec
32
xen.spec
@ -26,11 +26,9 @@
|
|||||||
# Keep it at the original location (/usr/lib) for backward compatibility
|
# Keep it at the original location (/usr/lib) for backward compatibility
|
||||||
%define _libexecdir /usr/lib
|
%define _libexecdir /usr/lib
|
||||||
|
|
||||||
%{?!primary_python:%define primary_python python3}
|
|
||||||
|
|
||||||
Name: xen
|
Name: xen
|
||||||
ExclusiveArch: %ix86 x86_64 aarch64
|
ExclusiveArch: %ix86 x86_64 aarch64
|
||||||
%define xen_build_dir xen-4.19.1-testing
|
%define xen_build_dir xen-4.18.3-testing
|
||||||
#
|
#
|
||||||
%define with_gdbsx 0
|
%define with_gdbsx 0
|
||||||
%define with_dom0_support 0
|
%define with_dom0_support 0
|
||||||
@ -98,8 +96,6 @@ BuildRequires: makeinfo
|
|||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: acpica
|
BuildRequires: acpica
|
||||||
BuildRequires: libzstd-devel
|
|
||||||
BuildRequires: lzo-devel
|
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
BuildRequires: openssl-devel
|
BuildRequires: openssl-devel
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
@ -121,15 +117,14 @@ BuildRequires: makeinfo
|
|||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
BuildRequires: pesign-obs-integration
|
BuildRequires: pesign-obs-integration
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: python-rpm-macros
|
|
||||||
Provides: installhint(reboot-needed)
|
Provides: installhint(reboot-needed)
|
||||||
|
|
||||||
Version: 4.19.1_02
|
Version: 4.18.3_02
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Xen Virtualization: Hypervisor (aka VMM aka Microkernel)
|
Summary: Xen Virtualization: Hypervisor (aka VMM aka Microkernel)
|
||||||
License: GPL-2.0-only
|
License: GPL-2.0-only
|
||||||
Group: System/Kernel
|
Group: System/Kernel
|
||||||
Source0: xen-4.19.1-testing-src.tar.bz2
|
Source0: xen-4.18.3-testing-src.tar.bz2
|
||||||
Source1: stubdom.tar.bz2
|
Source1: stubdom.tar.bz2
|
||||||
Source2: mini-os.tar.bz2
|
Source2: mini-os.tar.bz2
|
||||||
Source9: xen.changes
|
Source9: xen.changes
|
||||||
@ -159,6 +154,7 @@ Source10183: xen_maskcalc.py
|
|||||||
# For xen-libs
|
# For xen-libs
|
||||||
Source99: baselibs.conf
|
Source99: baselibs.conf
|
||||||
# Upstream patches
|
# Upstream patches
|
||||||
|
Patch1: 6617d62c-x86-hvm-Misra-Rule-19-1-regression.patch
|
||||||
# EMBARGOED security fixes
|
# EMBARGOED security fixes
|
||||||
# libxc
|
# libxc
|
||||||
Patch301: libxc-bitmap-long.patch
|
Patch301: libxc-bitmap-long.patch
|
||||||
@ -204,13 +200,15 @@ Patch408: ignore-ip-command-script-errors.patch
|
|||||||
# Needs to go upstream
|
# Needs to go upstream
|
||||||
Patch420: suspend_evtchn_lock.patch
|
Patch420: suspend_evtchn_lock.patch
|
||||||
Patch421: vif-route.patch
|
Patch421: vif-route.patch
|
||||||
|
Patch422: gcc14-fixes.patch
|
||||||
# Other bug fixes or features
|
# Other bug fixes or features
|
||||||
Patch450: xen.sysconfig-fillup.patch
|
Patch450: xen.sysconfig-fillup.patch
|
||||||
Patch451: xenconsole-no-multiple-connections.patch
|
Patch451: xenconsole-no-multiple-connections.patch
|
||||||
Patch452: hibernate.patch
|
Patch452: hibernate.patch
|
||||||
Patch453: xl-save-pc.patch
|
Patch453: stdvga-cache.patch
|
||||||
Patch454: pygrub-boot-legacy-sles.patch
|
Patch454: xl-save-pc.patch
|
||||||
Patch455: pygrub-handle-one-line-menu-entries.patch
|
Patch455: pygrub-boot-legacy-sles.patch
|
||||||
|
Patch456: pygrub-handle-one-line-menu-entries.patch
|
||||||
Patch461: libxl.max_event_channels.patch
|
Patch461: libxl.max_event_channels.patch
|
||||||
Patch463: libxl.add-option-to-disable-disk-cache-flushes-in-qdisk.patch
|
Patch463: libxl.add-option-to-disable-disk-cache-flushes-in-qdisk.patch
|
||||||
Patch464: xen.libxl.dmmd.patch
|
Patch464: xen.libxl.dmmd.patch
|
||||||
@ -219,6 +217,8 @@ Patch466: libxl.helper_done-crash.patch
|
|||||||
Patch467: libxl.LIBXL_HOTPLUG_TIMEOUT.patch
|
Patch467: libxl.LIBXL_HOTPLUG_TIMEOUT.patch
|
||||||
# python3 conversion patches
|
# python3 conversion patches
|
||||||
Patch500: build-python3-conversion.patch
|
Patch500: build-python3-conversion.patch
|
||||||
|
Patch501: migration-python3-conversion.patch
|
||||||
|
Patch502: bin-python3-conversion.patch
|
||||||
# Hypervisor and PV driver Patches
|
# Hypervisor and PV driver Patches
|
||||||
Patch600: xen.bug1026236.suse_vtsc_tolerance.patch
|
Patch600: xen.bug1026236.suse_vtsc_tolerance.patch
|
||||||
Patch601: x86-ioapic-ack-default.patch
|
Patch601: x86-ioapic-ack-default.patch
|
||||||
@ -282,8 +282,8 @@ Requires: qemu-arm
|
|||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Requires: %{name}-libs = %{version}-%{release}
|
Requires: %{name}-libs = %{version}-%{release}
|
||||||
Recommends: multipath-tools
|
Recommends: multipath-tools
|
||||||
Requires: %{primary_python}
|
Requires: python3
|
||||||
Requires: %{primary_python}-curses
|
Requires: python3-curses
|
||||||
%ifarch %{ix86} x86_64
|
%ifarch %{ix86} x86_64
|
||||||
Requires: qemu-seabios
|
Requires: qemu-seabios
|
||||||
%endif
|
%endif
|
||||||
@ -475,7 +475,7 @@ configure_flags="${configure_flags} --enable-stubdom"
|
|||||||
sed -i~ 's/ XENSTORETYPE=domain$/ XENSTORETYPE=daemon/' tools/hotplug/Linux/launch-xenstore.in
|
sed -i~ 's/ XENSTORETYPE=domain$/ XENSTORETYPE=daemon/' tools/hotplug/Linux/launch-xenstore.in
|
||||||
configure_flags="${configure_flags} --disable-stubdom"
|
configure_flags="${configure_flags} --disable-stubdom"
|
||||||
%endif
|
%endif
|
||||||
export PYTHON=$(realpath /usr/bin/python3)
|
export PYTHON="/usr/bin/python3"
|
||||||
configure_flags="${configure_flags} --disable-qemu-traditional"
|
configure_flags="${configure_flags} --disable-qemu-traditional"
|
||||||
./configure \
|
./configure \
|
||||||
--disable-xen \
|
--disable-xen \
|
||||||
@ -809,18 +809,17 @@ done
|
|||||||
# Xen utilities
|
# Xen utilities
|
||||||
install -m755 %SOURCE36 %{buildroot}/usr/sbin/xen2libvirt
|
install -m755 %SOURCE36 %{buildroot}/usr/sbin/xen2libvirt
|
||||||
install -m755 %SOURCE10183 %{buildroot}/usr/sbin/xen_maskcalc
|
install -m755 %SOURCE10183 %{buildroot}/usr/sbin/xen_maskcalc
|
||||||
%python3_fix_shebang
|
|
||||||
|
|
||||||
rm -f %{buildroot}/etc/xen/README*
|
rm -f %{buildroot}/etc/xen/README*
|
||||||
# Example config
|
# Example config
|
||||||
mkdir -p %{buildroot}/etc/xen/{vm,examples,scripts}
|
mkdir -p %{buildroot}/etc/xen/{vm,examples,scripts}
|
||||||
mv %{buildroot}/etc/xen/xlexample* %{buildroot}/etc/xen/examples
|
mv %{buildroot}/etc/xen/xlexample* %{buildroot}/etc/xen/examples
|
||||||
rm -f %{buildroot}/etc/xen/examples/*nbd
|
rm -f %{buildroot}/etc/xen/examples/*nbd
|
||||||
|
install -m644 tools/xentrace/formats %{buildroot}/etc/xen/examples/xentrace_formats.txt
|
||||||
|
|
||||||
# Scripts
|
# Scripts
|
||||||
rm -f %{buildroot}/etc/xen/scripts/block-*nbd
|
rm -f %{buildroot}/etc/xen/scripts/block-*nbd
|
||||||
install -m755 %SOURCE21 %SOURCE22 %SOURCE23 %SOURCE24 %{buildroot}/etc/xen/scripts/
|
install -m755 %SOURCE21 %SOURCE22 %SOURCE23 %SOURCE24 %{buildroot}/etc/xen/scripts/
|
||||||
install -m755 tools/pygrub/src/pygrub %{buildroot}/usr/bin/pygrub
|
|
||||||
mkdir -p %{buildroot}/usr/lib/supportconfig/plugins
|
mkdir -p %{buildroot}/usr/lib/supportconfig/plugins
|
||||||
install -m 755 %SOURCE13 %{buildroot}/usr/lib/supportconfig/plugins/xen
|
install -m 755 %SOURCE13 %{buildroot}/usr/lib/supportconfig/plugins/xen
|
||||||
|
|
||||||
@ -977,6 +976,7 @@ rm -f %{buildroot}/usr/libexec/qemu-bridge-helper
|
|||||||
/usr/bin/pygrub
|
/usr/bin/pygrub
|
||||||
/usr/bin/vchan-socket-proxy
|
/usr/bin/vchan-socket-proxy
|
||||||
/usr/bin/xencov_split
|
/usr/bin/xencov_split
|
||||||
|
/usr/bin/xentrace_format
|
||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
/usr/bin/xen-cpuid
|
/usr/bin/xen-cpuid
|
||||||
%endif
|
%endif
|
||||||
|
@ -18,10 +18,10 @@ Basically fillup removed all comments, and also the two added key=value lines.
|
|||||||
|
|
||||||
Prevent this by defining all keys, with empty values, so that consumers
|
Prevent this by defining all keys, with empty values, so that consumers
|
||||||
of the values will continue to use the built-in defaults.
|
of the values will continue to use the built-in defaults.
|
||||||
Index: xen-4.19.0-testing/tools/hotplug/Linux/init.d/sysconfig.xencommons.in
|
Index: xen-4.16.0-testing/tools/hotplug/Linux/init.d/sysconfig.xencommons.in
|
||||||
===================================================================
|
===================================================================
|
||||||
--- xen-4.19.0-testing.orig/tools/hotplug/Linux/init.d/sysconfig.xencommons.in
|
--- xen-4.16.0-testing.orig/tools/hotplug/Linux/init.d/sysconfig.xencommons.in
|
||||||
+++ xen-4.19.0-testing/tools/hotplug/Linux/init.d/sysconfig.xencommons.in
|
+++ xen-4.16.0-testing/tools/hotplug/Linux/init.d/sysconfig.xencommons.in
|
||||||
@@ -3,7 +3,9 @@
|
@@ -3,7 +3,9 @@
|
||||||
## Default: "none"
|
## Default: "none"
|
||||||
#
|
#
|
||||||
@ -55,19 +55,20 @@ Index: xen-4.19.0-testing/tools/hotplug/Linux/init.d/sysconfig.xencommons.in
|
|||||||
|
|
||||||
## Type: string
|
## Type: string
|
||||||
## Default: unlimited
|
## Default: unlimited
|
||||||
@@ -57,8 +59,9 @@ XENSTORED_ARGS=
|
@@ -57,9 +59,10 @@ XENSTORED_ARGS=
|
||||||
## Type: string
|
## Type: string
|
||||||
## Default: Not defined, tracing off
|
## Default: Not defined, tracing off
|
||||||
#
|
#
|
||||||
-# Log xenstored messages
|
-# Log xenstored messages
|
||||||
-#XENSTORED_TRACE=[yes|on|1]
|
|
||||||
+# Log xenstored messages if a non-empty value is assigned.
|
+# Log xenstored messages if a non-empty value is assigned.
|
||||||
|
# Only evaluated if XENSTORETYPE is "daemon".
|
||||||
|
-#XENSTORED_TRACE=[yes|on|1]
|
||||||
+#
|
+#
|
||||||
+XENSTORED_TRACE=
|
+XENSTORED_TRACE=
|
||||||
|
|
||||||
## Type: integer
|
## Type: integer
|
||||||
## Default: 50
|
## Default: 50
|
||||||
@@ -74,14 +77,14 @@ XENSTORED_ARGS=
|
@@ -75,14 +78,14 @@ XENSTORED_ARGS=
|
||||||
#
|
#
|
||||||
# xenstore domain kernel.
|
# xenstore domain kernel.
|
||||||
# Only evaluated if XENSTORETYPE is "domain".
|
# Only evaluated if XENSTORETYPE is "domain".
|
||||||
@ -84,7 +85,7 @@ Index: xen-4.19.0-testing/tools/hotplug/Linux/init.d/sysconfig.xencommons.in
|
|||||||
|
|
||||||
## Type: string
|
## Type: string
|
||||||
## Default: not set, no autoballooning of xenstore domain
|
## Default: not set, no autoballooning of xenstore domain
|
||||||
@@ -92,7 +95,7 @@ XENSTORED_ARGS=
|
@@ -93,7 +96,7 @@ XENSTORED_ARGS=
|
||||||
# - combination of both in form of <val>:<frac> (e.g. 8:1/100), resulting
|
# - combination of both in form of <val>:<frac> (e.g. 8:1/100), resulting
|
||||||
# value will be the higher of both specifications
|
# value will be the higher of both specifications
|
||||||
# Only evaluated if XENSTORETYPE is "domain".
|
# Only evaluated if XENSTORETYPE is "domain".
|
||||||
@ -93,7 +94,7 @@ Index: xen-4.19.0-testing/tools/hotplug/Linux/init.d/sysconfig.xencommons.in
|
|||||||
|
|
||||||
## Type: string
|
## Type: string
|
||||||
## Default: ""
|
## Default: ""
|
||||||
@@ -105,4 +108,4 @@ XENSTORE_DOMAIN_ARGS=
|
@@ -106,4 +109,4 @@ XENSTORE_DOMAIN_ARGS=
|
||||||
#QEMU_XEN=@qemu_xen_path@
|
#QEMU_XEN=@qemu_xen_path@
|
||||||
|
|
||||||
# Dom0 UUID
|
# Dom0 UUID
|
||||||
|
@ -11,7 +11,7 @@ References: fate#323663 - Run Xenstore in stubdomain
|
|||||||
#
|
#
|
||||||
# Select type of xentore service.
|
# Select type of xentore service.
|
||||||
#
|
#
|
||||||
@@ -80,14 +80,14 @@ XENSTORED_TRACE=
|
@@ -81,14 +81,14 @@ XENSTORED_TRACE=
|
||||||
XENSTORE_DOMAIN_KERNEL=
|
XENSTORE_DOMAIN_KERNEL=
|
||||||
|
|
||||||
## Type: integer
|
## Type: integer
|
||||||
@ -49,6 +49,6 @@ References: fate#323663 - Run Xenstore in stubdomain
|
|||||||
- [ -z "$XENSTORE_MAX_DOMAIN_SIZE" ] || XENSTORE_DOMAIN_ARGS="$XENSTORE_DOMAIN_ARGS --maxmem $XENSTORE_MAX_DOMAIN_SIZE"
|
- [ -z "$XENSTORE_MAX_DOMAIN_SIZE" ] || XENSTORE_DOMAIN_ARGS="$XENSTORE_DOMAIN_ARGS --maxmem $XENSTORE_MAX_DOMAIN_SIZE"
|
||||||
+ [ -z "$XENSTORE_MAX_DOMAIN_SIZE" ] && XENSTORE_MAX_DOMAIN_SIZE="1/100"
|
+ [ -z "$XENSTORE_MAX_DOMAIN_SIZE" ] && XENSTORE_MAX_DOMAIN_SIZE="1/100"
|
||||||
+ XENSTORE_DOMAIN_ARGS="$XENSTORE_DOMAIN_ARGS --maxmem $XENSTORE_MAX_DOMAIN_SIZE"
|
+ XENSTORE_DOMAIN_ARGS="$XENSTORE_DOMAIN_ARGS --maxmem $XENSTORE_MAX_DOMAIN_SIZE"
|
||||||
[ -z "$XENSTORED_TRACE" ] || XENSTORE_DOMAIN_ARGS="$XENSTORE_DOMAIN_ARGS -T xenstored-trace.log"
|
|
||||||
|
|
||||||
echo -n Starting $XENSTORE_DOMAIN_KERNEL...
|
echo -n Starting $XENSTORE_DOMAIN_KERNEL...
|
||||||
|
${LIBEXEC_BIN}/init-xenstore-domain $XENSTORE_DOMAIN_ARGS || exit 1
|
||||||
|
@ -1,104 +1,93 @@
|
|||||||
References: bsc#1178736
|
References: bsc#1178736
|
||||||
|
|
||||||
Allow restart of xenwatchdogd in case it terminated unexpectetly.
|
Allow restart of xenwatchdogd in case it terminated unexpectetly.
|
||||||
Index: xen-4.19.0-testing/tools/misc/xenwatchdogd.c
|
Index: xen-4.14.0-testing/tools/misc/xenwatchdogd.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- xen-4.19.0-testing.orig/tools/misc/xenwatchdogd.c
|
--- xen-4.14.0-testing.orig/tools/misc/xenwatchdogd.c
|
||||||
+++ xen-4.19.0-testing/tools/misc/xenwatchdogd.c
|
+++ xen-4.14.0-testing/tools/misc/xenwatchdogd.c
|
||||||
@@ -21,6 +21,8 @@
|
@@ -9,12 +9,16 @@
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <signal.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdbool.h>
|
|
||||||
#include <getopt.h>
|
|
||||||
+#include <libgen.h>
|
+#include <libgen.h>
|
||||||
+#include <syslog.h>
|
+#include <syslog.h>
|
||||||
|
|
||||||
#define WDOG_MIN_TIMEOUT 2
|
xc_interface *h;
|
||||||
#define WDOG_MIN_SLEEP 1
|
int id = 0;
|
||||||
@@ -29,9 +31,11 @@
|
|
||||||
static xc_interface *h;
|
|
||||||
static volatile bool safeexit = false;
|
|
||||||
static volatile bool done = false;
|
|
||||||
+static const char id_file[] = "/run/xenwatchdog_id.txt";
|
+static const char id_file[] = "/run/xenwatchdog_id.txt";
|
||||||
|
|
||||||
-static void daemonize(void)
|
-void daemonize(void)
|
||||||
+static void daemonize(const char *str)
|
+static void daemonize(const char *str)
|
||||||
{
|
{
|
||||||
+ const char *err_str = "";
|
+ const char *err_str = "";
|
||||||
switch (fork()) {
|
switch (fork()) {
|
||||||
case -1:
|
case -1:
|
||||||
err(EXIT_FAILURE, "fork");
|
err(1, "fork");
|
||||||
@@ -40,7 +44,9 @@ static void daemonize(void)
|
@@ -23,7 +27,9 @@ void daemonize(void)
|
||||||
default:
|
default:
|
||||||
exit(EXIT_SUCCESS);
|
exit(0);
|
||||||
}
|
}
|
||||||
- umask(0);
|
- umask(0);
|
||||||
+#define err(x,s) do { err_str = (s); goto out; } while (0)
|
+#define err(x,s) do { err_str = (s); goto out; } while (0)
|
||||||
+ openlog(str, LOG_CONS, LOG_DAEMON);
|
+ openlog(str, LOG_CONS, LOG_DAEMON);
|
||||||
+ umask(~(S_IRUSR|S_IWUSR));
|
+ umask(~(S_IRUSR|S_IWUSR));
|
||||||
if (setsid() < 0)
|
if (setsid() < 0)
|
||||||
err(EXIT_FAILURE, "setsid");
|
err(1, "setsid");
|
||||||
if (chdir("/") < 0)
|
if (chdir("/") < 0)
|
||||||
@@ -51,6 +57,10 @@ static void daemonize(void)
|
@@ -34,6 +40,10 @@ void daemonize(void)
|
||||||
err(EXIT_FAILURE, "reopen stdout");
|
err(1, "reopen stdout");
|
||||||
if(freopen("/dev/null", "w", stderr) == NULL)
|
if(freopen("/dev/null", "w", stderr) == NULL)
|
||||||
err(EXIT_FAILURE, "reopen stderr");
|
err(1, "reopen stderr");
|
||||||
+ return;
|
+ return;
|
||||||
+out:
|
+out:
|
||||||
+ syslog(LOG_ERR, "%s: %m", err_str);
|
+ syslog(LOG_ERR, "%s: %m", err_str);
|
||||||
+ exit(1);
|
+ exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void catch_exit(int sig)
|
void catch_exit(int sig)
|
||||||
@@ -62,6 +72,7 @@ static void catch_usr1(int sig)
|
@@ -47,18 +57,21 @@ void catch_usr1(int sig)
|
||||||
{
|
{
|
||||||
safeexit = true;
|
if (id)
|
||||||
done = true;
|
xc_watchdog(h, id, 0);
|
||||||
+ unlink(id_file);
|
+ unlink(id_file);
|
||||||
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __attribute__((noreturn)) usage(int exit_code)
|
|
||||||
@@ -98,10 +109,12 @@ static int parse_secs(const char *arg, c
|
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
+ FILE *f;
|
+ FILE *f;
|
||||||
int id;
|
|
||||||
int t, s;
|
int t, s;
|
||||||
int ret;
|
int ret;
|
||||||
bool daemon = true;
|
|
||||||
+ const char *err_str = "";
|
+ const char *err_str = "";
|
||||||
|
|
||||||
for ( ;; )
|
if (argc < 2)
|
||||||
{
|
errx(1, "usage: %s <timeout> <sleep>", argv[0]);
|
||||||
@@ -160,7 +173,7 @@ int main(int argc, char **argv)
|
|
||||||
s = t / 2;
|
|
||||||
|
|
||||||
if (daemon)
|
|
||||||
- daemonize();
|
- daemonize();
|
||||||
+ daemonize(basename(argv[0]));
|
+ daemonize(basename(argv[0]));
|
||||||
|
|
||||||
h = xc_interface_open(NULL, NULL, 0);
|
h = xc_interface_open(NULL, NULL, 0);
|
||||||
if (h == NULL)
|
if (h == NULL)
|
||||||
@@ -177,9 +190,25 @@ int main(int argc, char **argv)
|
@@ -86,9 +99,25 @@ int main(int argc, char **argv)
|
||||||
if (signal(SIGUSR1, &catch_usr1) == SIG_ERR)
|
if (signal(SIGUSR1, &catch_usr1) == SIG_ERR)
|
||||||
err(EXIT_FAILURE, "signal");
|
err(1, "signal");
|
||||||
|
|
||||||
- id = xc_watchdog(h, 0, t);
|
- id = xc_watchdog(h, 0, t);
|
||||||
- if (id <= 0)
|
- if (id <= 0)
|
||||||
- err(EXIT_FAILURE, "xc_watchdog setup");
|
- err(1, "xc_watchdog setup");
|
||||||
+ f = fopen(id_file, "r");
|
+ f = fopen(id_file, "r");
|
||||||
+ if (f) {
|
+ if (f) {
|
||||||
+ if (fscanf(f, "%d", &id) != 1)
|
+ if (fscanf(f, "%d", &id) != 1)
|
||||||
+ id = -1;
|
+ id = -1;
|
||||||
+ if (id <= 0)
|
+ if (id <= 0)
|
||||||
+ err(EXIT_FAILURE, "xc_watchdog setup");
|
+ err(1, "xc_watchdog setup");
|
||||||
+ syslog(LOG_INFO, "reusing id %d", id);
|
+ syslog(LOG_INFO, "reusing id %d", id);
|
||||||
+ fclose(f);
|
+ fclose(f);
|
||||||
+ } else {
|
+ } else {
|
||||||
+ id = xc_watchdog(h, 0, t);
|
+ id = xc_watchdog(h, 0, t);
|
||||||
+ syslog(LOG_INFO, "obtained id %d", id);
|
+ syslog(LOG_INFO, "obtained id %d", id);
|
||||||
+ if (id <= 0)
|
+ if (id <= 0)
|
||||||
+ err(EXIT_FAILURE, "xc_watchdog setup");
|
+ err(1, "xc_watchdog setup");
|
||||||
+ f = fopen(id_file, "w");
|
+ f = fopen(id_file, "w");
|
||||||
+ if (f) {
|
+ if (f) {
|
||||||
+ fprintf(f, "%d\n", id);
|
+ fprintf(f, "%d\n", id);
|
||||||
@ -106,14 +95,14 @@ Index: xen-4.19.0-testing/tools/misc/xenwatchdogd.c
|
|||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
|
|
||||||
while (!done) {
|
for (;;) {
|
||||||
sleep(s);
|
sleep(s);
|
||||||
@@ -191,4 +220,8 @@ int main(int argc, char **argv)
|
@@ -96,4 +125,8 @@ int main(int argc, char **argv)
|
||||||
// Zero seconds timeout will disarm the watchdog timer
|
if (ret != 0)
|
||||||
xc_watchdog(h, id, safeexit ? 0 : WDOG_EXIT_TIMEOUT);
|
err(1, "xc_watchdog");
|
||||||
return 0;
|
}
|
||||||
+
|
+
|
||||||
+out:
|
+out:
|
||||||
+ syslog(LOG_ERR, "%s: %m", err_str);
|
+ syslog(LOG_ERR, "%s: %m", err_str);
|
||||||
+ exit(EXIT_FAILURE);
|
+ exit(1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user