Port-xen archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD 5.99.22 Dom0 + xentools33 + pci export + linux domu



On 12/25/2009 11:37 PM, Christoph Egger wrote:
On 25.12.09 23:28, Juraj Hercek wrote:
On 12/25/2009 08:44 PM, Manuel Bouyer wrote:
On Fri, Dec 25, 2009 at 01:04:22PM +0100, Juraj Hercek wrote:
    ...
I have attached an output of domU dmesg and "pcictl pci0 list". I noted
one suspicious line in domU dmesg:

    xen_alloc_contig: XENMEM_decrease_reservation failed!

which comes from _xen_alloc_contig() in xen_bus_dma.c file, line 102.
Maybe this is related to the issue I have after shuting down of the
domU...

Did the USB controller work after this ?

I had to hide also 00:1d.7 (ehci thing) on dom0 boot line. Otherwise,
dom0 would take the control over USB key I tried to connect to USB port
regardless of the booted domU (Linux/NetBSD).

When I booted NetBSD domU (only 000:00:1d.0 imported), this is what I
got on screen:

umas0 at uhub0 port 1 configuration 1 interface 0
umass0: USB 2.0 USB Flash Drive, rev. 2.00/1.00, addr 2
xen_alloc_config: XENMEM_decrease_reservation failed!
umass0: no buffer memory

and domU didn't see connected USB key. Linux domU worked fine under the
same conditions.
Can you try xen-debug.gz, please? Xen should print some information
on dom0 console what is happening.


Maybe if I allow some special logging, it writes something. But if I use "loglvl=all", I won't get anything interesting in "xm dmesg", nor on dom0 console even if I use xen-debug.gz hypervisor. I've attached output of "xm dmesg" command which was run after the NetBSD domU was started, USB key was inserted, then removed and afterwards domU was shut down. It wasn't different from dmesg listing displayed right after booting dom0.

However, I had to rebuild domU NetBSD, because I was surprised a bit when I didn't get XENMEM_decrease_reservation-failed error, but instead, I got some message regarding missing scsibus. I compiled new kernel which contained also "acsibus* at scsi?" and "sd* at scsibus? target ? lun ?" lines.

After booting this domU kernel, I got working USB key in NetBSD domU, see attached dmesg output. The attachment contains the state when insertion of key triggered the XENMEM_decrease_reservation-failed error first time, but not the other times. I also had a one boot of domU when there was no XENMEM_decrease_reservation-failed error at all and key worked immediately (I was able to list directory content on it).

-- Juraj
 __  __            _____  _____  ____  
 \ \/ /___ _ __   |___ / |___ / |___ \ 
  \  // _ \ \047_ \    |_ \   |_ \   __) |
  /  \  __/ | | |  ___) | ___) | / __/ 
 /_/\_\___|_| |_| |____(_)____(_)_____|
                                       
(XEN) Xen version 3.3.2 (juraj@localdomain) (gcc version 4.4.2 (GCC) ) Mon Nov 
30 21:36:01 CET 2009
(XEN) Latest ChangeSet: unavailable
(XEN) Command line: dom0_mem=524288 cpuidle cpufreq=dom0-kernel loglvl=all
(XEN) Video information:
(XEN)  VGA is text mode 80x25, font 8x16
(XEN)  VBE/DDC methods: none; EDID transfer time: 0 seconds
(XEN)  EDID info not retrieved because no DDC retrieval method detected
(XEN) Disc information:
(XEN)  Found 1 MBR signatures
(XEN)  Found 1 EDD information structures
(XEN) Xen-e820 RAM map:
(XEN)  0000000000000000 - 000000000009f000 (usable)
(XEN)  000000000009f000 - 00000000000a0000 (reserved)
(XEN)  0000000000100000 - 000000005ffae000 (usable)
(XEN)  000000005ffae000 - 0000000060000000 (reserved)
(XEN)  00000000feda0000 - 00000000fee00000 (reserved)
(XEN)  00000000ffb00000 - 0000000100000000 (reserved)
(XEN) System RAM: 1535MB (1572148kB)
(XEN) ACPI: RSDP 000FDF00, 0014 (r0 DELL  )
(XEN) ACPI: RSDT 5FFF0000, 002C (r1 DELL    CPi R   27D5061E ASL        61)
(XEN) ACPI: FACP 5FFF0400, 0074 (r1 DELL    CPi R   27D5061E ASL        61)
(XEN) ACPI: DSDT 5FFF0C00, 2E30 (r1 INT430 SYSFexxx     1001 MSFT  100000E)
(XEN) ACPI: FACS 5FFFF800, 0040
(XEN) ACPI: ASF! 5FFF0800, 005B (r16 DELL    CPi R   27D5061E ASL        61)
(XEN) NUMA turned off
(XEN) Faking a node at 0000000000000000-000000005ffae000
(XEN) Xen heap: 9MB (9796kB)
(XEN) Domain heap initialised
(XEN) DMI 2.3 present.
(XEN) Using APIC driver default
(XEN) ACPI: PM-Timer IO Port: 0x808
(XEN) ACPI: ACPI SLEEP INFO: pm1x_cnt[804,0], pm1x_evt[800,0]
(XEN) ACPI:                  wakeup_vec[5ffff80c], vec_size[20]
(XEN) Local APIC disabled by BIOS -- you can enable it with "lapic"
(XEN) Using scheduler: SMP Credit Scheduler (credit)
(XEN) Initializing CPU#0
(XEN) Detected 1993.597 MHz processor.
(XEN) CPU: L1 I cache: 32K, L1 D cache: 32K
(XEN) CPU: L2 cache: 2048K
(XEN) CPU: Setting frequency MHz: 600, voltage mV: 700
(XEN) Intel machine check architecture supported.
(XEN) Intel machine check reporting enabled on CPU#0.
(XEN) CPU0: Intel(R) Pentium(R) M processor 2.00GHz stepping 06
(XEN) SMP motherboard not detected.
(XEN) Local APIC not detected. Using dummy APIC emulation.
(XEN) Platform timer is 3.579MHz ACPI PM Timer
(XEN) Brought up 1 CPUs
(XEN) I/O virtualisation disabled
(XEN) ACPI sleep modes: S3
(XEN) MCA: Machine check polling timer started.
(XEN) xenoprof: Initialization failed. No APIC
(XEN) *** LOADING DOMAIN 0 ***
(XEN) elf_parse_binary: phdr: paddr=0xc0100000 memsz=0x969d00
(XEN) elf_parse_binary: phdr: paddr=0xc0a6ad00 memsz=0x10881c
(XEN) elf_parse_binary: memory: 0xc0100000 -> 0xc0b7351c
(XEN) elf_xen_parse: __xen_guest: 
"GUEST_OS=netbsd,GUEST_VER=3.0,XEN_VER=xen-3.0,VIRT_BASE=0xc0000000,ELF_PADDR_OFFSET=0xc0000000,VIRT_ENTRY=0xc0100000,HYPERCALL_PAGE=0x00000101,PAE=yes[extended-cr3],LOADER=generic,BSD_SYMTAB=yes"
(XEN) elf_xen_parse_guest_info: GUEST_OS="netbsd"
(XEN) elf_xen_parse_guest_info: GUEST_VER="3.0"
(XEN) elf_xen_parse_guest_info: XEN_VER="xen-3.0"
(XEN) elf_xen_parse_guest_info: VIRT_BASE="0xc0000000"
(XEN) elf_xen_parse_guest_info: ELF_PADDR_OFFSET="0xc0000000"
(XEN) elf_xen_parse_guest_info: VIRT_ENTRY="0xc0100000"
(XEN) elf_xen_parse_guest_info: HYPERCALL_PAGE="0x00000101"
(XEN) elf_xen_parse_guest_info: PAE="yes[extended-cr3]"
(XEN) elf_xen_parse_guest_info: LOADER="generic"
(XEN) elf_xen_parse_guest_info: BSD_SYMTAB="yes"
(XEN) elf_xen_addr_calc_check: addresses:
(XEN)     virt_base        = 0xc0000000
(XEN)     elf_paddr_offset = 0xc0000000
(XEN)     virt_offset      = 0x0
(XEN)     virt_kstart      = 0xc0100000
(XEN)     virt_kend        = 0xc0c558f8
(XEN)     virt_entry       = 0xc0100000
(XEN)  Xen  kernel: 32-bit, PAE, lsb
(XEN)  Dom0 kernel: 32-bit, PAE, lsb, paddr 0xc0100000 -> 0xc0b7351c
(XEN)  Dom0 symbol map 0xc0b7351c -> 0xc0c558f8
(XEN) PHYSICAL MEMORY ARRANGEMENT:
(XEN)  Dom0 alloc.:   000000003e000000->000000003f000000 (126976 pages to be 
allocated)
(XEN) VIRTUAL MEMORY ARRANGEMENT:
(XEN)  Loaded kernel: c0100000->c0c558f8
(XEN)  Init. ramdisk: c0c56000->c0c56000
(XEN)  Phys-Mach map: c0c56000->c0cd6000
(XEN)  Start info:    c0cd6000->c0cd6474
(XEN)  Page tables:   c0cd7000->c0ce4000
(XEN)  Boot stack:    c0ce4000->c0ce5000
(XEN)  TOTAL:         c0000000->c1000000
(XEN)  ENTRY ADDRESS: c0100000
(XEN) Dom0 has maximum 1 VCPUs
(XEN) elf_load_binary: phdr 0 at 0xc0100000 -> 0xc0a69d00
(XEN) elf_load_binary: phdr 1 at 0xc0a6ad00 -> 0xc0ae0d74
(XEN) elf_load_bsdsyms: shdr 28 at 0x3ff1d2a6 -> 0xc0b73a2c
(XEN) elf_load_bsdsyms: shdr 29 at 0x3ff1d924 -> 0xc0b73bd0
(XEN) elf_load_bsdsyms: shdr 30 at 0x3ff90294 -> 0xc0be6540
(XEN) Scrubbing Free RAM: .........done.
(XEN) Xen trace buffers: disabled
(XEN) Std. Loglevel: All
(XEN) Guest Loglevel: All
(XEN) Xen is relinquishing VGA console.
(XEN) *** Serial input -> DOM0 (type \047CTRL-a\047 three times to switch input 
to Xen)
(XEN) Freed 96kB init memory.
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 5.99.22 (XEN3PAE_DOMU_XPCI) #1: Sat Dec 26 18:35:02 CET 2009
        
builder@dump:/os/netbsd/build-netbsd-i386/obj/sys/arch/i386/compile/XEN3PAE_DOMU_XPCI
total memory = 128 MB
avail memory = 119 MB
timecounter: Timecounters tick every 10.000 msec
mainbus0 (root)
hypervisor0 at mainbus0: Xen version 3.3
vcpu0 at hypervisor0: Intel 686-class, 598MHz, id 0x6d6
debug virtual interrupt using event channel 3
xenbus0 at hypervisor0: Xen Virtual Bus Interface
xencons0 at hypervisor0: Xen Virtual Console Driver
xencons0: console major 143, unit 0
xencons0: using event channel 2
npx0 at hypervisor0: using exception 16
Initializing SSP:2b5898fe 20902696 bc420071 e2057424 4c052b52 73546ab7 3a6ae9cf 
8fc03fe6 
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
Xen clock: using event channel 4
timecounter: Timecounter "xen_system_time" frequency 1000000000 Hz quality 10000
xenbus0: using event channel 1
xbd0 at xenbus0 id 1: Xen Virtual Block Device Interface
xbd0: using event channel 5
IPsec: Initialized Security Association Processing.
xennet0 at xenbus0 id 0: Xen Virtual Network Interface
xennet0: MAC address 00:16:3e:7c:e0:42
xennet0: using event channel 6
xpci0 at xenbus0 id 0: Xen PCI passthrough Interface
xpci0: using event channel 7
xbd0: 4094 MB, 512 bytes/sect x 8385930 sectors
xpci0: 1 bus
pci0 at xpci0 bus 0
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
uhci0 at pci0 dev 29 function 0: vendor 0x8086 product 0x24c2 (rev. 0x01)
uhci0: interrupting at irq 11, event channel 8
xen_alloc_contig: XENMEM_decrease_reservation failed!
usb0 at uhci0: USB revision 1.0
uhub0 at usb0: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
Kernelized RAIDframe activated
boot device: xbd0
root on xbd0a dumps on xbd0b
mountroot: trying smbfs...
mountroot: trying ntfs...
mountroot: trying nilfs...
mountroot: trying nfs...
mountroot: trying msdos...
mountroot: trying lfs...
mountroot: trying ext2fs...
mountroot: trying ffs...
root file system type: ffs
init: copying out path `/sbin/init' 11
umass0 at uhub0 port 1 configuration 1 interface 0
umass0: USB 2.0 USB Flash Drive, rev 2.00/1.00, addr 2
umass0: using SCSI over Bulk-Only
xen_alloc_contig: XENMEM_decrease_reservation failed!
umass0: no buffer memory
umass0: detached
umass0: at uhub0 port 1 (addr 2) disconnected
umass0 at uhub0 port 1 configuration 1 interface 0
umass0: USB 2.0 USB Flash Drive, rev 2.00/1.00, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
sd0 at scsibus0 target 0 lun 0: <USB 2.0, USB Flash Drive, 0.00> disk removable
sd0: 1928 MB, 500 cyl, 8 head, 32 sec, 512 bytes/sect x 3948544 sectors
sd0: detached
scsibus0: detached
umass0: detached
umass0: at uhub0 port 1 (addr 2) disconnected
umass0 at uhub0 port 1 configuration 1 interface 0
umass0: USB 2.0 USB Flash Drive, rev 2.00/1.00, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
sd0 at scsibus0 target 0 lun 0: <USB 2.0, USB Flash Drive, 0.00> disk removable
sd0: 1928 MB, 500 cyl, 8 head, 32 sec, 512 bytes/sect x 3948544 sectors
sd0: detached
scsibus0: detached
umass0: detached
umass0: at uhub0 port 1 (addr 2) disconnected


Home | Main Index | Thread Index | Old Index