Andrew Cooper:
On 05/10/16 14:02, George Dunlap wrote:
On 05/10/16 13:52, bla...@riseup.net wrote:
George Dunlap:
On Wed, Oct 5, 2016 at 11:16 AM,  <bla...@riseup.net> wrote:
Hi all,
I have been wondering if I could manage to make Xen function on my
laptop, using as dom0 my Arch Linux installation. As far as I understood
there is no currently supported package in the AUR nor, obviously, in
the official repos. What to do? Compile it by myself! I went under all
the process, in particular

% PYTHON="/usr/bin/python2" ./configure --enable-stubdom \
               --enable-systemd --prefix=/usr

% PYTHON="/usr/bin/python2" NO_WERROR=1 make dist

% sudo PYTHON="/usr/bin/python2" NO_WERROR=1 make install

After that I manually added a grub entry to boot into my dom0
chainbooted by Xen.

And it seemed I succeeded, as far as I manage to boot into my system.
Everything seem to work, except that if I look at the features of my
system

% sudo xl info

I get a discouraging indication on the total amount of ram I have on my
system

total_memory           : 1948
free_memory            : 120

while the total memory is (as measured from Arch booted without Xen)

% free -m
           total       used     free     shared  buff/cache  available
   Mem:    15924       8756     2206     737     4961        6100
   Swap:   8191        0        8191

What to do? I am very new to Xen, how can I debug it?
Thanks for your report.  Can you please attach the full output of "xl
info", as well as the output of "xl dmesg"?

Thanks,
-George
I attach the output of xl info, xl dmesg in dom0 *and* dmesg in a normal
Arch Linux boot (without Xen).
That's quite strange -- the e820 maps reported by Linux and Xen appear
to be almost completely different:

(XEN) Xen-e820 RAM map:
(XEN)  0000000000000000 - 000000000009ec00 (usable)
(XEN)  000000000009ec00 - 00000000000a0000 (reserved)
(XEN)  00000000000e0000 - 0000000000100000 (reserved)
(XEN)  0000000000100000 - 0000000079cbe000 (usable)
(XEN)  0000000079cbe000 - 00000000bcd2f000 (reserved)
(XEN)  00000000bcd2f000 - 00000000bce7f000 (ACPI NVS)
(XEN)  00000000bce7f000 - 00000000bceff000 (ACPI data)
(XEN)  00000000bceff000 - 00000000bfa00000 (reserved)
(XEN)  00000000f8000000 - 00000000fc000000 (reserved)
(XEN)  00000000fec00000 - 00000000fec01000 (reserved)
(XEN)  00000000fed08000 - 00000000fed09000 (reserved)
(XEN)  00000000fed10000 - 00000000fed1a000 (reserved)
(XEN)  00000000fed1c000 - 00000000fed20000 (reserved)
(XEN)  00000000fee00000 - 00000000fee01000 (reserved)
(XEN)  00000000ffc00000 - 000000043e600000 (reserved)

BIOS-e820: [mem 0x0000000000000000-0x0000000000057fff] usable
BIOS-e820: [mem 0x0000000000058000-0x0000000000058fff] reserved
BIOS-e820: [mem 0x0000000000059000-0x000000000008bfff] usable
BIOS-e820: [mem 0x000000000008c000-0x00000000000bffff] reserved
BIOS-e820: [mem 0x00000000000e0000-0x00000000000fffff] reserved
BIOS-e820: [mem 0x0000000000100000-0x000000007b82dfff] usable
BIOS-e820: [mem 0x000000007b82e000-0x000000007ba2ffff] reserved
BIOS-e820: [mem 0x000000007ba30000-0x00000000ba1fcfff] usable
BIOS-e820: [mem 0x00000000ba1fd000-0x00000000ba3fcfff] type 20
BIOS-e820: [mem 0x00000000ba3fd000-0x00000000bcd2efff] reserved
BIOS-e820: [mem 0x00000000bcd2f000-0x00000000bce7efff] ACPI NVS
BIOS-e820: [mem 0x00000000bce7f000-0x00000000bcefefff] ACPI data
BIOS-e820: [mem 0x00000000bceff000-0x00000000bcefffff] usable
BIOS-e820: [mem 0x00000000bcf00000-0x00000000bf9fffff] reserved
BIOS-e820: [mem 0x00000000f80f8000-0x00000000f80f8fff] reserved
BIOS-e820: [mem 0x00000000fed1c000-0x00000000fed1ffff] reserved
BIOS-e820: [mem 0x0000000100000000-0x000000043e5fffff] usable

With the key thing being that Xen's version has the range from ~2G-3G
and 4G-17G as 'reserved', while Linux's version has those ranges as
'usable'.

Jan / Andy, any idea what's going on here?

Not specifically.  Can you boot with e820-verbose on the Xen command
line, which will provide more information?


Here it comes xl dmesg with Xen booted with e820-verbose=true

Thanks

--
Leonardo
 __  __            _  _   _____ ___  
 \ \/ /___ _ __   | || | |___  / _ \ 
  \  // _ \ '_ \  | || |_   / / | | |
  /  \  __/ | | | |__   _| / /| |_| |
 /_/\_\___|_| |_|    |_|(_)_/(_)___/ 
                                     
(XEN) Xen version 4.7.0 (root@) (gcc (GCC) 6.2.1 20160830) debug=n Thu Sep 29 
15:21:36 CEST 2016
(XEN) Latest ChangeSet: 
(XEN) Bootloader: GRUB 2.02~beta3
(XEN) Command line: e820-verbose=true
(XEN) Video information:
(XEN)  VGA is text mode 80x25, font 8x16
(XEN)  VBE/DDC methods: V2; EDID transfer time: 1 seconds
(XEN) Disc information:
(XEN)  Found 0 MBR signatures
(XEN)  Found 0 EDD information structures
(XEN) Initial Xen-e820 RAM map:
(XEN)  0000000000000000 - 000000000009ec00 (usable)
(XEN)  000000000009ec00 - 00000000000a0000 (reserved)
(XEN)  00000000000e0000 - 0000000000100000 (reserved)
(XEN)  0000000000100000 - 0000000079cbe000 (usable)
(XEN)  0000000079cbe000 - 00000000bcd2f000 (reserved)
(XEN)  00000000bcd2f000 - 00000000bce7f000 (ACPI NVS)
(XEN)  00000000bce7f000 - 00000000bceff000 (ACPI data)
(XEN)  00000000bceff000 - 00000000bfa00000 (reserved)
(XEN)  00000000f8000000 - 00000000fc000000 (reserved)
(XEN)  00000000fec00000 - 00000000fec01000 (reserved)
(XEN)  00000000fed08000 - 00000000fed09000 (reserved)
(XEN)  00000000fed10000 - 00000000fed18000 (reserved)
(XEN)  00000000fed18000 - 00000000fed19000 (reserved)
(XEN)  00000000fed19000 - 00000000fed1a000 (reserved)
(XEN)  00000000fed1c000 - 00000000fed20000 (reserved)
(XEN)  00000000fee00000 - 00000000fee01000 (reserved)
(XEN)  00000000ffc00000 - 0000000100000000 (reserved)
(XEN)  0000000100000000 - 000000043e600000 (reserved)
(XEN) Checking MTRR ranges...
(XEN)  MTRR cap: d0a type: c06
(XEN) Xen-e820 RAM map:
(XEN)  0000000000000000 - 000000000009ec00 (usable)
(XEN)  000000000009ec00 - 00000000000a0000 (reserved)
(XEN)  00000000000e0000 - 0000000000100000 (reserved)
(XEN)  0000000000100000 - 0000000079cbe000 (usable)
(XEN)  0000000079cbe000 - 00000000bcd2f000 (reserved)
(XEN)  00000000bcd2f000 - 00000000bce7f000 (ACPI NVS)
(XEN)  00000000bce7f000 - 00000000bceff000 (ACPI data)
(XEN)  00000000bceff000 - 00000000bfa00000 (reserved)
(XEN)  00000000f8000000 - 00000000fc000000 (reserved)
(XEN)  00000000fec00000 - 00000000fec01000 (reserved)
(XEN)  00000000fed08000 - 00000000fed09000 (reserved)
(XEN)  00000000fed10000 - 00000000fed1a000 (reserved)
(XEN)  00000000fed1c000 - 00000000fed20000 (reserved)
(XEN)  00000000fee00000 - 00000000fee01000 (reserved)
(XEN)  00000000ffc00000 - 000000043e600000 (reserved)
(XEN) System RAM: 1948MB (1995120kB)
(XEN) ACPI: RSDP 000F0120, 0024 (r2 LENOVO)
(XEN) ACPI: XSDT BCEFE170, 00E4 (r1 LENOVO TP-GM        2040 PTEC        2)
(XEN) ACPI: FACP BCEF8000, 010C (r5 LENOVO TP-GM        2040 PTEC        2)
(XEN) ACPI: DSDT BCEE1000, 119F3 (r1 LENOVO TP-GM        2040 INTL 20120711)
(XEN) ACPI: FACS BCE4A000, 0040
(XEN) ACPI: SLIC BCEFD000, 0176 (r1 LENOVO TP-GM        2040 PTEC        1)
(XEN) ACPI: DBGP BCEFB000, 0034 (r1 LENOVO TP-GM        2040 PTEC        2)
(XEN) ACPI: ECDT BCEFA000, 0052 (r1 LENOVO TP-GM        2040 PTEC        2)
(XEN) ACPI: HPET BCEF7000, 0038 (r1 LENOVO TP-GM        2040 PTEC        2)
(XEN) ACPI: APIC BCEF6000, 0098 (r1 LENOVO TP-GM        2040 PTEC        2)
(XEN) ACPI: MCFG BCEF5000, 003C (r1 LENOVO TP-GM        2040 PTEC        2)
(XEN) ACPI: SSDT BCEF4000, 0033 (r1 LENOVO TP-SSDT1      100 INTL 20120711)
(XEN) ACPI: SSDT BCEF3000, 044F (r1 LENOVO TP-SSDT2      200 INTL 20120711)
(XEN) ACPI: SSDT BCEE0000, 0B78 (r1 LENOVO SataAhci     1000 INTL 20120711)
(XEN) ACPI: SSDT BCEDF000, 07D3 (r1 LENOVO  Cpu0Ist     3000 INTL 20120711)
(XEN) ACPI: SSDT BCEDE000, 0AD8 (r1 LENOVO    CpuPm     3000 INTL 20120711)
(XEN) ACPI: SSDT BCEDC000, 1215 (r1 LENOVO  SaSsdt      3000 INTL 20120711)
(XEN) ACPI: SSDT BCEDB000, 0379 (r1 LENOVO CppcTabl     1000 INTL 20120711)
(XEN) ACPI: PCCT BCEDA000, 006E (r5 LENOVO TP-GM        2040 PTEC        2)
(XEN) ACPI: SSDT BCED9000, 0AC4 (r1 LENOVO Cpc_Tabl     1000 INTL 20120711)
(XEN) ACPI: TCPA BCED8000, 0032 (r2    PTL   LENOVO  6040000 LNVO        1)
(XEN) ACPI: UEFI BCED7000, 0042 (r1 LENOVO TP-GM        2040 PTEC        2)
(XEN) ACPI: MSDM BCDB2000, 0055 (r3 LENOVO TP-GM        2040 PTEC        2)
(XEN) ACPI: ASF! BCEFC000, 00A5 (r32 LENOVO TP-GM        2040 PTEC        2)
(XEN) ACPI: BATB BCED6000, 0046 (r1 LENOVO TP-GM        2040 PTEC        2)
(XEN) ACPI: FPDT BCED5000, 0064 (r1 LENOVO TP-GM        2040 PTEC        2)
(XEN) ACPI: UEFI BCED4000, 02E2 (r1 LENOVO TP-GM        2040 PTEC        2)
(XEN) ACPI: SSDT BCED3000, 047F (r1 LENOVO IsctTabl     1000 INTL 20120711)
(XEN) Domain heap initialised
(XEN) ACPI: 32/64X FACS address mismatch in FADT - bce4a000/0000000000000000, 
using 32
(XEN) IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-23
(XEN) Enabling APIC mode:  Flat.  Using 1 I/O APICs
(XEN) xstate_init: using cntxt_size: 0x340 and states: 0x7
(XEN) Using scheduler: SMP Credit Scheduler (credit)
(XEN) Detected 2394.474 MHz processor.
(XEN) Initing memory sharing.
(XEN) I/O virtualisation disabled
(XEN) Enabled directed EOI with ioapic_ack_old on!
(XEN) ENABLING IO-APIC IRQs
(XEN)  -> Using old ACK method
(XEN) Platform timer is 14.318MHz HPET
(XEN) Allocated console ring of 16 KiB.
(XEN) VMX: Supported advanced features:
(XEN)  - APIC MMIO access virtualisation
(XEN)  - APIC TPR shadow
(XEN)  - Extended Page Tables (EPT)
(XEN)  - Virtual-Processor Identifiers (VPID)
(XEN)  - Virtual NMI
(XEN)  - MSR direct-access bitmap
(XEN)  - Unrestricted Guest
(XEN)  - VM Functions
(XEN) HVM: ASIDs enabled.
(XEN) HVM: VMX enabled
(XEN) HVM: Hardware Assisted Paging (HAP) detected
(XEN) HVM: HAP page sizes: 4kB, 2MB, 1GB
(XEN) Brought up 8 CPUs
(XEN) Dom0 has maximum 792 PIRQs
(XEN) *** LOADING DOMAIN 0 ***
(XEN)  Xen  kernel: 64-bit, lsb, compat32
(XEN)  Dom0 kernel: 64-bit, PAE, lsb, paddr 0x1000000 -> 0x1b7e000
(XEN) PHYSICAL MEMORY ARRANGEMENT:
(XEN)  Dom0 alloc.:   0000000072000000->0000000074000000 (443310 pages to be 
allocated)
(XEN)  Init. ramdisk: 00000000770aa000->00000000797ffe00
(XEN) VIRTUAL MEMORY ARRANGEMENT:
(XEN)  Loaded kernel: ffffffff81000000->ffffffff81b7e000
(XEN)  Init. ramdisk: 0000000000000000->0000000000000000
(XEN)  Phys-Mach map: 0000008000000000->0000008000385820
(XEN)  Start info:    ffffffff81b7e000->ffffffff81b7e4b4
(XEN)  Page tables:   ffffffff81b7f000->ffffffff81b92000
(XEN)  Boot stack:    ffffffff81b92000->ffffffff81b93000
(XEN)  TOTAL:         ffffffff80000000->ffffffff82000000
(XEN)  ENTRY ADDRESS: ffffffff8190e180
(XEN) Dom0 has maximum 8 VCPUs
(XEN) Scrubbing Free RAM on 1 nodes using 4 CPUs
(XEN) ....done.
(XEN) Initial low memory virq threshold set at 0x4000 pages.
(XEN) Std. Loglevel: Errors and warnings
(XEN) Guest Loglevel: Nothing (Rate-limited: Errors and warnings)
(XEN) Xen is relinquishing VGA console.
(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to 
Xen)
(XEN) Freed 308kB init memory.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

Reply via email to