- fate#319989 - Update to Xen 4.7 RC4

xen-4.7.0-testing-src.tar.bz2
- Dropped
  xen.pkgconfig-4.7.patch
  xsa164.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=434
This commit is contained in:
Charles Arnold 2016-05-26 19:33:01 +00:00 committed by Git OBS Bridge
parent 1fed24fd43
commit 6f47abb900
13 changed files with 38 additions and 106 deletions

View File

@ -177,7 +177,7 @@ Index: xen-4.7.0-testing/tools/libxl/libxl_types.idl
===================================================================
--- xen-4.7.0-testing.orig/tools/libxl/libxl_types.idl
+++ xen-4.7.0-testing/tools/libxl/libxl_types.idl
@@ -512,6 +512,7 @@ libxl_domain_build_info = Struct("domain
@@ -513,6 +513,7 @@ libxl_domain_build_info = Struct("domain
("timer_mode", libxl_timer_mode),
("nested_hvm", libxl_defbool),
("altp2m", libxl_defbool),

View File

@ -14,10 +14,10 @@ Signed-off-by: Prasad J Pandit <address@hidden>
hw/scsi/esp.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
Index: xen-4.7.0-testing/tools/qemu-xen-traditional-dir-remote/hw/esp.c
Index: xen-4.4.4-testing/tools/qemu-xen-traditional-dir-remote/hw/esp.c
===================================================================
--- xen-4.7.0-testing.orig/tools/qemu-xen-traditional-dir-remote/hw/esp.c
+++ xen-4.7.0-testing/tools/qemu-xen-traditional-dir-remote/hw/esp.c
--- xen-4.4.4-testing.orig/tools/qemu-xen-traditional-dir-remote/hw/esp.c
+++ xen-4.4.4-testing/tools/qemu-xen-traditional-dir-remote/hw/esp.c
@@ -471,7 +471,11 @@ static void esp_mem_writeb(void *opaque,
break;
case ESP_FIFO:

View File

@ -20,10 +20,10 @@ git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5076 c046a42c-6fe2-441c-8c8
vnc.c | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++---------
1 files changed, 50 insertions(+), 9 deletions(-)
Index: xen-4.6.1-testing/tools/qemu-xen-traditional-dir-remote/vnc.c
Index: xen-4.7.0-testing/tools/qemu-xen-traditional-dir-remote/vnc.c
===================================================================
--- xen-4.6.1-testing.orig/tools/qemu-xen-traditional-dir-remote/vnc.c
+++ xen-4.6.1-testing/tools/qemu-xen-traditional-dir-remote/vnc.c
--- xen-4.7.0-testing.orig/tools/qemu-xen-traditional-dir-remote/vnc.c
+++ xen-4.7.0-testing/tools/qemu-xen-traditional-dir-remote/vnc.c
@@ -1285,35 +1285,22 @@ static void press_key_altgr_down(VncStat
}
}
@ -140,7 +140,7 @@ Index: xen-4.6.1-testing/tools/qemu-xen-traditional-dir-remote/vnc.c
default:
printf("Msg: %d\n", data[0]);
vnc_client_error(vs);
@@ -2461,10 +2496,11 @@ void vnc_display_init(DisplayState *ds)
@@ -2486,10 +2521,11 @@ void vnc_display_init(DisplayState *ds)
vs->ds = ds;

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:aea6bddfb9f29223de59da9be509f77a27837ff7f6d68750323b3c3be414cf3a
size 2877672
oid sha256:7f7466ee1dd84c86ee614b8d32313e1bcfcfbe4b394c14209b6fc32552bed334
size 2877765

View File

@ -105,7 +105,7 @@ Index: xen-4.7.0-testing/docs/man/xl.pod.1
===================================================================
--- xen-4.7.0-testing.orig/docs/man/xl.pod.1
+++ xen-4.7.0-testing/docs/man/xl.pod.1
@@ -1417,6 +1417,24 @@ List virtual trusted platform modules fo
@@ -1423,6 +1423,24 @@ List virtual trusted platform modules fo
=back
@ -154,7 +154,7 @@ Index: xen-4.7.0-testing/tools/libxl/libxl.c
===================================================================
--- xen-4.7.0-testing.orig/tools/libxl/libxl.c
+++ xen-4.7.0-testing/tools/libxl/libxl.c
@@ -4325,6 +4325,7 @@ DEFINE_DEVICE_REMOVE_CUSTOM(usbctrl, des
@@ -4326,6 +4326,7 @@ DEFINE_DEVICE_REMOVE_CUSTOM(usbctrl, des
/* The following functions are defined:
* libxl_device_disk_add
* libxl_device_nic_add
@ -162,7 +162,7 @@ Index: xen-4.7.0-testing/tools/libxl/libxl.c
* libxl_device_vtpm_add
* libxl_device_usbctrl_add
* libxl_device_usbdev_add
@@ -4356,6 +4357,9 @@ DEFINE_DEVICE_ADD(disk)
@@ -4357,6 +4358,9 @@ DEFINE_DEVICE_ADD(disk)
/* nic */
DEFINE_DEVICE_ADD(nic)
@ -172,7 +172,7 @@ Index: xen-4.7.0-testing/tools/libxl/libxl.c
/* vtpm */
DEFINE_DEVICE_ADD(vtpm)
@@ -7308,6 +7312,11 @@ int libxl_retrieve_domain_configuration(
@@ -7309,6 +7313,11 @@ int libxl_retrieve_domain_configuration(
MERGE(nic, nics, COMPARE_DEVID, {});
@ -257,7 +257,7 @@ Index: xen-4.7.0-testing/tools/libxl/libxl_create.c
static void domcreate_attach_vtpms(libxl__egc *egc, libxl__multidev *multidev,
int ret);
static void domcreate_attach_usbctrls(libxl__egc *egc,
@@ -1431,13 +1433,13 @@ static void domcreate_devmodel_started(l
@@ -1432,13 +1434,13 @@ static void domcreate_devmodel_started(l
if (d_config->num_nics > 0) {
/* Attach nics */
libxl__multidev_begin(ao, &dcs->multidev);
@ -273,7 +273,7 @@ Index: xen-4.7.0-testing/tools/libxl/libxl_create.c
return;
error_out:
@@ -1445,7 +1447,7 @@ error_out:
@@ -1446,7 +1448,7 @@ error_out:
domcreate_complete(egc, dcs, ret);
}
@ -282,7 +282,7 @@ Index: xen-4.7.0-testing/tools/libxl/libxl_create.c
libxl__multidev *multidev,
int ret)
{
@@ -1460,6 +1462,39 @@ static void domcreate_attach_vtpms(libxl
@@ -1461,6 +1463,39 @@ static void domcreate_attach_vtpms(libxl
goto error_out;
}
@ -372,7 +372,7 @@ Index: xen-4.7.0-testing/tools/libxl/libxl_types.idl
===================================================================
--- xen-4.7.0-testing.orig/tools/libxl/libxl_types.idl
+++ xen-4.7.0-testing/tools/libxl/libxl_types.idl
@@ -697,6 +697,43 @@ libxl_device_channel = Struct("device_ch
@@ -698,6 +698,43 @@ libxl_device_channel = Struct("device_ch
])),
])
@ -416,7 +416,7 @@ Index: xen-4.7.0-testing/tools/libxl/libxl_types.idl
libxl_domain_config = Struct("domain_config", [
("c_info", libxl_domain_create_info),
("b_info", libxl_domain_build_info),
@@ -708,6 +745,7 @@ libxl_domain_config = Struct("domain_con
@@ -709,6 +746,7 @@ libxl_domain_config = Struct("domain_con
("dtdevs", Array(libxl_device_dtdev, "num_dtdevs")),
("vfbs", Array(libxl_device_vfb, "num_vfbs")),
("vkbs", Array(libxl_device_vkb, "num_vkbs")),
@ -424,7 +424,7 @@ Index: xen-4.7.0-testing/tools/libxl/libxl_types.idl
("vtpms", Array(libxl_device_vtpm, "num_vtpms")),
# a channel manifests as a console with a name,
# see docs/misc/channels.txt
@@ -745,6 +783,21 @@ libxl_nicinfo = Struct("nicinfo", [
@@ -746,6 +784,21 @@ libxl_nicinfo = Struct("nicinfo", [
("rref_rx", integer),
], dir=DIR_OUT)

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8725d99ce7d99da1de4d5103b4771a7631651d5cbf6175c3d3d8f73e26570e85
size 256422
oid sha256:436ec6bfe55880d69677fdba7c5c1a50a88d7cbd2781574845488455550d5256
size 255793

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:50ffbb3f44ab3e7c46ced2220bb6ce8e3e74134d7361125588fb139d5ae93c2b
size 3237104
oid sha256:54cfea54f25455c6c81a20612fac0299891eac7cbce15a44d03c9696a9eb9cb0
size 3237789

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2f3cc7ca550b63e67b699f9cc912560c371c459b0f5a91a810a8790fae3458a8
size 17477344
oid sha256:2ee40d136161727460051051a7c5fbfc6ebdc16391dce5ea43db6756a768301b
size 17477603

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1201ecad0af4fc7b88814b0539c83aa8bb2ef110d9ae8283f6de2a6645045c36
size 4466035
oid sha256:dd0d35cd73eb363317bdbda1a9e1900393451ab4e5069b7c142512a6a368902d
size 4465975

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Tue May 25 08:54:54 MDT 2016 - carnold@suse.com
- fate#319989 - Update to Xen 4.7 RC4
xen-4.7.0-testing-src.tar.bz2
- Dropped
xen.pkgconfig-4.7.patch
xsa164.patch
-------------------------------------------------------------------
Mon May 23 15:24:35 MDT 2016 - carnold@suse.com

View File

@ -1,36 +0,0 @@
Mark SONAMEs and pkgconfig as xen 4.7
---
tools/libxc/Makefile | 2 +-
tools/libxl/Makefile | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
Index: xen-4.7.0-testing/tools/libxc/Makefile
===================================================================
--- xen-4.7.0-testing.orig/tools/libxc/Makefile
+++ xen-4.7.0-testing/tools/libxc/Makefile
@@ -1,7 +1,7 @@
XEN_ROOT = $(CURDIR)/../..
include $(XEN_ROOT)/tools/Rules.mk
-MAJOR = 4.6
+MAJOR = 4.7
MINOR = 0
ifeq ($(CONFIG_LIBXC_MINIOS),y)
Index: xen-4.7.0-testing/tools/libxl/Makefile
===================================================================
--- xen-4.7.0-testing.orig/tools/libxl/Makefile
+++ xen-4.7.0-testing/tools/libxl/Makefile
@@ -5,10 +5,10 @@
XEN_ROOT = $(CURDIR)/../..
include $(XEN_ROOT)/tools/Rules.mk
-MAJOR = 4.6
+MAJOR = 4.7
MINOR = 0
-XLUMAJOR = 4.6
+XLUMAJOR = 4.7
XLUMINOR = 0
CFLAGS += -Werror -Wno-format-zero-length -Wmissing-declarations \

View File

@ -160,7 +160,7 @@ BuildRequires: xorg-x11-util-devel
%endif
%endif
Version: 4.7.0_03
Version: 4.7.0_04
Release: 0
Summary: Xen Virtualization: Hypervisor (aka VMM aka Microkernel)
License: GPL-2.0
@ -198,8 +198,6 @@ Source57: xen-utils-0.1.tar.bz2
# For xen-libs
Source99: baselibs.conf
# Upstream patches
Patch47: xen.pkgconfig-4.7.patch
Patch164: xsa164.patch
# Upstream qemu-traditional patches
Patch250: VNC-Support-for-ExtendedKeyEvent-client-message.patch
Patch251: 0001-net-move-the-tap-buffer-into-TAPState.patch
@ -517,8 +515,6 @@ Authors:
%prep
%setup -q -n %xen_build_dir -a 1 -a 2 -a 5 -a 6 -a 57
# Upstream patches
%patch47 -p1
%patch164 -p1
# Upstream qemu patches
%patch250 -p1
%patch251 -p1

View File

@ -1,37 +0,0 @@
References: bsc#958007 XSA-164
MSI-X: avoid array overrun upon MSI-X table writes
pt_msix_init() allocates msix->msix_entry[] to just cover
msix->total_entries entries. While pci_msix_readl() resorts to reading
physical memory for out of bounds reads, pci_msix_writel() so far
simply accessed/corrupted unrelated memory.
pt_iomem_map()'s call to cpu_register_physical_memory() registers a
page granular region, which is necessary as the Pending Bit Array may
share space with the MSI-X table (but nothing else is allowed to). This
also explains why pci_msix_readl() actually honors out of bounds reads,
but pci_msi_writel() doesn't need to.
This is XSA-164.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Index: xen-4.6.1-testing/tools/qemu-xen-traditional-dir-remote/hw/pt-msi.c
===================================================================
--- xen-4.6.1-testing.orig/tools/qemu-xen-traditional-dir-remote/hw/pt-msi.c
+++ xen-4.6.1-testing/tools/qemu-xen-traditional-dir-remote/hw/pt-msi.c
@@ -447,6 +447,13 @@ static void pci_msix_writel(void *opaque
return;
}
+ if ( addr - msix->mmio_base_addr >= msix->total_entries * 16 )
+ {
+ PT_LOG("Error: Out of bounds write to MSI-X table,"
+ " addr %016"PRIx64"\n", addr);
+ return;
+ }
+
entry_nr = (addr - msix->mmio_base_addr) / 16;
entry = &msix->msix_entry[entry_nr];
offset = ((addr - msix->mmio_base_addr) % 16) / 4;