22:48:37 # 2 :/mnt/lab/latest/ > more pv-2.xm kernel="/mnt/lab/latest/vmlinuz" ramdisk="/mnt/lab/latest/initramfs.cpio.gz" extra="console=hvc0 debug iommu=soft swiotlb=force" memory=800 vcpus=1 cpus='2' on_crash="preserve" #vif = [ 'mac=00:0F:4B:00:00:68, bridge=switch' ] #pci = ["04:00.0"] vfb = [ 'vnc=1, vnclisten=0.0.0.0,vncunused=1'] 22:48:40 # 3 :/mnt/lab/latest/ > xm create -c pv-2.xm Using config file "./pv-2.xm". Started domain pv-2.xm (id=4) [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 2.6.38-rc2-00045-gcb81bee (konrad@phenom) (gcc version 4.4.4 20100503 (Red Hat 4.4.4-2) (GCC) ) #1 SMP Mon Feb 7 17:28:33 EST 2011 [ 0.000000] Command line: console=hvc0 debug iommu=soft swiotlb=force [ 0.000000] ACPI in unprivileged domain disabled [ 0.000000] released 0 pages of unused memory [ 0.000000] Set 0 page(s) to 1-1 mapping. [ 0.000000] BIOS-provided physical RAM map: [ 0.000000] Xen: 0000000000000000 - 00000000000a0000 (usable) [ 0.000000] Xen: 00000000000a0000 - 0000000000100000 (reserved) [ 0.000000] Xen: 0000000000100000 - 0000000032800000 (usable) [ 0.000000] NX (Execute Disable) protection: active [ 0.000000] DMI not present or invalid. [ 0.000000] e820 update range: 0000000000000000 - 0000000000010000 (usable) ==> (reserved) [ 0.000000] e820 remove range: 00000000000a0000 - 0000000000100000 (usable) [ 0.000000] No AGP bridge found [ 0.000000] last_pfn = 0x32800 max_arch_pfn = 0x400000000 [ 0.000000] Scanning 0 areas for low memory corruption [ 0.000000] initial memory mapped : 0 - 0e3ff000 [ 0.000000] init_memory_mapping: 0000000000000000-0000000032800000 [ 0.000000] 0000000000 - 0032800000 page 4k [ 0.000000] kernel direct mapping tables up to 32800000 @ e269000-e3ff000 [ 0.000000] RAMDISK: 01b5c000 - 0d824000 [ 0.000000] No NUMA configuration found [ 0.000000] Faking a node at 0000000000000000-0000000032800000 [ 0.000000] Initmem setup node 0 0000000000000000-0000000032800000 [ 0.000000] NODE_DATA [0000000031ffb000 - 0000000031ffffff] [ 0.000000] Zone PFN ranges: [ 0.000000] DMA 0x00000010 -> 0x00001000 [ 0.000000] DMA32 0x00001000 -> 0x00100000 [ 0.000000] Normal empty [ 0.000000] Movable zone start PFN for each node [ 0.000000] early_node_map[2] active PFN ranges [ 0.000000] 0: 0x00000010 -> 0x000000a0 [ 0.000000] 0: 0x00000100 -> 0x00032800 [ 0.000000] On node 0 totalpages: 206736 [ 0.000000] DMA zone: 56 pages used for memmap [ 0.000000] DMA zone: 6 pages reserved [ 0.000000] DMA zone: 3922 pages, LIFO batch:0 [ 0.000000] DMA32 zone: 2772 pages used for memmap [ 0.000000] DMA32 zone: 199980 pages, LIFO batch:31 [ 0.000000] SMP: Allowing 1 CPUs, 0 hotplug CPUs [ 0.000000] No local APIC present [ 0.000000] APIC: disable apic facility [ 0.000000] APIC: switched to apic NOOP [ 0.000000] nr_irqs_gsi: 16 [ 0.000000] PM: Registered nosave memory: 00000000000a0000 - 0000000000100000 [ 0.000000] Allocating PCI resources starting at 32800000 (gap: 32800000:cd800000) [ 0.000000] Booting paravirtualized kernel on Xen [ 0.000000] Xen version: 4.1-110207 (preserve-AD) [ 0.000000] setup_percpu: NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:1 nr_node_ids:1 [ 0.000000] PERCPU: Embedded 28 pages/cpu @ffff880031fce000 s83136 r8192 d23360 u114688 [ 0.000000] pcpu-alloc: s83136 r8192 d23360 u114688 alloc=28*4096 [ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] Built 1 zonelists in Node order, mobility grouping on. Total pages: 203902 [ 0.000000] Policy zone: DMA32 [ 0.000000] Kernel command line: console=hvc0 debug iommu=soft swiotlb=force [ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes) [ 0.000000] Placing 64MB software IO TLB between ffff88002c800000 - ffff880030800000 [ 0.000000] software IO TLB at phys 0x2c800000 - 0x30800000 [ 0.000000] Memory: 532972k/827392k available (4423k kernel code, 448k absent, 293972k reserved, 4281k data, 644k init) [ 0.000000] SLUB: Genslabs=15, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] Hierarchical RCU implementation. [ 0.000000] RCU-based detection of stalled CPUs is disabled. [ 0.000000] NR_IRQS:4352 nr_irqs:256 16 [ 0.000000] Console: colour dummy device 80x25 [ 0.000000] console [tty0] enabled [ 0.000000] console [hvc0] enabled [ 0.000000] Xen: using vcpuop timer interface [ 0.000000] installing Xen timer for CPU 0 [ 0.000000] Detected 3000.180 MHz processor. [ 0.000999] Calibrating delay loop (skipped), value calculated using timer frequency.. 6000.36 BogoMIPS (lpj=3000180) [ 0.000999] pid_max: default: 32768 minimum: 301 [ 0.000999] Security Framework initialized [ 0.000999] SELinux: Initializing. [ 0.000999] SELinux: Starting in permissive mode [ 0.000999] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes) [ 0.000999] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes) [ 0.000999] Mount-cache hash table entries: 256 [ 0.000999] Initializing cgroup subsys ns [ 0.000999] ns_cgroup deprecated: consider using the 'clone_children' flag without the ns_cgroup. [ 0.000999] Initializing cgroup subsys cpuacct [ 0.000999] Initializing cgroup subsys freezer [ 0.001033] tseg: 0000000000 [ 0.001042] CPU: Physical Processor ID: 0 [ 0.001047] CPU: Processor Core ID: 1 [ 0.001109] SMP alternatives: switching to UP code [ 0.002017] Freeing SMP alternatives: 16k freed [ 0.002096] cpu 0 spinlock event irq 17 [ 0.002114] Performance Events: [ 0.002119] no APIC, boot with the "lapic" boot parameter to force-enable it. [ 0.002126] no hardware sampling interrupt available. [ 0.002156] Broken PMU hardware detected, using software events only. [ 0.002326] MCE: In-kernel MCE decoding enabled. [ 0.002334] Brought up 1 CPUs [ 0.002511] kworker/u:0 used greatest stack depth: 6032 bytes left [ 0.003097] Grant table initialized [ 0.022107] Time: 165:165:165 Date: 165/165/65 [ 0.022180] NET: Registered protocol family 16 [ 0.022633] kworker/u:0 used greatest stack depth: 5768 bytes left [ 0.022770] Extended Config Space enabled on 0 nodes [ 0.022803] PCI: setting up Xen PCI frontend stub [ 0.022803] PCI: pci_cache_line_size set to 64 bytes [ 0.029306] bio: create slab at 0 [ 0.029431] ACPI: Interpreter disabled. [ 0.031042] xen_balloon: Initialising balloon driver. [ 0.031122] last_pfn = 0x32800 max_arch_pfn = 0x400000000 [ 0.031160] vgaarb: loaded [ 0.031406] usbcore: registered new interface driver usbfs [ 0.031458] usbcore: registered new interface driver hub [ 0.031519] usbcore: registered new device driver usb [ 0.031756] PCI: System does not support PCI [ 0.031763] PCI: System does not support PCI [ 0.032190] NetLabel: Initializing [ 0.032197] NetLabel: domain hash size = 128 [ 0.032202] NetLabel: protocols = UNLABELED CIPSOv4 [ 0.032218] NetLabel: unlabeled traffic allowed by default [ 0.032412] Switching to clocksource xen [ 0.034122] pnp: PnP ACPI: disabled [ 0.038531] NET: Registered protocol family 2 [ 0.038650] IP route cache hash table entries: 32768 (order: 6, 262144 bytes) [ 0.039224] TCP established hash table entries: 131072 (order: 9, 2097152 bytes) [ 0.040199] TCP bind hash table entries: 65536 (order: 9, 2097152 bytes) [ 0.040889] TCP: Hash tables configured (established 131072 bind 65536) [ 0.040899] TCP reno registered [ 0.040919] UDP hash table entries: 512 (order: 3, 49152 bytes) [ 0.040948] UDP-Lite hash table entries: 512 (order: 3, 49152 bytes) [ 0.041018] NET: Registered protocol family 1 [ 0.041229] RPC: Registered udp transport module. [ 0.041235] RPC: Registered tcp transport module. [ 0.041240] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.041247] PCI: CLS 0 bytes, default 64 [ 0.041394] Trying to unpack rootfs image as initramfs... [ 0.328808] Freeing initrd memory: 193312k freed [ 0.394814] platform rtc_cmos: registered platform RTC device (no PNP device found) [ 0.395166] Machine check injector initialized [ 0.395517] microcode: CPU0: patch_level=0x1000086 [ 0.395578] microcode: Microcode Update Driver: v2.00 , Peter Oruba [ 0.395587] Scanning for low memory corruption every 60 seconds [ 0.395909] audit: initializing netlink socket (disabled) [ 0.395928] type=2000 audit(1297118949.293:1): initialized [ 0.403884] HugeTLB registered 2 MB page size, pre-allocated 0 pages [ 0.408118] VFS: Disk quotas dquot_6.5.2 [ 0.408294] Dquot-cache hash table entries: 512 (order 0, 4096 bytes) [ 0.408798] NTFS driver 2.1.30 [Flags: R/W]. [ 0.408997] msgmni has been set to 1418 [ 0.409138] SELinux: Registering netfilter hooks [ 0.409543] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253) [ 0.409553] io scheduler noop registered [ 0.409558] io scheduler deadline registered [ 0.409629] io scheduler cfq registered (default) [ 0.409810] pci_hotplug: PCI Hot Plug PCI Core version: 0.5 [ 0.446576] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled [ 0.447352] Non-volatile memory driver v1.3 [ 0.447361] Linux agpgart interface v0.103 [ 0.447579] [drm] Initialized drm 1.1.0 20060810 [ 0.449911] brd: module loaded [ 0.450994] loop: module loaded [ 0.451244] Fixed MDIO Bus: probed [ 0.451334] tun: Universal TUN/TAP device driver, 1.6 [ 0.451341] tun: (C) 1999-2004 Max Krasnyansky [ 0.451580] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 0.451589] ehci_hcd: block sizes: qh 104 qtd 96 itd 192 sitd 96 [ 0.451646] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 0.451653] ohci_hcd: block sizes: ed 80 td 96 [ 0.451701] uhci_hcd: USB Universal Host Controller Interface driver [ 0.451879] usbcore: registered new interface driver usblp [ 0.451929] usbcore: registered new interface driver libusual [ 0.452119] i8042: PNP: No PS/2 controller found. Probing ports directly. [ 0.452944] i8042: No controller found [ 0.453024] mousedev: PS/2 mouse device common for all mice [ 0.453360] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0 [ 0.453440] rtc_cmos: probe of rtc_cmos failed with error -38 [ 0.453629] cpuidle: using governor ladder [ 0.453636] cpuidle: using governor menu [ 0.453746] Netfilter messages via NETLINK v0.30. [ 0.453769] nf_conntrack version 0.5.0 (5674 buckets, 22696 max) [ 0.453908] ctnetlink v0.93: registering with nfnetlink. [ 0.454385] ip_tables: (C) 2000-2006 Netfilter Core Team [ 0.454419] TCP cubic registered [ 0.454424] Initializing XFRM netlink socket [ 0.454743] NET: Registered protocol family 10 [ 0.455501] ip6_tables: (C) 2000-2006 Netfilter Core Team [ 0.455556] IPv6 over IPv4 tunneling driver [ 0.456227] NET: Registered protocol family 17 [ 0.456265] Registering the dns_resolver key type [ 0.456501] PM: Hibernation image not present or could not be loaded. [ 0.456520] registered taskstats version 1 [ 0.456533] XENBUS: Device with no driver: device/vkbd/0 [ 0.456538] XENBUS: Device with no driver: device/vfb/0 [ 0.456543] XENBUS: Device with no driver: device/console/0 [ 0.456558] Magic number: 1:252:3141 [ 0.457000] Freeing unused kernel memory: 644k freed [ 0.457254] Write protecting the kernel read-only data: 8192k [ 0.460469] Testing CPA: undo ffffffff81000000-ffffffff81800000 [ 0.462996] Testing CPA: again [ 0.466507] Freeing unused kernel memory: 1700k freed [ 0.467310] Freeing unused kernel memory: 492k freed init started: BusyBox v1.14.3 (2011-02-07 17:30:37 EST) [ 0.474262] consoletype used greatest stack depth: 5680 bytes left Mounting directories [ OK ] [ 0.695544] modprobe used greatest stack depth: 5472 bytes left [ 0.699416] core_filesystem used greatest stack depth: 5408 bytes left Running in PV context on Xen v4.1. [ 0.710732] input: Xen Virtual Keyboard as /devices/virtual/input/input0 [ 0.710941] input: Xen Virtual Pointer as /devices/virtual/input/input1 [ 0.926360] Initialising Xen virtual ethernet driver. [ 0.948476] udevd (1120): /proc/1120/oom_adj is deprecated, please use /proc/1120/oom_score_adj instead. [ 1.153666] ip used greatest stack depth: 4160 bytes left Waiting for devices [ OK ] Waiting for fb [ OK ] Starting..[/dev/fb0] /dev/fb0: len:0 /dev/fb0: bits/pixel32 (7fa1eeb76000): Writting .. [800:600] Done! FATAL: Module agpgart_intel not found. [ 1.518929] Console: switching to colour frame buffer device 100x37 [ 1.570366] [drm] radeon kernel modesetting enabled. WARNING: Error inserting drm_kms_helper (/lib/modules/2.6.38-rc2-00045-gcb81bee/kernel/drivers/gpu/drm/drm_kms_helper.ko): No such device WARNING: Error inserting ttm (/lib/modules/2.6.38-rc2-00045-gcb81bee/kernel/drivers/gpu/drm/ttm/ttm.ko): No such device FATAL: Error inserting nouveau (/lib/modules/2.6.38-rc2-00045-gcb81bee/kernel/drivers/gpu/drm/nouveau/nouveau.ko): No such device WARNING: Error inserting drm_kms_helper (/lib/modules/2.6.38-rc2-00045-gcb81bee/kernel/drivers/gpu/drm/drm_kms_helper.ko): No such device FATAL: Error inserting i915 (/lib/modules/2.6.38-rc2-00045-gcb81bee/kernel/drivers/gpu/drm/i915/i915.ko): No such device Waiting for network [ OK ] Bringing up loopback interface: [ OK ] Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization. [FAILED] Bringing up interface switch: Determining IP information for switch...[ 12.754080] switch: no IPv6 routers present [ 30.395103] CPA self-test: [ 30.418489] 4k 206848 large 0 gb 0 x 10986[ffff880000000000-ffff8800327ff000] miss 0 [ 30.463061] 4k 206848 large 0 gb 0 x 10986[ffff880000000000-ffff8800327ff000] miss 0 [ 30.505465] 4k 206848 large 0 gb 0 x 10986[ffff880000000000-ffff8800327ff000] miss 0 [ 30.505518] ok. failed. [FAILED] /etc/init.d/rcS: line 30: NFS: command not found Waiting for init.custom [ OK ] Start sshd Starting SSHd ... SSH started [2149] mount.nfs: Failed to resolve server 192.168.101.1: Address family for hostname not supported mount.nfs: Failed to resolve server 192.168.101.1: Address family for hostname not supported [ 64.355127] [drm] Module unloaded ERROR: Module nouveau does not exist in /proc/modules [0x0->0x32000] pfn [0x0->0x32000] level entry [0x32000->0x40000] level middle [0x32000->0x1ffffff] missing [0x40000->0x1ffffff] level top Waiting for SSHd [ OK ] WARNING: ssh currently running [2149] ignoring start request Starting..[/dev/fb0] /dev/fb0: len:0 /dev/fb0: bits/pixel32 (7f0537b62000): Writting .. [800:600] Done! FATAL: Module iscsi_ibft not found. iscsistart: Missing or Invalid version from /sys/module/scsi_transport_iscsi/version. Make sure a up to date scsi_transport_iscsi module is loaded and a up todate version of iscsid is running. Exiting... Feb 7 22:50:13 (none) syslogd 1.5.0: restart. FATAL: Module evtchn not found. [ 64.998808] Event-channel device installed. xencommons should be started first. CPU0 16: 4014 xen-percpu-virq timer0 17: 0 xen-percpu-ipi spinlock0 18: 0 xen-percpu-ipi resched0 19: 0 xen-percpu-ipi callfunc0 20: 0 xen-percpu-virq debug0 21: 0 xen-percpu-ipi callfuncsingle0 22: 286 xen-dyn-event xenbus 23: 88 xen-dyn-event hvc_console 24: 186 xen-dyn-event vkbd 25: 382 xen-dyn-event vfb NMI: 0 Non-maskable interrupts LOC: 0 Local timer interrupts SPU: 0 Spurious interrupts PMI: 0 Performance monitoring interrupts IWI: 0 IRQ work interrupts RES: 0 Rescheduling interrupts CAL: 0 Function call interrupts TLB: 0 TLB shootdowns TRM: 0 Thermal event interrupts THR: 0 Threshold APIC interrupts MCE: 0 Machine check exceptions MCP: 0 Machine check polls ERR: 0 MIS: 0 00000000-0000ffff : reserved 00010000-0009ffff : System RAM 000a0000-000fffff : reserved 00100000-327fffff : System RAM 01000000-01451cab : Kernel code 01451cac-0188017f : Kernel data 01928000-01a25fff : Kernel bss Feb 7 22:50:13 (none) init: starting pid 2234, tty '/dev/tty0': '/bin/sh' Feb 7 22:50:13 (none) init: starting pid 2235, tty '/dev/tty1': '/bin/sh' Feb 7 22:50:13 (none) init: starting pid 2236, tty '/dev/hvc0': '/bin/sh' sh-4.1# test_gnt cat /prodmesg | grep Memo [ 0.000000] Memory: 532972k/827392k available (4423k kernel code, 448k absent, 293972k reserved, 4281k data, 644k init) sh-4.1# sh-4.1# tet_  st_gnt add return gntref, address map return index, address adel delete internal ddel delete internal unmap
unmap memory show show all pages append word to all mapped pages, show PID 8c0 > show END > add 3 Created shared page with domain 3, grant #8. Mapped locally at 0=0x7f4422411000 > show 00(139930609192960,0): id 8c06b8b4567 n=11000000 b= END > boo 00(139930609192960,0): id 8c06b8b4567 n=11000000 b=boo END > show 00(139930609192960,0): id 8c06b8b4567 n=11000000 b=deadbeefboo END > show    ddel 3 gu error: No such file or directory (rv=-1) > ddel 7f4422411000 gu error: No such file or directory (rv=-1) > ddel 0 gu error: No such file or directory (rv=-1) > ddel gu error: No such file or directory (rv=-1) > show 00(139930609192960,0): id 8c06b8b4567 n=11000000 b=unampdeadbeefboo END > ddel 8c06b8b4567 gu error: No such file or directory (rv=-1) > ddel 11000000 gu error: No such file or directory (rv=-1) > ddell 0 00(139930609192960,0): id 8c06b8b4567 n=11000000 b=ddellunampdeadbeefboo END > dde  e dell 0 00(139930609192960,0): id 8c06b8b4567 n=11000000 b=ddellddellunampdeadbeefboo END > show 00(139930609192960,0): id 8c06b8b4567 n=11000000 b=ddellddellunampdeadbeefboo END > 00(139930609192960,0): id 8c06b8b4567 n=11000000 b=ddellddellunampdeadbeefboo END > help 00(139930609192960,0): id 8c06b8b4567 n=11000000 b=helpddellddellunampdeadbeefboo END > 00(139930609192960,0): id 8c06b8b4567 n=11000000 b=helphelpddellddellunampdeadbeefboo END > 00(139930609192960,0): id 8c06b8b4567 n=11000000 b=helphelphelpddellddellunampdeadbeefboo END > ^C[ 331.822244] test_gnt:2240 freeing invalid memtype 0-1000 sh-4.1# sh-4.1# sh-4.1# test_gnt add return gntref, address map return index, address adel delete internal ddel delete internal unmap
unmap memory show show all pages append word to all mapped pages, show PID 8c1 > add 5 Created shared page with domain 5, grant #9. Mapped locally at 0=0x7fee0345f000 > deadbeef is neat 00(140660233859072,0): id 8c16b8b4567 n=11000000 b=deadbeef END > show 00(140660233859072,0): id 8c16b8b4567 n=11000000 b=Woot!deadbeef END > 00(140660233859072,0): id 8c16b8b4567 n=11000000 b=Woot!deadbeef END > show 00(140660233859072,0): id 8c16b8b4567 n=11000000 b=Woot!deadbeef END > show 00(140660233859072,0): id 8c16b8b4567 n=11000000 b=Woot!deadbeef END > ddel 0 gu error: No such file or directory (rv=-1) > ddel 8c16b8b4567 gu error: No such file or directory (rv=-1) > show 00(140660233859072,0): id 8c16b8b4567 n=11000000 b=Woot!deadbeef END > 00(140660233859072,0): id 8c16b8b4567 n=11000000 b=Woot!deadbeef END > ^C[ 756.625232] test_gnt:2241 freeing invalid memtype 0-1000 sh-4.1#