From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Cc: jeremy@goop.org, xen-devel@lists.xensource.com, Ian.Campbell@citrix.com
Subject: Re: [PATCH v6] Userspace grant communication
Date: Mon, 7 Feb 2011 18:14:16 -0500 [thread overview]
Message-ID: <20110207231416.GA12956@dumpdata.com> (raw)
In-Reply-To: <1296753544-13323-1-git-send-email-dgdegra@tycho.nsa.gov>
[-- Attachment #1: Type: text/plain, Size: 1201 bytes --]
On Thu, Feb 03, 2011 at 12:18:58PM -0500, Daniel De Graaf wrote:
> Changes since v5:
> - Added a tested xen version to workaround in #4
> - Cleaned up variable names & structures
> - Clarified some of the cleanup in gntalloc
> - Removed copyright statement from public-domain files
>
> [PATCH 1/6] xen-gntdev: Change page limit to be global instead of per-open
> [PATCH 2/6] xen-gntdev: Use find_vma rather than iterating our vma list manually
> [PATCH 3/6] xen-gntdev: Add reference counting to maps
> [PATCH 4/6] xen-gntdev: Support mapping in HVM domains
> [PATCH 5/6] xen-gntalloc: Userspace grant allocation driver
> [PATCH 6/6] xen/gntalloc,gntdev: Add unmap notify ioctl
>
> Test/Demo code (also updated):
I played with this (two PV domains) and I got two failures:
1). When forgetting to unmap a grant page and quitting the tool
2). when unmapping appropriately.
Attached are the logs from the domain exporting the grants
(domain 4), and the faulting (domain 3 and domain 5).
This is using this patchset (devel/gntalloc.v6) and sticking
it on top of 2.6.38-rc2 with a whole bunch of patches. To be
specific:
git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen.git #master
[-- Attachment #2: pv-did-unmap.log --]
[-- Type: text/plain, Size: 21297 bytes --]
22:57:25 # 5 :/mnt/lab/latest/
> xm create -c pv.xm
Using config file "./pv.xm".
Started domain pv.xm (id=5)
[ 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 - 000000002d800000 (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 = 0x2d800 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-000000002d800000
[ 0.000000] 0000000000 - 002d800000 page 4k
[ 0.000000] kernel direct mapping tables up to 2d800000 @ e291000-e3ff000
[ 0.000000] RAMDISK: 01b5c000 - 0d824000
[ 0.000000] No NUMA configuration found
[ 0.000000] Faking a node at 0000000000000000-000000002d800000
[ 0.000000] Initmem setup node 0 0000000000000000-000000002d800000
[ 0.000000] NODE_DATA [000000002cffb000 - 000000002cffffff]
[ 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 -> 0x0002d800
[ 0.000000] On node 0 totalpages: 186256
[ 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: 2492 pages used for memmap
[ 0.000000] DMA32 zone: 179780 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 2d800000 (gap: 2d800000:d2800000)
[ 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 @ffff88002cfce000 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: 183702
[ 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 ffff880027a00000 - ffff88002ba00000
[ 0.000000] software IO TLB at phys 0x27a00000 - 0x2ba00000
[ 0.000000] Memory: 453168k/745472k available (4423k kernel code, 448k absent, 291856k 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.001043] CPU: Physical Processor ID: 0
[ 0.001048] CPU: Processor Core ID: 0
[ 0.001109] SMP alternatives: switching to UP code
[ 0.003016] Freeing SMP alternatives: 16k freed
[ 0.003096] cpu 0 spinlock event irq 17
[ 0.003114] Performance Events:
[ 0.003119] no APIC, boot with the "lapic" boot parameter to force-enable it.
[ 0.003126] no hardware sampling interrupt available.
[ 0.003156] Broken PMU hardware detected, using software events only.
[ 0.003321] MCE: In-kernel MCE decoding enabled.
[ 0.003329] Brought up 1 CPUs
[ 0.003502] kworker/u:0 used greatest stack depth: 6032 bytes left
[ 0.003758] Grant table initialized
[ 0.022760] Time: 165:165:165 Date: 165/165/65
[ 0.022817] NET: Registered protocol family 16
[ 0.023261] kworker/u:0 used greatest stack depth: 5768 bytes left
[ 0.023361] Extended Config Space enabled on 0 nodes
[ 0.023394] PCI: setting up Xen PCI frontend stub
[ 0.023394] PCI: pci_cache_line_size set to 64 bytes
[ 0.029997] bio: create slab <bio-0> at 0
[ 0.030315] ACPI: Interpreter disabled.
[ 0.032041] xen_balloon: Initialising balloon driver.
[ 0.032120] last_pfn = 0x2d800 max_arch_pfn = 0x400000000
[ 0.032158] vgaarb: loaded
[ 0.032400] usbcore: registered new interface driver usbfs
[ 0.032453] usbcore: registered new interface driver hub
[ 0.032515] usbcore: registered new device driver usb
[ 0.032746] PCI: System does not support PCI
[ 0.032753] PCI: System does not support PCI
[ 0.033217] NetLabel: Initializing
[ 0.033223] NetLabel: domain hash size = 128
[ 0.033228] NetLabel: protocols = UNLABELED CIPSOv4
[ 0.033243] NetLabel: unlabeled traffic allowed by default
[ 0.033437] Switching to clocksource xen
[ 0.035119] pnp: PnP ACPI: disabled
[ 0.039518] NET: Registered protocol family 2
[ 0.039596] IP route cache hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.039868] TCP established hash table entries: 32768 (order: 7, 524288 bytes)
[ 0.040182] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes)
[ 0.040522] TCP: Hash tables configured (established 32768 bind 32768)
[ 0.040530] TCP reno registered
[ 0.040548] UDP hash table entries: 512 (order: 3, 49152 bytes)
[ 0.040577] UDP-Lite hash table entries: 512 (order: 3, 49152 bytes)
[ 0.040665] NET: Registered protocol family 1
[ 0.040771] RPC: Registered udp transport module.
[ 0.040777] RPC: Registered tcp transport module.
[ 0.040782] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.040788] PCI: CLS 0 bytes, default 64
[ 0.040928] Trying to unpack rootfs image as initramfs...
[ 0.328536] Freeing initrd memory: 193312k freed
[ 0.394416] platform rtc_cmos: registered platform RTC device (no PNP device found)
[ 0.394665] Machine check injector initialized
[ 0.395035] microcode: CPU0: patch_level=0x1000086
[ 0.395211] microcode: Microcode Update Driver: v2.00 <tigran@aivazian.fsnet.co.uk>, Peter Oruba
[ 0.395220] Scanning for low memory corruption every 60 seconds
[ 0.395531] audit: initializing netlink socket (disabled)
[ 0.395549] type=2000 audit(1297119453.498:1): initialized
[ 0.403499] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[ 0.407647] VFS: Disk quotas dquot_6.5.2
[ 0.407747] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.408393] NTFS driver 2.1.30 [Flags: R/W].
[ 0.408588] msgmni has been set to 1262
[ 0.408703] SELinux: Registering netfilter hooks
[ 0.409132] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[ 0.409142] io scheduler noop registered
[ 0.409147] io scheduler deadline registered
[ 0.409219] io scheduler cfq registered (default)
[ 0.409397] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[ 0.446259] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.446976] Non-volatile memory driver v1.3
[ 0.446985] Linux agpgart interface v0.103
[ 0.447266] [drm] Initialized drm 1.1.0 20060810
[ 0.449531] brd: module loaded
[ 0.450718] loop: module loaded
[ 0.450833] Fixed MDIO Bus: probed
[ 0.450925] tun: Universal TUN/TAP device driver, 1.6
[ 0.450931] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[ 0.451201] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.451210] ehci_hcd: block sizes: qh 104 qtd 96 itd 192 sitd 96
[ 0.451269] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.451276] ohci_hcd: block sizes: ed 80 td 96
[ 0.451325] uhci_hcd: USB Universal Host Controller Interface driver
[ 0.451505] usbcore: registered new interface driver usblp
[ 0.451556] usbcore: registered new interface driver libusual
[ 0.451722] i8042: PNP: No PS/2 controller found. Probing ports directly.
[ 0.452055] i8042: No controller found
[ 0.452738] mousedev: PS/2 mouse device common for all mice
[ 0.452987] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
[ 0.453089] rtc_cmos: probe of rtc_cmos failed with error -38
[ 0.453281] cpuidle: using governor ladder
[ 0.453288] cpuidle: using governor menu
[ 0.453396] Netfilter messages via NETLINK v0.30.
[ 0.453419] nf_conntrack version 0.5.0 (5050 buckets, 20200 max)
[ 0.453561] ctnetlink v0.93: registering with nfnetlink.
[ 0.454028] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 0.454106] TCP cubic registered
[ 0.454111] Initializing XFRM netlink socket
[ 0.454429] NET: Registered protocol family 10
[ 0.455160] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 0.455212] IPv6 over IPv4 tunneling driver
[ 0.455850] NET: Registered protocol family 17
[ 0.455887] Registering the dns_resolver key type
[ 0.456159] PM: Hibernation image not present or could not be loaded.
[ 0.456177] registered taskstats version 1
[ 0.456190] XENBUS: Device with no driver: device/vkbd/0
[ 0.456195] XENBUS: Device with no driver: device/vfb/0
[ 0.456201] XENBUS: Device with no driver: device/console/0
[ 0.456216] Magic number: 1:252:3141
[ 0.456666] Freeing unused kernel memory: 644k freed
[ 0.456872] Write protecting the kernel read-only data: 8192k
[ 0.460157] Testing CPA: undo ffffffff81000000-ffffffff81800000
[ 0.462755] Testing CPA: again
[ 0.466371] Freeing unused kernel memory: 1700k freed
[ 0.467169] Freeing unused kernel memory: 492k freed
\rinit started: BusyBox v1.14.3 (2011-02-07 17:30:37 EST)
[ 0.474074] consoletype used greatest stack depth: 5680 bytes left
Mounting directories [ OK ]
[ 0.693752] modprobe used greatest stack depth: 5472 bytes left
[ 0.697605] core_filesystem used greatest stack depth: 5408 bytes left
Running in PV context on Xen v4.1.
[ 0.708905] input: Xen Virtual Keyboard as /devices/virtual/input/input0
[ 0.709131] input: Xen Virtual Pointer as /devices/virtual/input/input1
[ 0.925389] Initialising Xen virtual ethernet driver.
[ 0.947486] udevd (1120): /proc/1120/oom_adj is deprecated, please use /proc/1120/oom_score_adj instead.
[ 1.152094] 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
(7f75e3ef6000): Writting .. [800:600]
Done!
FATAL: Module agpgart_intel not found.
[ 1.520122] Console: switching to colour frame buffer device 100x37
[ 1.568694] [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...
[ 30.395114] CPA self-test:
[ 30.416206] 4k 186368 large 0 gb 0 x 10986[ffff880000000000-ffff88002d7ff000] miss 0
[ 30.459541] 4k 186368 large 0 gb 0 x 10986[ffff880000000000-ffff88002d7ff000] miss 0
[ 30.500167] 4k 186368 large 0 gb 0 x 10986[ffff880000000000-ffff88002d7ff000] miss 0
[ 30.500223] 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.102084] [drm] Module unloaded
ERROR: Module nouveau does not exist in /proc/modules
[0x0->0x2d000] pfn
[0x0->0x2d000] level entry
[0x2d000->0x40000] level middle
[0x2d000->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
(7fd91e639000): 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:58:37 (none) syslogd 1.5.0: restart.
FATAL: Module evtchn not found.
[ 64.718622] Event-channel device installed.
xencommons should be started first.
CPU0
16: 3908 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: 301 xen-dyn-event xenbus
23: 91 xen-dyn-event hvc_console
24: 0 xen-dyn-event vkbd
25: 378 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-2d7fffff : System RAM
01000000-01451cab : Kernel code
01451cac-0188017f : Kernel data
01928000-01a25fff : Kernel bss
Feb 7 22:58:37 (none) init: starting pid 2234, tty '/dev/tty0': '/bin/sh'
Feb 7 22:58:37 (none) init: starting pid 2235, tty '/dev/tty1': '/bin/sh'
Feb 7 22:58:37 (none) init: starting pid 2236, tty '/dev/hvc0': '/bin/sh'
sh-4.1#
sh-4.1# test\ag\b \b_gnt
add <domid> return gntref, address
map <domid> <ref> return index, address
adel <gntref> delete <add> internal
ddel <index> delete <map> internal
unmap <address> unmap memory
show show all pages
<word> append word to all mapped pages, show
PID 8be
> map 4 9
Mapped grant 4.9 as 0=0x7ff79801f000
> show
00(140701383913472,0): id 8c16b8b4567 n=11000000 b=
END
> show
00(140701383913472,0): id 8c16b8b4567 n=11000000 b=deadbeef
END
> Woot!
00(140701383913472,0): id 8c16b8b4567 n=11000000 b=Woot!deadbeef
END
> unmap 0x7ff79801f000
Unmapped page at (nil)
> in\b \b\b \bn\b \bunmap 140701383913472
[ 196.362131] BUG: unable to handle kernel paging request at ffff88001fca4049
[ 196.363054] IP: [<ffffffff8126cc69>] unmap_grant_pages+0x75/0xd0
[ 196.363054] PGD 1804067 PUD 1808067 PMD e31d067 PTE 0
[ 196.363054] Oops: 0002 [#1] SMP
[ 196.363054] last sysfs file: /sys/devices/system/cpu/cpu0/cache/index2/shared_cpu_map
[ 196.363054] CPU 0
[ 196.363054] Modules linked in: xen_evtchn fbcon tileblit font bitblit ttm softcursor drm_kms_helper xen_blkfront xen_netfront xen_fbfront fb_sys_fops sysimgblt sysfillrect syscopyarea xen_kbdfront xenfs [last unloaded: dump_dma]
[ 196.363054]
[ 196.363054] Pid: 2238, comm: test_gnt Not tainted 2.6.38-rc2-00045-gcb81bee #1 /
[ 196.363054] RIP: e030:[<ffffffff8126cc69>] [<ffffffff8126cc69>] unmap_grant_pages+0x75/0xd0
[ 196.363054] RSP: e02b:ffff88001b509cb8 EFLAGS: 00010202
[ 196.363054] RAX: 0000000000000049 RBX: ffff88001fe17a20 RCX: 00007ff798020000
[ 196.363054] RDX: ffff880000000000 RSI: 0000000000000000 RDI: ffff88001fe17a20
[ 196.363054] RBP: ffff88001b509cd8 R08: ffff88001b509ea8 R09: 0000000000000000
[ 196.363054] R10: 0000000000000016 R11: 0000000000000206 R12: 0000000000000000
[ 196.363054] R13: 0000000000000001 R14: 000000001fca4049 R15: ffff88001fe17a80
[ 196.363054] FS: 00007ff798023700(0000) GS:ffff88002cfce000(0000) knlGS:0000000000000000
[ 196.363054] CS: e033 DS: 0000 ES: 0000 CR0: 000000008005003b
[ 196.363054] CR2: ffff88001fca4049 CR3: 0000000026d57000 CR4: 0000000000000660
[ 196.363054] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 196.363054] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[ 196.363054] Process test_gnt (pid: 2238, threadinfo ffff88001b508000, task ffff8800275e9e40)
[ 196.363054] Stack:
[ 196.363054] 00007ff79801f000 ffff88001fe17a20 00007ff798020000 ffff88001fe17a90
[ 196.363054] ffff88001b509d18 ffffffff8126d322 ffffffff81006689 ffff88001fe17ab0
[ 196.363054] ffff88001ec732c0 00007ff798020000 00007ff79801f000 00007ff798020000
[ 196.363054] Call Trace:
[ 196.363054] [<ffffffff8126d322>] mn_invl_range_start+0x7c/0xb6
[ 196.363054] [<ffffffff81006689>] ? xen_force_evtchn_callback+0xd/0xf
[ 196.363054] [<ffffffff810ec7cb>] __mmu_notifier_invalidate_range_start+0x2e/0x54
[ 196.363054] [<ffffffff810d3ed4>] unmap_vmas+0x93/0x80b
[ 196.363054] [<ffffffff810639dc>] ? remove_wait_queue+0x4c/0x51
[ 196.363054] [<ffffffff811fd12f>] ? do_raw_spin_lock+0x6b/0x120
[ 196.363054] [<ffffffff81008479>] ? xen_spin_unlock+0x11/0x30
[ 196.363054] [<ffffffff81006689>] ? xen_force_evtchn_callback+0xd/0xf
[ 196.363054] [<ffffffff811fd0bb>] ? do_raw_spin_unlock+0x8f/0x98
[ 196.363054] [<ffffffff810c371e>] ? ____pagevec_lru_add+0x147/0x15e
[ 196.363054] [<ffffffff810d965b>] unmap_region+0x86/0xe0
[ 196.363054] [<ffffffff810da807>] do_munmap+0x2d4/0x33e
[ 196.363054] [<ffffffff810da8b2>] sys_munmap+0x41/0x58
[ 196.363054] [<ffffffff8100a992>] system_call_fastpath+0x16/0x1b
[ 196.363054] Code: 00 00 00 88 ff ff 49 01 c6 48 b8 b7 6d db b6 6d db b6 6d 49 c1 fe 03 4c 0f af f0 48 63 43 30 49 c1 e6 0c 25 ff 0f 00 00 49 01 c6 <41> c6 04 16 00 83 63 2c fe 49 63 fc 48 8b 73 50 44 89 ea 48 6b
[ 196.363054] RIP [<ffffffff8126cc69>] unmap_grant_pages+0x75/0xd0
[ 196.363054] RSP <ffff88001b509cb8>
[ 196.363054] CR2: ffff88001fca4049
[ 196.363054] ---[ end trace 27b6948dea470010 ]---
23:01:09 # 6 :/mnt/lab/latest/
>
[-- Attachment #3: pv-did-not-unmap.log --]
[-- Type: text/plain, Size: 24062 bytes --]
> xm list
Name ID Mem VCPUs State Time(s)
Domain-0 0 700 4 r----- 36.9
22:48:24 # 2 :~/
> cd /mnt/lab/latest
22:48:28 # 3 :/mnt/lab/latest/
> more pv.xm
kernel="/mnt/lab/latest/vmlinuz"
ramdisk="/mnt/lab/latest/initramfs.cpio.gz"
extra="console=hvc0 debug iommu=soft swiotlb=force"
memory=720
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:29 # 4 :/mnt/lab/latest/
> xm create -c pv.xm
Using config file "./pv.xm".
Started domain pv.xm (id=3)
[ 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 - 000000002d800000 (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 = 0x2d800 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-000000002d800000
[ 0.000000] 0000000000 - 002d800000 page 4k
[ 0.000000] kernel direct mapping tables up to 2d800000 @ e291000-e3ff000
[ 0.000000] RAMDISK: 01b5c000 - 0d824000
[ 0.000000] No NUMA configuration found
[ 0.000000] Faking a node at 0000000000000000-000000002d800000
[ 0.000000] Initmem setup node 0 0000000000000000-000000002d800000
[ 0.000000] NODE_DATA [000000002cffb000 - 000000002cffffff]
[ 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 -> 0x0002d800
[ 0.000000] On node 0 totalpages: 186256
[ 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: 2492 pages used for memmap
[ 0.000000] DMA32 zone: 179780 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 2d800000 (gap: 2d800000:d2800000)
[ 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 @ffff88002cfce000 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: 183702
[ 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 ffff880027a00000 - ffff88002ba00000
[ 0.000000] software IO TLB at phys 0x27a00000 - 0x2ba00000
[ 0.000000] Memory: 453168k/745472k available (4423k kernel code, 448k absent, 291856k 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: 3
[ 0.001109] SMP alternatives: switching to UP code
[ 0.002016] Freeing SMP alternatives: 16k freed
[ 0.002094] cpu 0 spinlock event irq 17
[ 0.002112] Performance Events:
[ 0.002117] no APIC, boot with the "lapic" boot parameter to force-enable it.
[ 0.002124] no hardware sampling interrupt available.
[ 0.002154] Broken PMU hardware detected, using software events only.
[ 0.002636] MCE: In-kernel MCE decoding enabled.
[ 0.002645] Brought up 1 CPUs
[ 0.002820] kworker/u:0 used greatest stack depth: 6032 bytes left
[ 0.003024] Grant table initialized
[ 0.022013] Time: 165:165:165 Date: 165/165/65
[ 0.022077] NET: Registered protocol family 16
[ 0.022557] kworker/u:0 used greatest stack depth: 5768 bytes left
[ 0.022654] Extended Config Space enabled on 0 nodes
[ 0.022688] PCI: setting up Xen PCI frontend stub
[ 0.022688] PCI: pci_cache_line_size set to 64 bytes
[ 0.029298] bio: create slab <bio-0> at 0
[ 0.029421] ACPI: Interpreter disabled.
[ 0.030064] xen_balloon: Initialising balloon driver.
[ 0.031071] last_pfn = 0x2d800 max_arch_pfn = 0x400000000
[ 0.031142] vgaarb: loaded
[ 0.031402] usbcore: registered new interface driver usbfs
[ 0.031457] usbcore: registered new interface driver hub
[ 0.031519] usbcore: registered new device driver usb
[ 0.031751] PCI: System does not support PCI
[ 0.031757] PCI: System does not support PCI
[ 0.032116] NetLabel: Initializing
[ 0.032123] NetLabel: domain hash size = 128
[ 0.032127] NetLabel: protocols = UNLABELED CIPSOv4
[ 0.032143] NetLabel: unlabeled traffic allowed by default
[ 0.032340] Switching to clocksource xen
[ 0.034121] pnp: PnP ACPI: disabled
[ 0.038514] NET: Registered protocol family 2
[ 0.038592] IP route cache hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.038862] TCP established hash table entries: 32768 (order: 7, 524288 bytes)
[ 0.039178] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes)
[ 0.039519] TCP: Hash tables configured (established 32768 bind 32768)
[ 0.039528] TCP reno registered
[ 0.039546] UDP hash table entries: 512 (order: 3, 49152 bytes)
[ 0.039576] UDP-Lite hash table entries: 512 (order: 3, 49152 bytes)
[ 0.039667] NET: Registered protocol family 1
[ 0.039773] RPC: Registered udp transport module.
[ 0.039780] RPC: Registered tcp transport module.
[ 0.039785] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.039791] PCI: CLS 0 bytes, default 64
[ 0.039937] Trying to unpack rootfs image as initramfs...
[ 0.325931] Freeing initrd memory: 193312k freed
[ 0.393275] platform rtc_cmos: registered platform RTC device (no PNP device found)
[ 0.393522] Machine check injector initialized
[ 0.393890] microcode: CPU0: patch_level=0x1000086
[ 0.393953] microcode: Microcode Update Driver: v2.00 <tigran@aivazian.fsnet.co.uk>, Peter Oruba
[ 0.393967] Scanning for low memory corruption every 60 seconds
[ 0.394308] audit: initializing netlink socket (disabled)
[ 0.394327] type=2000 audit(1297118931.427:1): initialized
[ 0.402798] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[ 0.406939] VFS: Disk quotas dquot_6.5.2
[ 0.407038] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.407682] NTFS driver 2.1.30 [Flags: R/W].
[ 0.407877] msgmni has been set to 1262
[ 0.407993] SELinux: Registering netfilter hooks
[ 0.408423] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[ 0.408434] io scheduler noop registered
[ 0.408439] io scheduler deadline registered
[ 0.408508] io scheduler cfq registered (default)
[ 0.408688] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[ 0.445440] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.446215] Non-volatile memory driver v1.3
[ 0.446225] Linux agpgart interface v0.103
[ 0.446444] [drm] Initialized drm 1.1.0 20060810
[ 0.448696] brd: module loaded
[ 0.449898] loop: module loaded
[ 0.450017] Fixed MDIO Bus: probed
[ 0.450134] tun: Universal TUN/TAP device driver, 1.6
[ 0.450140] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[ 0.450381] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.450390] ehci_hcd: block sizes: qh 104 qtd 96 itd 192 sitd 96
[ 0.450447] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.450454] ohci_hcd: block sizes: ed 80 td 96
[ 0.450503] uhci_hcd: USB Universal Host Controller Interface driver
[ 0.450684] usbcore: registered new interface driver usblp
[ 0.450735] usbcore: registered new interface driver libusual
[ 0.450900] i8042: PNP: No PS/2 controller found. Probing ports directly.
[ 0.451054] i8042: No controller found
[ 0.451938] mousedev: PS/2 mouse device common for all mice
[ 0.452213] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
[ 0.452292] rtc_cmos: probe of rtc_cmos failed with error -38
[ 0.452482] cpuidle: using governor ladder
[ 0.452488] cpuidle: using governor menu
[ 0.452598] Netfilter messages via NETLINK v0.30.
[ 0.452622] nf_conntrack version 0.5.0 (5050 buckets, 20200 max)
[ 0.452765] ctnetlink v0.93: registering with nfnetlink.
[ 0.453262] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 0.453297] TCP cubic registered
[ 0.453302] Initializing XFRM netlink socket
[ 0.453618] NET: Registered protocol family 10
[ 0.454349] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 0.454400] IPv6 over IPv4 tunneling driver
[ 0.455032] NET: Registered protocol family 17
[ 0.455099] Registering the dns_resolver key type
[ 0.455338] PM: Hibernation image not present or could not be loaded.
[ 0.455355] registered taskstats version 1
[ 0.455367] XENBUS: Device with no driver: device/vkbd/0
[ 0.455373] XENBUS: Device with no driver: device/vfb/0
[ 0.455378] XENBUS: Device with no driver: device/console/0
[ 0.455393] Magic number: 1:252:3141
[ 0.455828] Freeing unused kernel memory: 644k freed
[ 0.456039] Write protecting the kernel read-only data: 8192k
[ 0.459171] Testing CPA: undo ffffffff81000000-ffffffff81800000
[ 0.461729] Testing CPA: again
[ 0.465238] Freeing unused kernel memory: 1700k freed
[ 0.466022] Freeing unused kernel memory: 492k freed
\rinit started: BusyBox v1.14.3 (2011-02-07 17:30:37 EST)
[ 0.472912] consoletype used greatest stack depth: 5680 bytes left
Mounting directories [ OK ]
[ 0.692896] modprobe used greatest stack depth: 5472 bytes left
[ 0.696759] core_filesystem used greatest stack depth: 5408 bytes left
Running in PV context on Xen v4.1.
[ 0.708036] input: Xen Virtual Keyboard as /devices/virtual/input/input0
[ 0.708258] input: Xen Virtual Pointer as /devices/virtual/input/input1
[ 0.924355] Initialising Xen virtual ethernet driver.
[ 0.946476] udevd (1120): /proc/1120/oom_adj is deprecated, please use /proc/1120/oom_score_adj instead.
[ 1.150005] 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
(7ff625ae5000): Writting .. [800:600]
Done!
FATAL: Module agpgart_intel not found.
[ 1.514549] Console: switching to colour frame buffer device 100x37
[ 1.565206] [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.738078] switch: no IPv6 routers present
[ 30.394107] CPA self-test:
[ 30.415265] 4k 186368 large 0 gb 0 x 10986[ffff880000000000-ffff88002d7ff000] miss 0
[ 30.458299] 4k 186368 large 0 gb 0 x 10986[ffff880000000000-ffff88002d7ff000] miss 0
[ 30.498973] 4k 186368 large 0 gb 0 x 10986[ffff880000000000-ffff88002d7ff000] miss 0
[ 30.499026] 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.185816] [drm] Module unloaded
ERROR: Module nouveau does not exist in /proc/modules
[0x0->0x2d000] pfn
[0x0->0x2d000] level entry
[0x2d000->0x40000] level middle
[0x2d000->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
(7ffce2265000): 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:49:55 (none) syslogd 1.5.0: restart.
FATAL: Module evtchn not found.
[ 64.807128] Event-channel device installed.
xencommons should be started first.
CPU0
16: 3925 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: 299 xen-dyn-event xenbus
23: 91 xen-dyn-event hvc_console
24: 37 xen-dyn-event vkbd
25: 381 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-2d7fffff : System RAM
01000000-01451cab : Kernel code
01451cac-0188017f : Kernel data
01928000-01a25fff : Kernel bss
Feb 7 22:49:55 (none) init: starting pid 2234, tty '/dev/tty0': '/bin/sh'
Feb 7 22:49:55 (none) init: starting pid 2235, tty '/dev/tty1': '/bin/sh'
Feb 7 22:49:55 (none) init: starting pid 2236, tty '/dev/hvc0': '/bin/sh'
sh-4.1# xens\atore-ls
xenstore-ls: xs_directory (/): Permission denied
sh-4.1# xen_\a\b \bd \b \b\b \b\b\b\b^[[Ktest_gnt
add <domid> return gntref, address
map <domid> <ref> return index, address
adel <gntref> delete <add> internal
ddel <index> delete <map> internal
unmap <address> unmap memory
show show all pages
<word> append word to all mapped pages, show
PID 8bf
> END
> ^C
sh-4.1# dmesg | grep Mem
[ 0.000000] Memory: 453168k/745472k available (4423k kernel code, 448k absent, 291856k reserved, 4281k data, 644k init)
sh-4.1#
sh-4.1# test\a_gnt
add <domid> return gntref, address
map <domid> <ref> return index, address
adel <gntref> delete <add> internal
ddel <index> delete <map> internal
unmap <address> unmap memory
show show all pages
<word> append word to all mapped pages, show
PID 8c2
> show
END
> map 3 8\b \b\b \b\b \b4 8
Mapped grant 4.8 as 0=0x7ff062b95000
> show
00(140670425190400,0): id 8c06b8b4567 n=11000000 b=
END
> show
00(140670425190400,0): id 8c06b8b4567 n=11000000 b=boo
END
> deadbeef
00(140670425190400,0): id 8c06b8b4567 n=11000000 b=deadbeefboo
END
> unmap 0x7ff062b95000
Unmapped page at (nil)
> show
00(140670425190400,0): id 8c06b8b4567 n=11000000 b=deadbeefboo
END
> unmap 8c06b8b4567
Unmapped page at 0x8
> show
00(140670425190400,0): id 8c06b8b4567 n=11000000 b=deadbeefboo
END
> unmap 8
Unmapped page at 0x8
> ^[[A^[[A\b \b\b \b\b \b\b \b\b \b\b \b\b \b\b \bunamp
00(140670425190400,0): id 8c06b8b4567 n=11000000 b=unampdeadbeefboo
END
> unmap 9\b \b0
Unmapped page at (nil)
> ^[[A\b \b\b \b\b \b\b \bshow
00(140670425190400,0): id 8c06b8b4567 n=11000000 b=unampdeadbeefboo
END
> unmap 11000000
Unmapped page at 0xa7d8c0
> show
00(140670425190400,0): id 8c06b8b4567 n=11000000 b=unampdeadbeefboo
END
> so\b \b\b \bshow\b \b\b \b\b \b\b \bq\b \b00(140670425190400,0): id 8c06b8b4567 n=11000000 b=helpddellddellunampdeadbeefboo
END
> ^C[ 346.616114] BUG: unable to handle kernel paging request at ffff88001fe16049
[ 346.617062] IP: [<ffffffff8126cc69>] unmap_grant_pages+0x75/0xd0
[ 346.617062] PGD 1804067 PUD 1808067 PMD e31e067 PTE 0
[ 346.617062] Oops: 0002 [#1] SMP
[ 346.617062] last sysfs file: /sys/devices/system/cpu/cpu0/cache/index2/shared_cpu_map
[ 346.617062] CPU 0
[ 346.617062] Modules linked in: xen_evtchn fbcon tileblit font bitblit ttm softcursor drm_kms_helper xen_blkfront xen_netfront xen_fbfront fb_sys_fops sysimgblt sysfillrect syscopyarea xen_kbdfront xenfs [last unloaded: dump_dma]
[ 346.617062]
[ 346.617062] Pid: 2242, comm: test_gnt Not tainted 2.6.38-rc2-00045-gcb81bee #1 /
[ 346.617062] RIP: e030:[<ffffffff8126cc69>] [<ffffffff8126cc69>] unmap_grant_pages+0x75/0xd0
[ 346.617062] RSP: e02b:ffff88001fe2bba8 EFLAGS: 00010202
[ 346.617062] RAX: 0000000000000049 RBX: ffff880020685a20 RCX: 0000000000000158
[ 346.617062] RDX: ffff880000000000 RSI: 0000000000000000 RDI: ffff880020685a20
[ 346.617062] RBP: ffff88001fe2bbc8 R08: ffff88001fe2bc88 R09: ffff88002cfd91e0
[ 346.617062] R10: 00000050b3edc8ec R11: 00000050b3edc8ec R12: 0000000000000000
[ 346.617062] R13: 0000000000000001 R14: 000000001fe16049 R15: 0000000000000001
[ 346.617062] FS: 00007ff062b99700(0000) GS:ffff88002cfce000(0000) knlGS:0000000000000000
[ 346.617062] CS: e033 DS: 0000 ES: 0000 CR0: 000000008005003b
[ 346.617062] CR2: ffff88001fe16049 CR3: 000000001edd5000 CR4: 0000000000000660
[ 346.617062] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 346.617062] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[ 346.617062] Process test_gnt (pid: 2242, threadinfo ffff88001fe2a000, task ffff8800276d74f0)
[ 346.617062] Stack:
[ 346.617062] ffff880020685a20 ffff880020685a90 ffff880020685a80 ffff8800276e9320
[ 346.617062] ffff88001fe2bbf8 ffffffff8126d3a8 ffff8800276e9320 ffff880020685ab0
[ 346.617062] ffff8800276e92c0 ffff8800276e92c0 ffff88001fe2bc18 ffffffff810ec4dd
[ 346.617062] Call Trace:
[ 346.617062] [<ffffffff8126d3a8>] mn_release+0x3a/0x6e
[ 346.617062] [<ffffffff810ec4dd>] __mmu_notifier_release+0x51/0x85
[ 346.617062] [<ffffffff810d9756>] exit_mmap+0x27/0x101
[ 346.617062] [<ffffffff8104739e>] mmput+0x30/0xd7
[ 346.617062] [<ffffffff8104b173>] exit_mm+0x129/0x136
[ 346.617062] [<ffffffff8104cc1b>] do_exit+0x208/0x7aa
[ 346.617062] [<ffffffff81006689>] ? xen_force_evtchn_callback+0xd/0xf
[ 346.617062] [<ffffffff81006cd2>] ? check_events+0x12/0x20
[ 346.617062] [<ffffffff811fd12f>] ? do_raw_spin_lock+0x6b/0x120
[ 346.617062] [<ffffffff8104d22f>] do_group_exit+0x72/0x9a
[ 346.617062] [<ffffffff81059fa9>] get_signal_to_deliver+0x360/0x37f
[ 346.617062] [<ffffffff81274492>] ? n_tty_read+0x6d5/0x7ad
[ 346.617062] [<ffffffff81009f53>] do_signal+0x6d/0x68b
[ 346.617062] [<ffffffff8103dbd0>] ? __wake_up+0x3f/0x48
[ 346.617062] [<ffffffff81276bb6>] ? put_ldisc+0xac/0xb1
[ 346.617062] [<ffffffff81276ca5>] ? tty_ldisc_deref+0x9/0xb
[ 346.617062] [<ffffffff8126f943>] ? tty_read+0x8c/0xc8
[ 346.617062] [<ffffffff8100a598>] do_notify_resume+0x27/0x5f
[ 346.617062] [<ffffffff8100ac60>] int_signal+0x12/0x17
[ 346.617062] Code: 00 00 00 88 ff ff 49 01 c6 48 b8 b7 6d db b6 6d db b6 6d 49 c1 fe 03 4c 0f af f0 48 63 43 30 49 c1 e6 0c 25 ff 0f 00 00 49 01 c6 <41> c6 04 16 00 83 63 2c fe 49 63 fc 48 8b 73 50 44 89 ea 48 6b
[ 346.617062] RIP [<ffffffff8126cc69>] unmap_grant_pages+0x75/0xd0
[ 346.617062] RSP <ffff88001fe2bba8>
[ 346.617062] CR2: ffff88001fe16049
[ 346.617062] ---[ end trace 31f588d5e4d9bf59 ]---
[ 346.617062] Fixing recursive fault but reboot is needed!
ccc
^C^C^C
Feb 7 22:57:24 (none) init: starting pid 2244, tty '': '/etc/init.d/halt'
Usage: /etc/init.d/halt {start}
\rThe system is going down NOW!
\rSent SIGTERM to all processes
Feb 7 22:57:24 (none) exiting on signal 15
\rSent SIGKILL to all processes
\rRequesting system poweroff
[ 515.071484] xenbus_dev_shutdown: device/console/0: Initialising != Connected, skipping
[ 515.079285] System halted.
[-- Attachment #4: pv-domain-exporting-grants.log --]
[-- Type: text/plain, Size: 20965 bytes --]
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 <bio-0> 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 <tigran@aivazian.fsnet.co.uk>, 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 <maxk@qualcomm.com>
[ 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
\rinit 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 \b\b\b\b\b\b\b\b\b^[[Kcat /pro\b\b\b\b\b\b\b\b^[[Kdmesg | 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_\b \b\b \bst_gnt
add <domid> return gntref, address
map <domid> <ref> return index, address
adel <gntref> delete <add> internal
ddel <index> delete <map> internal
unmap <address> unmap memory
show show all pages
<word> 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\b \b\b \b\b \b\b \bddel 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\b \b\b \be\b \bdell 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 <domid> return gntref, address
map <domid> <ref> return index, address
adel <gntref> delete <add> internal
ddel <index> delete <map> internal
unmap <address> unmap memory
show show all pages
<word> 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#
[-- Attachment #5: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next prev parent reply other threads:[~2011-02-07 23:14 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-03 17:18 [PATCH v6] Userspace grant communication Daniel De Graaf
2011-02-03 17:18 ` [PATCH 1/6] xen-gntdev: Change page limit to be global instead of per-open Daniel De Graaf
2011-02-03 17:19 ` [PATCH 2/6] xen-gntdev: Use find_vma rather than iterating our vma list manually Daniel De Graaf
2011-02-03 17:19 ` [PATCH 3/6] xen-gntdev: Add reference counting to maps Daniel De Graaf
2011-02-03 17:19 ` [PATCH 4/6] xen-gntdev: Support mapping in HVM domains Daniel De Graaf
2011-02-14 15:51 ` Konrad Rzeszutek Wilk
2011-02-14 17:43 ` Daniel De Graaf
2011-02-14 18:52 ` Konrad Rzeszutek Wilk
2011-02-03 17:19 ` [PATCH 5/6] xen-gntalloc: Userspace grant allocation driver Daniel De Graaf
2011-02-08 22:48 ` Konrad Rzeszutek Wilk
2011-02-09 18:52 ` Daniel De Graaf
2011-02-03 17:19 ` [PATCH 6/6] xen/gntalloc, gntdev: Add unmap notify ioctl Daniel De Graaf
2011-02-14 15:37 ` Konrad Rzeszutek Wilk
2011-02-14 18:07 ` Daniel De Graaf
2011-02-03 19:16 ` [PATCH] xen-gntdev: Fix memory leak when mmap fails Daniel De Graaf
2011-02-07 23:14 ` Konrad Rzeszutek Wilk [this message]
2011-02-08 14:14 ` [PATCH] xen-gntdev: Fix unmap notify on PV domains Daniel De Graaf
2011-02-08 22:58 ` Konrad Rzeszutek Wilk
2011-02-09 20:33 ` [PATCH] xen-gntdev: prevent using UNMAP_NOTIFY_CLEAR_BYTE on read-only mappings Daniel De Graaf
2011-02-09 21:09 ` [PATCH v2] " Daniel De Graaf
2011-02-09 22:22 ` [PATCH] " Jeremy Fitzhardinge
2011-02-09 23:11 ` Daniel De Graaf
2011-02-09 23:15 ` [PATCH v3] " Daniel De Graaf
2011-02-08 21:49 ` [PATCH v6] Userspace grant communication Konrad Rzeszutek Wilk
2011-02-09 20:11 ` [PATCH] xen-gntdev: Use map->vma for checking map validity Daniel De Graaf
2011-02-09 20:12 ` [PATCH] xen-gntdev: Avoid unmapping ranges twice Daniel De Graaf
2011-02-09 21:11 ` [PATCH] xen-gntdev: Avoid double-mapping memory Daniel De Graaf
2011-02-14 16:14 ` [PATCH v6] Userspace grant communication Konrad Rzeszutek Wilk
2011-02-14 16:38 ` Konrad Rzeszutek Wilk
2011-02-14 17:56 ` Daniel De Graaf
2011-02-14 19:21 ` Konrad Rzeszutek Wilk
2011-02-14 20:55 ` Daniel De Graaf
2011-02-14 17:55 ` Daniel De Graaf
2011-02-14 19:04 ` Konrad Rzeszutek Wilk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110207231416.GA12956@dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=Ian.Campbell@citrix.com \
--cc=dgdegra@tycho.nsa.gov \
--cc=jeremy@goop.org \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).