Xen is a hypervisor which supports running multiple guest operating systems on a single machine. Guest OSes (also called "domains") can be either paravirtualised (i.e. make hypercalls in order to access hardware), run in HVM (Hardware Virtualisation Mode) where they will be presented with virtual devices, or a combination where they use hypercalls to access hardware but manage memory themselves. At boot, the xen kernel is loaded along with the guest kernel for the first domain (called domain0). domain0 has privileges to access the physical hardware (PCI and ISA devices), administrate other domains and provide virtual devices (disks and network) to other domains.
15 lines
488 B
C
15 lines
488 B
C
$NetBSD: patch-tools_xenpaging_xenpaging.c,v 1.1 2021/04/18 12:31:26 bouyer Exp $
|
|
|
|
Fix "error: 'buffer' may be used uninitialized"
|
|
|
|
--- tools/xenpaging/xenpaging.c.orig 2021-04-17 14:43:41.053494277 +0200
|
|
+++ tools/xenpaging/xenpaging.c 2021-04-17 14:44:17.167271008 +0200
|
|
@@ -180,7 +180,7 @@
|
|
|
|
static void *init_page(void)
|
|
{
|
|
- void *buffer;
|
|
+ void *buffer = NULL; /* XXX gcc */
|
|
|
|
/* Allocated page memory */
|
|
errno = posix_memalign(&buffer, XC_PAGE_SIZE, XC_PAGE_SIZE);
|