Bug #5230


illumos incorrectly detects 256 cpus as HVM guest on Xen 4.2.1

Added by MJ Anthony over 8 years ago. Updated almost 6 years ago.

Start date:
Due date:
% Done:


Estimated time:
Gerrit CR:
External Bug:


NOTICE: System detected 256 cpus, but only 1 cpu(s) were enabled during boot.
NOTICE: Use "boot-ncpus" parameter to enable more CPU. See eeprom(1M).

Full Console output:

module /platform/i86pc/kernel/amd64/unix: text at [0xfffffffffb800000, 0xfffffffffb96563b] data at 0xfffffffffbc00000
module /kernel/amd64/genunix: text at [0xfffffffffb965640, 0xfffffffffbbedfaf] data at 0xfffffffffbc95640
Loading kmdb...
module /kernel/misc/amd64/kmdbmod: text at [0xfffffffffbd05610, 0xfffffffffbdbc577] data at 0xfffffffffbdbc580
module /kernel/misc/amd64/ctf: text at [0xfffffffffbbedfb0, 0xfffffffffbbf8907] data at 0xfffffffffbdd85c0

Welcome to kmdb
kmdb: unable to determine terminal type: assuming `vt100'
Loaded modules: [ unix krtld genunix ]
[0]> :c
OpenIndiana Build oi_151a8 64-bit (illumos 7256a34efe)
SunOS Release 5.11 - Copyright 1983-2010 Oracle and/or its affiliates.
All rights reserved. Use is subject to license terms.
x86_feature: lgpg
x86_feature: tsc
x86_feature: msr
x86_feature: mtrr
x86_feature: pge
x86_feature: de
x86_feature: cmov
x86_feature: mmx
x86_feature: mca
x86_feature: pae
x86_feature: cv8
x86_feature: pat
x86_feature: sep
x86_feature: sse
x86_feature: sse2
x86_feature: htt
x86_feature: asysc
x86_feature: nx
x86_feature: sse3
x86_feature: cx16
x86_feature: cmp
x86_feature: tscp
x86_feature: cpuid
x86_feature: ssse3
x86_feature: sse4_1
x86_feature: sse4_2
x86_feature: clfsh
x86_feature: 64
x86_feature: pclmulqdq
x86_feature: xsave
x86_feature: rdrand
mem = 1740408K (0x6a39e000)
SMBIOS v2.4 loaded (300 bytes)root nexus = i86pc
pseudo0 at root
pseudo0 is /pseudo
scsi_vhci0 at root
scsi_vhci0 is /scsi_vhci
Reading Intel IOMMU boot options
pci0 at root: space 0 offset 0
pci0 is /pci@0,0
PCI-device: isa@1, isa0
PCI-device: pci5853,1@3, xpv0
xpv0 is /pci@0,0/pci5853,1@3
xpvd0 at root
xdf@768, xdf0
xdf0 is /xpvd/xdf@768
/xpvd/xdf@768 (xdf0) online
xdf@768: 16777216 blocksxdf@51728, xdf4
xdf4 is /xpvd/xdf@51728
/xpvd/xdf@51728 (xdf4) online
xdf@51728: 16384000 blocksxdf@5632, xdf1
xdf1 is /xpvd/xdf@5632
/xpvd/xdf@5632 (xdf1) online
xdf@5632: 1016824 blocks/xpvd/xnf@0 (xnf0) online
pseudo-device: acpippm0
acpippm0 is /pseudo/acpippm@0
pseudo-device: ppm0
ppm0 is /pseudo/ppm@0
IDE device at targ 0, lun 0 lastlun 0x0
ATA/ATAPI-7 supported, majver 0xf0 minver 0x16
PCI-device: ide@0, ata0
ata0 is /pci@0,0/pci-ide@1,1/ide@0
UltraDMA mode 5 selected
cmdk0 at ata0 target 0 lun 0
cmdk0 is /pci@0,0/pci-ide@1,1/ide@0/cmdk@0,0
root on rpool/ROOT/openindiana fstype zfs
/cpus (cpunex0) online
pseudo-device: dld0
dld0 is /pseudo/dld@0
ISA-device: asy0
asy0 is /pci@0,0/isa@1/asy@1,3f8
8042 device: keyboard@0, kb8042 # 0
kb80420 is /pci@0,0/isa@1/i8042@1,60/keyboard@0
8042 device: mouse@1, mouse8042 # 0
mouse80420 is /pci@0,0/isa@1/i8042@1,60/mouse@1
cpu0: x86 (chipid 0x0 GenuineIntel 306C3 family 6 model 60 step 3 clock 2993 MHz)
cpu0: Intel(r) Pentium(r) CPU G3220 @ 3.00GHz
NOTICE: System detected 256 cpus, but only 1 cpu(s) were enabled during boot.
NOTICE: Use "boot-ncpus" parameter to enable more CPU. See eeprom(1M).
pseudo-device: stmf_sbd0
stmf_sbd0 is /pseudo/stmf_sbd@0
pseudo-device: audio0
audio0 is /pseudo/audio@0

xm dmesg output:

 __  __            _  _    ____    _ 
 \\ \\/ /___ _ __   | || |  |___ \\  / |
  \\  // _ \\ '_ \\  | || |_   __) | | |
  /  \\  __/ | | | |__   _| / __/ _| |
 /_/\\_\\___|_| |_|    |_|(_)_____(_)_|

(XEN) Xen version 4.2.1 (root@localhost) (gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3) Wed Oct  1 00:00:25 EST 2014
(XEN) Latest ChangeSet: unavailable
(XEN) Bootloader: GRUB 1.99-21ubuntu3.17
(XEN) Command line: placeholder
(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 1 MBR signatures
(XEN)  Found 1 EDD information structures
(XEN) Xen-e820 RAM map:
(XEN)  0000000000000000 - 000000000009d800 (usable)
(XEN)  000000000009d800 - 00000000000a0000 (reserved)
(XEN)  00000000000e0000 - 0000000000100000 (reserved)
(XEN)  0000000000100000 - 00000000d22ba000 (usable)
(XEN)  00000000d22ba000 - 00000000d22c1000 (ACPI NVS)
(XEN)  00000000d22c1000 - 00000000d26f0000 (usable)
(XEN)  00000000d26f0000 - 00000000d2b06000 (reserved)
(XEN)  00000000d2b06000 - 00000000d7ee5000 (usable)
(XEN)  00000000d7ee5000 - 00000000d8000000 (reserved)
(XEN)  00000000d8000000 - 00000000d875f000 (usable)
(XEN)  00000000d875f000 - 00000000d8800000 (reserved)
(XEN)  00000000d8800000 - 00000000d8fae000 (usable)
(XEN)  00000000d8fae000 - 00000000d9000000 (ACPI data)
(XEN)  00000000d9000000 - 00000000da71c000 (usable)
(XEN)  00000000da71c000 - 00000000da800000 (ACPI NVS)
(XEN)  00000000da800000 - 00000000db836000 (usable)
(XEN)  00000000db836000 - 00000000dc000000 (reserved)
(XEN)  00000000dd000000 - 00000000df200000 (reserved)
(XEN)  00000000f8000000 - 00000000fc000000 (reserved)
(XEN)  00000000fec00000 - 00000000fec01000 (reserved)
(XEN)  00000000fed00000 - 00000000fed04000 (reserved)
(XEN)  00000000fed1c000 - 00000000fed20000 (reserved)
(XEN)  00000000fee00000 - 00000000fee01000 (reserved)
(XEN)  00000000ff000000 - 0000000100000000 (reserved)
(XEN)  0000000100000000 - 000000041fe00000 (usable)
(XEN) ACPI: RSDP 000F0490, 0024 (r2 DELL  )
(XEN) ACPI: XSDT D8FEE080, 007C (r1 DELL    CBX3     1072009 AMI     10013)
(XEN) ACPI: FACP D8FFA448, 010C (r5 DELL    CBX3     1072009 AMI     10013)
(XEN) ACPI Warning (tbfadt-0232): FADT (revision 5) is longer than ACPI 2.0 version, truncating length 0x10C to 0xF4 [20070126]
(XEN) ACPI: DSDT D8FEE188, C2BE (r2 DELL    CBX3          14 INTL 20091112)
(XEN) ACPI: FACS DA7FE080, 0040
(XEN) ACPI: APIC D8FFA558, 0062 (r3 DELL    CBX3     1072009 AMI     10013)
(XEN) ACPI: FPDT D8FFA5C0, 0044 (r1 DELL    CBX3     1072009 AMI     10013)
(XEN) ACPI: SLIC D8FFA608, 0176 (r3 DELL    CBX3     1072009 MSFT    10013)
(XEN) ACPI: SSDT D8FFA780, 0539 (r1  PmRef  Cpu0Ist     3000 INTL 20120711)
(XEN) ACPI: SSDT D8FFACC0, 0AD8 (r1  PmRef    CpuPm     3000 INTL 20120711)
(XEN) ACPI: SSDT D8FFB798, 01C7 (r1  PmRef LakeTiny     3000 INTL 20120711)
(XEN) ACPI: HPET D8FFB960, 0038 (r1 DELL    CBX3     1072009 AMI.        5)
(XEN) ACPI: SSDT D8FFB998, 036D (r1 SataRe SataTabl     1000 INTL 20120711)
(XEN) ACPI: MCFG D8FFBD08, 003C (r1 DELL    CBX3     1072009 MSFT       97)
(XEN) ACPI: SSDT D8FFBD48, 3528 (r1 SaSsdt  SaSsdt      3000 INTL 20091112)
(XEN) System RAM: 16302MB (16694032kB)
(XEN) Domain heap initialised
(XEN) ACPI: 32/64X FACS address mismatch in FADT - da7fe080/0000000000000000, using 32
(XEN) Processor #0 7:12 APIC version 21
(XEN) Processor #2 7:12 APIC version 21
(XEN) IOAPIC[0]: apic_id 8, version 32, address 0xfec00000, GSI 0-23
(XEN) Enabling APIC mode:  Flat.  Using 1 I/O APICs
(XEN) Table is not found!
(XEN) Using scheduler: SMP Credit Scheduler (credit)
(XEN) Detected 2993.154 MHz processor.
(XEN) Initing memory sharing.
(XEN) xstate_init: using cntxt_size: 0x240 and states: 0x3
(XEN) I/O virtualisation disabled
(XEN) Enabled directed EOI with ioapic_ack_old on!
(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) 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 2 CPUs
(XEN)  Xen  kernel: 64-bit, lsb, compat32
(XEN)  Dom0 kernel: 64-bit, PAE, lsb, paddr 0x1000000 -> 0x234a000
(XEN)  Dom0 alloc.:   0000000408000000->0000000410000000 (4049800 pages to be allocated)
(XEN)  Init. ramdisk: 000000041d1dd000->000000041fe00000
(XEN)  Loaded kernel: ffffffff81000000->ffffffff8234a000
(XEN)  Init. ramdisk: ffffffff8234a000->ffffffff84f6d000
(XEN)  Phys-Mach map: ffffffff84f6d000->ffffffff86ea8d58
(XEN)  Start info:    ffffffff86ea9000->ffffffff86ea94b4
(XEN)  Page tables:   ffffffff86eaa000->ffffffff86ee5000
(XEN)  Boot stack:    ffffffff86ee5000->ffffffff86ee6000
(XEN)  TOTAL:         ffffffff80000000->ffffffff87000000
(XEN)  ENTRY ADDRESS: ffffffff81d06210
(XEN) Dom0 has maximum 2 VCPUs
(XEN) Scrubbing Free RAM: .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 240kB init memory.
(XEN) no cpu_id for acpi_id 3
(XEN) no cpu_id for acpi_id 4

Related issues

Related to illumos gate - Bug #8079: temporarily disable apix module on Xen HVM platformClosedYuri Pankov2017-04-17

Actions #1

Updated by Michal Nowak almost 6 years ago

I don't see it anymore, I guess it's gone with the "temporary" disabling of apix module on Xen via #8079.

Actions #2

Updated by Michal Nowak almost 6 years ago

  • Related to Bug #8079: temporarily disable apix module on Xen HVM platform added
Actions #3

Updated by Yuri Pankov almost 6 years ago

  • Description updated (diff)
Actions #4

Updated by Yuri Pankov almost 6 years ago

For that change to be related you'd have to successfully boot with apix enabled first, and that's not something possible at the moment (or was back then).

Actions #5

Updated by Yuri Pankov almost 6 years ago

  • Description updated (diff)

Also available in: Atom PDF