xen-4.20.0-testing-src.tar.bz2 - New Features * On Arm: - Experimental support for Armv8-R. - Support for NXP S32G3 Processors Family and NXP LINFlexD UART driver. - Basic handling for SCMI requests over SMC using Shared Memory, by allowing forwarding the calls to EL3 FW if coming from hwdom. - Support for LLC (Last Level Cache) coloring. * On x86: - xl suspend/resume subcommands. - Changed Features * Fixed blkif protocol specification for sector sizes different than 512b. * The dombuilder in libxenguest no longer un-gzips secondary modules, instead leaving this to the guest kernel to do in guest context. * On x86: - Prefer ACPI reboot over UEFI ResetSystem() run time service call. - Switched the xAPIC flat driver to use physical destination mode for external interrupts instead of logical destination mode. - Removed Features * On x86: - Support for running on Xeon Phi processors. - Removed the `ucode=allow-same` command line option. - Removed x2APIC Cluster Mode for external interrupts. x2APIC Physical and Mixed Modes are still available. - Dropped patches xsa466.patch - Move /etc/bash_completion.d/xl back to %_datadir/bash-completion/completions OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=863
28 lines
937 B
Diff
28 lines
937 B
Diff
Index: xen-4.18.0-testing/tools/console/client/main.c
|
|
===================================================================
|
|
--- xen-4.18.0-testing.orig/tools/console/client/main.c
|
|
+++ xen-4.18.0-testing/tools/console/client/main.c
|
|
@@ -101,6 +101,7 @@ static int get_pty_fd(struct xs_handle *
|
|
* Assumes there is already a watch set in the store for this path. */
|
|
{
|
|
struct timeval tv;
|
|
+ struct flock lock;
|
|
fd_set watch_fdset;
|
|
int xs_fd = xs_fileno(xs), pty_fd = -1;
|
|
time_t start, now;
|
|
@@ -124,6 +125,14 @@ static int get_pty_fd(struct xs_handle *
|
|
pty_fd = open(pty_path, O_RDWR | O_NOCTTY);
|
|
if (pty_fd == -1)
|
|
warn("Could not open tty `%s'", pty_path);
|
|
+ else {
|
|
+ memset(&lock, 0, sizeof(lock));
|
|
+ lock.l_type = F_WRLCK;
|
|
+ lock.l_whence = SEEK_SET;
|
|
+ if (fcntl(pty_fd, F_SETLK, &lock) != 0)
|
|
+ err(errno, "Could not lock tty '%s'",
|
|
+ pty_path);
|
|
+ }
|
|
}
|
|
free(pty_path);
|
|
}
|