Package: xen-utils-4.1 Version: 4.1.3-2 Severity: important Dear Maintainer,
Creating a new HVM domU fails with the following error: map shared IO page returned error 22 I've narrowed it down to qemu-dm which fails to start: # /usr/lib/xen-4.1/bin/qemu-dm [...] qemu_map_cache_init nr_buckets = 10000 size 4194304 errno0 = 2 domid = -1 shared page at pfn 0 errno1 = 3 errno2 = 22 map shared IO page returned error 22 I added some errno debug then rebuilt and reinstalled the package using apt-src, here is the diff: diff --git a/qemu/hw/xen_machine_fv.c b/qemu/hw/xen_machine_fv.c index a353ee6..fe7a914 100644 --- a/qemu/hw/xen_machine_fv.c +++ b/qemu/hw/xen_machine_fv.c @@ -297,10 +297,14 @@ static void xen_init_fv(ram_addr_t ram_size, int vga_ram_size, #ifdef CONFIG_STUBDOM /* the hvmop is not supported on older hypervisors */ xc_set_hvm_param(xc_handle, domid, HVM_PARAM_DM_DOMAIN, DOMID_SELF); #endif + fprintf(logfile, "errno0 = %d\n", errno); + fprintf(logfile, "domid = %d\n", domid); xc_get_hvm_param(xc_handle, domid, HVM_PARAM_IOREQ_PFN, &ioreq_pfn); fprintf(logfile, "shared page at pfn %lx\n", ioreq_pfn); + fprintf(logfile, "errno1 = %d\n", errno); shared_page = xc_map_foreign_range(xc_handle, domid, XC_PAGE_SIZE, PROT_READ|PROT_WRITE, ioreq_pfn); + fprintf(logfile, "errno2 = %d\n", errno); if (shared_page == NULL) { fprintf(logfile, "map shared IO page returned error %d\n", errno); exit(-1); It seems the root issue is ioreq_pfn which is zero but I'm not sure where to go from here. -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-3-amd64 (SMP w/8 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash Versions of packages xen-utils-4.1 depends on: ii e2fslibs 1.42.5-1 ii libc6 2.13-35 ii libgnutls26 2.12.20-1 ii libncurses5 5.9-10 ii libpci3 1:3.1.9-5 ii libtinfo5 5.9-10 ii libuuid1 2.20.1-5.2 ii libxen-4.1 4.1.3-2 ii libxenstore3.0 4.1.3-2 ii python 2.7.3~rc2-1 ii python2.7 2.7.3~rc2-2.1 ii xen-utils-common 4.1.3-2 ii zlib1g 1:1.2.7.dfsg-13 Versions of packages xen-utils-4.1 recommends: ii bridge-utils 1.5-4 ii qemu-keymaps 1.1.2+dfsg-2 ii qemu-utils 1.1.2+dfsg-2 ii xen-hypervisor-4.1-amd64 [xen-hypervisor-4.1] 4.1.3-2 Versions of packages xen-utils-4.1 suggests: ii xen-docs-4.1 4.1.3-2 -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org