[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [RFC PATCH 0/15]: PVH xen: Patches for PVH guests
On 15/01/13 20:49, Mukesh Rathor wrote: > Hi Roger, > > Ah yes, you need the following patch on your linux side. Please keep > me posted how it goes, and whatever testing/performance stuff you do. Hello Mukesh, I've applied the following patch to the Linux kernel and recompiled, and now features in elf note seems to be complete (as reported by xl): xc: detail: elf_xen_parse_note: FEATURES = "!writable_page_tables|pae_pgdir_above_4gb|writable_descriptor_tables|auto_translated_physmap|supervisor_mode_kernel|hvm_callback_vector" But still the domain boots in PV mode. I've attached the output of 'xl -vvv create config.cfg' and dmesg. I think I've got all the hypervisor/tools patches applied correctly, but I will check again tomorrow morning in case I'm missing something. xl -vvv create config.cfg: Parsing config from pvh.cfg libxl: debug: libxl_create.c:1194:do_domain_create: ao 0x819da0: create: how=(nil) callback=(nil) poller=0x819e00 libxl: debug: libxl_create.c:679:initiate_domain_create: running bootloader libxl: debug: libxl_bootloader.c:327:libxl__bootloader_run: no bootloader configured, using user supplied kernel libxl: debug: libxl_event.c:562:libxl__ev_xswatch_deregister: watch w=0x81a160: deregister unregistered libxl: debug: libxl_numa.c:435:libxl__get_numa_candidate: New best NUMA placement candidate found: nr_nodes=1, nr_cpus=2, nr_vcpus=4, free_memkb=5030 libxl: detail: libxl_dom.c:192:numa_place_domain: NUMA placement candidate with 1 nodes, 2 cpus and 5030 KB free selected domainbuilder: detail: xc_dom_allocate: cmdline="debug loglevel=9", features="(null)" libxl: debug: libxl_dom.c:395:libxl__build_pv: pv kernel mapped 0 path /boot/vmlinuz-3.7.0-rc3+ domainbuilder: detail: xc_dom_kernel_file: filename="/boot/vmlinuz-3.7.0-rc3+" domainbuilder: detail: xc_dom_malloc_filemap : 3791 kB domainbuilder: detail: xc_dom_ramdisk_file: filename="/boot/initrd.img-3.7.0-rc3+" domainbuilder: detail: xc_dom_malloc_filemap : 3754 kB domainbuilder: detail: xc_dom_boot_xen_init: ver 4.3, caps xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64 domainbuilder: detail: xc_dom_parse_image: called domainbuilder: detail: xc_dom_find_loader: trying ELF-generic loader ... domainbuilder: detail: loader probe failed domainbuilder: detail: xc_dom_find_loader: trying Linux bzImage loader ... domainbuilder: detail: xc_dom_malloc : 13466 kB domainbuilder: detail: xc_dom_do_gunzip: unzip ok, 0x3ab83e -> 0xd26920 domainbuilder: detail: loader probe OK xc: detail: elf_parse_binary: phdr: paddr=0x1000000 memsz=0x7e4000 xc: detail: elf_parse_binary: phdr: paddr=0x1800000 memsz=0x8b0f0 xc: detail: elf_parse_binary: phdr: paddr=0x188c000 memsz=0x13e00 xc: detail: elf_parse_binary: phdr: paddr=0x18a0000 memsz=0x573000 xc: detail: elf_parse_binary: memory: 0x1000000 -> 0x1e13000 xc: detail: elf_xen_parse_note: GUEST_OS = "linux" xc: detail: elf_xen_parse_note: GUEST_VERSION = "2.6" xc: detail: elf_xen_parse_note: XEN_VERSION = "xen-3.0" xc: detail: elf_xen_parse_note: VIRT_BASE = 0xffffffff80000000 xc: detail: elf_xen_parse_note: ENTRY = 0xffffffff818a0210 xc: detail: elf_xen_parse_note: HYPERCALL_PAGE = 0xffffffff81001000 xc: detail: elf_xen_parse_note: FEATURES = "!writable_page_tables|pae_pgdir_above_4gb|writable_descriptor_tables|auto_translated_physmap|supervisor_mode_kernel|hvm_callback_vector" xc: detail: elf_xen_parse_note: PAE_MODE = "yes" xc: detail: elf_xen_parse_note: LOADER = "generic" xc: detail: elf_xen_parse_note: unknown xen elf note (0xd) xc: detail: elf_xen_parse_note: SUSPEND_CANCEL = 0x1 xc: detail: elf_xen_parse_note: HV_START_LOW = 0xffff800000000000 xc: detail: elf_xen_parse_note: PADDR_OFFSET = 0x0 xc: detail: elf_xen_addr_calc_check: addresses: xc: detail: virt_base = 0xffffffff80000000 xc: detail: elf_paddr_offset = 0x0 xc: detail: virt_offset = 0xffffffff80000000 xc: detail: virt_kstart = 0xffffffff81000000 xc: detail: virt_kend = 0xffffffff81e13000 xc: detail: virt_entry = 0xffffffff818a0210 xc: detail: p2m_base = 0xffffffffffffffff domainbuilder: detail: xc_dom_parse_elf_kernel: xen-3.0-x86_64: 0xffffffff81000000 -> 0xffffffff81e13000 domainbuilder: detail: xc_dom_mem_init: mem 1024 MB, pages 0x40000 pages, 4k each domainbuilder: detail: xc_dom_mem_init: 0x40000 pages domainbuilder: detail: xc_dom_boot_mem_init: called domainbuilder: detail: x86_compat: guest xen-3.0-x86_64, address size 64 domainbuilder: detail: xc_dom_malloc : 2048 kB domainbuilder: detail: xc_dom_build_image: called domainbuilder: detail: xc_dom_alloc_segment: kernel : 0xffffffff81000000 -> 0xffffffff81e13000 (pfn 0x1000 + 0xe13 pages) domainbuilder: detail: xc_dom_pfn_to_ptr: domU mapping: pfn 0x1000+0xe13 at 0x7f65ae8fd000 xc: detail: _elf_load_binary: phdr 0 at 0x0x7f65ae8fd000 -> 0x0x7f65af0e1000 xc: detail: _elf_load_binary: phdr 1 at 0x0x7f65af0fd000 -> 0x0x7f65af1880f0 xc: detail: _elf_load_binary: phdr 2 at 0x0x7f65af189000 -> 0x0x7f65af19ce00 xc: detail: _elf_load_binary: phdr 3 at 0x0x7f65af19d000 -> 0x0x7f65af223000 domainbuilder: detail: xc_dom_alloc_segment: ramdisk : 0xffffffff81e13000 -> 0xffffffff826a6000 (pfn 0x1e13 + 0x893 pages) domainbuilder: detail: xc_dom_pfn_to_ptr: domU mapping: pfn 0x1e13+0x893 at 0x7f65ae06a000 domainbuilder: detail: xc_dom_do_gunzip: unzip ok, 0x3aab4e -> 0x892210 domainbuilder: detail: xc_dom_alloc_segment: phys2mach : 0xffffffff826a6000 -> 0xffffffff828a6000 (pfn 0x26a6 + 0x200 pages) domainbuilder: detail: xc_dom_pfn_to_ptr: domU mapping: pfn 0x26a6+0x200 at 0x7f65ade6a000 domainbuilder: detail: xc_dom_alloc_page : start info : 0xffffffff828a6000 (pfn 0x28a6) domainbuilder: detail: xc_dom_alloc_page : xenstore : 0xffffffff828a7000 (pfn 0x28a7) domainbuilder: detail: xc_dom_alloc_page : console : 0xffffffff828a8000 (pfn 0x28a8) domainbuilder: detail: nr_page_tables: 0x0000ffffffffffff/48: 0xffff000000000000 -> 0xffffffffffffffff, 1 table(s) domainbuilder: detail: nr_page_tables: 0x0000007fffffffff/39: 0xffffff8000000000 -> 0xffffffffffffffff, 1 table(s) domainbuilder: detail: nr_page_tables: 0x000000003fffffff/30: 0xffffffff80000000 -> 0xffffffffbfffffff, 1 table(s) domainbuilder: detail: nr_page_tables: 0x00000000001fffff/21: 0xffffffff80000000 -> 0xffffffff82bfffff, 22 table(s) domainbuilder: detail: xc_dom_alloc_segment: page tables : 0xffffffff828a9000 -> 0xffffffff828c2000 (pfn 0x28a9 + 0x19 pages) domainbuilder: detail: xc_dom_pfn_to_ptr: domU mapping: pfn 0x28a9+0x19 at 0x7f65b2bf6000 domainbuilder: detail: xc_dom_alloc_page : boot stack : 0xffffffff828c2000 (pfn 0x28c2) domainbuilder: detail: xc_dom_build_image : virt_alloc_end : 0xffffffff828c3000 domainbuilder: detail: xc_dom_build_image : virt_pgtab_end : 0xffffffff82c00000 domainbuilder: detail: xc_dom_boot_image: called domainbuilder: detail: arch_setup_bootearly: doing nothing domainbuilder: detail: xc_dom_compat_check: supported guest type: xen-3.0-x86_64 <= matches domainbuilder: detail: xc_dom_compat_check: supported guest type: xen-3.0-x86_32p domainbuilder: detail: xc_dom_compat_check: supported guest type: hvm-3.0-x86_32 domainbuilder: detail: xc_dom_compat_check: supported guest type: hvm-3.0-x86_32p domainbuilder: detail: xc_dom_compat_check: supported guest type: hvm-3.0-x86_64 domainbuilder: detail: xc_dom_update_guest_p2m: dst 64bit, pages 0x40000 domainbuilder: detail: clear_page: pfn 0x28a8, mfn 0x18ba7e domainbuilder: detail: clear_page: pfn 0x28a7, mfn 0x18ba7f domainbuilder: detail: xc_dom_pfn_to_ptr: domU mapping: pfn 0x28a6+0x1 at 0x7f65b2c17000 domainbuilder: detail: start_info_x86_64: called domainbuilder: detail: setup_hypercall_page: vaddr=0xffffffff81001000 pfn=0x1001 domainbuilder: detail: domain builder memory footprint domainbuilder: detail: allocated domainbuilder: detail: malloc : 15665 kB domainbuilder: detail: anon mmap : 0 bytes domainbuilder: detail: mapped domainbuilder: detail: file mmap : 7546 kB domainbuilder: detail: domU mmap : 25344 kB domainbuilder: detail: arch_setup_bootlate: shared_info: pfn 0x0, mfn 0xdfb0a domainbuilder: detail: shared_info_x86_64: called domainbuilder: detail: vcpu_x86_64: called domainbuilder: detail: vcpu_x86_64: cr3: pfn 0x28a9 mfn 0x18ba7d domainbuilder: detail: launch_vm: called, ctxt=0x7fff45fa4ba0 domainbuilder: detail: xc_dom_release: called libxl: debug: libxl_event.c:1668:libxl__ao_progress_report: ao 0x819da0: progress report: ignored libxl: debug: libxl_event.c:1500:libxl__ao_complete: ao 0x819da0: complete, rc=0 libxl: debug: libxl_create.c:1207:do_domain_create: ao 0x819da0: inprogress: poller=0x819e00, flags=ic libxl: debug: libxl_event.c:1472:libxl__ao__destroy: ao 0x819da0: destroy Daemon running with PID 18985 xc: debug: hypercall buffer: total allocations:204 total releases:204 xc: debug: hypercall buffer: current allocations:0 maximum allocations:4 xc: debug: hypercall buffer: cache current size:4 xc: debug: hypercall buffer: cache hits:194 misses:4 toobig:6 dmesg of DomU: [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 3.7.0-rc3+ (root@loki) (gcc version 4.4.5 (Debian 4.4.5-8) ) #0 SMP Tue Jan 15 12:34:15 GMT 2013 [ 0.000000] Command line: debug loglevel=9 [ 0.000000] ACPI in unprivileged domain disabled [ 0.000000] e820: BIOS-provided physical RAM map: [ 0.000000] Xen: [mem 0x0000000000000000-0x000000000009ffff] usable [ 0.000000] Xen: [mem 0x00000000000a0000-0x00000000000fffff] reserved [ 0.000000] Xen: [mem 0x0000000000100000-0x000000003fffffff] usable [ 0.000000] NX (Execute Disable) protection: active [ 0.000000] DMI not present or invalid. [ 0.000000] e820: update [mem 0x00000000-0x0000ffff] usable ==> reserved [ 0.000000] e820: remove [mem 0x000a0000-0x000fffff] usable [ 0.000000] No AGP bridge found [ 0.000000] e820: last_pfn = 0x40000 max_arch_pfn = 0x400000000 [ 0.000000] initial memory mapped: [mem 0x00000000-0x026a5fff] [ 0.000000] Base memory trampoline at [ffff88000009a000] 9a000 size 24576 [ 0.000000] init_memory_mapping: [mem 0x00000000-0x3fffffff] [ 0.000000] [mem 0x00000000-0x3fffffff] page 4k [ 0.000000] kernel direct mapping tables up to 0x3fffffff @ [mem 0x01c11000-0x01e12fff] [ 0.000000] xen: setting RW the range 1dfb000 - 1e13000 [ 0.000000] RAMDISK: [mem 0x01e13000-0x026a5fff] [ 0.000000] Zone ranges: [ 0.000000] DMA [mem 0x00010000-0x00ffffff] [ 0.000000] DMA32 [mem 0x01000000-0xffffffff] [ 0.000000] Normal empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x00010000-0x0009ffff] [ 0.000000] node 0: [mem 0x00100000-0x3fffffff] [ 0.000000] On node 0 totalpages: 262032 [ 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: 3528 pages used for memmap [ 0.000000] DMA32 zone: 254520 pages, LIFO batch:31 [ 0.000000] smpboot: Allowing 2 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] e820: [mem 0x40000000-0xffffffff] available for PCI devices [ 0.000000] Booting paravirtualized kernel on Xen [ 0.000000] Xen version: 4.3-unstable (preserve-AD) [ 0.000000] setup_percpu: NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:2 nr_node_ids:1 [ 0.000000] PERCPU: Embedded 27 pages/cpu @ffff88003fa00000 s81408 r8192 d20992 u1048576 [ 0.000000] pcpu-alloc: s81408 r8192 d20992 u1048576 alloc=1*2097152 [ 0.000000] pcpu-alloc: [0] 0 1 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 258442 [ 0.000000] Kernel command line: debug loglevel=9 [ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes) [ 0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes) [ 0.000000] __ex_table already sorted, skipping sort [ 0.000000] Checking aperture... [ 0.000000] No AGP bridge found [ 0.000000] Memory: 1008584k/1048576k available (4991k kernel code, 448k absent, 39544k reserved, 3755k data, 596k init) [ 0.000000] Hierarchical RCU implementation. [ 0.000000] CONFIG_RCU_FANOUT set to non-default value of 32 [ 0.000000] RCU dyntick-idle grace-period acceleration is enabled. [ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2. [ 0.000000] NR_IRQS:4352 nr_irqs:288 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] tsc: Detected 2400.138 MHz processor [ 0.004000] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.27 BogoMIPS (lpj=9600552) [ 0.004000] pid_max: default: 32768 minimum: 301 [ 0.004000] Mount-cache hash table entries: 256 [ 0.004000] Initializing cgroup subsys cpuacct [ 0.004000] Initializing cgroup subsys devices [ 0.004000] Initializing cgroup subsys freezer [ 0.004000] Initializing cgroup subsys blkio [ 0.004000] Initializing cgroup subsys perf_event [ 0.004000] CPU: Physical Processor ID: 0 [ 0.004000] CPU: Processor Core ID: 0 [ 0.004000] Last level iTLB entries: 4KB 512, 2MB 7, 4MB 7 [ 0.004000] Last level dTLB entries: 4KB 512, 2MB 32, 4MB 32 [ 0.004000] tlb_flushall_shift: 6 [ 0.024997] cpu 0 spinlock event irq 17 [ 0.025035] Performance Events: unsupported p6 CPU model 26 no PMU driver, software events only. [ 0.025401] NMI watchdog: disabled (cpu0): hardware events not enabled [ 0.025818] installing Xen timer for CPU 1 [ 0.025844] cpu 1 spinlock event irq 24 [ 0.025892] SMP alternatives: switching to SMP code [ 0.048000] Brought up 2 CPUs [ 0.048125] devtmpfs: initialized [ 0.052601] Grant tables using version 2 layout. [ 0.052601] Grant table initialized [ 0.052601] NET: Registered protocol family 16 [ 0.052614] PCI: setting up Xen PCI frontend stub [ 0.052614] PCI: pci_cache_line_size set to 64 bytes [ 0.056146] bio: create slab <bio-0> at 0 [ 0.056300] ACPI: Interpreter disabled. [ 0.056300] xen/balloon: Initialising balloon driver. [ 0.056300] xen-balloon: Initialising balloon driver. [ 0.060059] vgaarb: loaded [ 0.060366] SCSI subsystem initialized [ 0.060385] libata version 3.00 loaded. [ 0.060385] PCI: System does not support PCI [ 0.060385] PCI: System does not support PCI [ 0.060545] Switching to clocksource xen [ 0.070850] pnp: PnP ACPI: disabled [ 0.075645] NET: Registered protocol family 2 [ 0.075910] TCP established hash table entries: 131072 (order: 9, 2097152 bytes) [ 0.076260] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes) [ 0.076424] TCP: Hash tables configured (established 131072 bind 65536) [ 0.076637] TCP: reno registered [ 0.076644] UDP hash table entries: 512 (order: 2, 16384 bytes) [ 0.076654] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [ 0.076789] NET: Registered protocol family 1 [ 0.077037] RPC: Registered named UNIX socket transport module. [ 0.077045] RPC: Registered udp transport module. [ 0.077050] RPC: Registered tcp transport module. [ 0.077055] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.077063] PCI: CLS 0 bytes, default 64 [ 0.077268] Trying to unpack rootfs image as initramfs... [ 0.089483] Freeing initrd memory: 8780k freed [ 0.091317] platform rtc_cmos: registered platform RTC device (no PNP device found) [ 0.091691] audit: initializing netlink socket (disabled) [ 0.091716] type=2000 audit(1358288557.333:1): initialized [ 0.092036] HugeTLB registered 2 MB page size, pre-allocated 0 pages [ 0.093221] Installing knfsd (copyright (C) 1996 okir@xxxxxxxxxxxx). [ 0.093916] msgmni has been set to 1987 [ 0.094438] alg: No test for stdrng (krng) [ 0.094504] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253) [ 0.094514] io scheduler noop registered [ 0.094519] io scheduler deadline registered [ 0.094556] io scheduler cfq registered (default) [ 0.094859] Event-channel device installed. [ 0.095612] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled [ 0.096323] brd: module loaded [ 0.097668] loop: module loaded [ 0.098044] Loading iSCSI transport class v2.0-870. [ 0.098442] bnx2fc: Broadcom NetXtreme II FCoE Driver bnx2fc v1.0.12 (Jun 04, 2012) [ 0.138079] isci: Intel(R) C600 SAS Controller Driver - version 1.1.0 [ 0.138172] megaraid cmm: 2.20.2.7 (Release Date: Sun Jul 16 00:01:03 EST 2006) [ 0.138251] megaraid: 2.20.5.1 (Release Date: Thu Nov 16 15:32:35 EST 2006) [ 0.138285] megasas: 06.504.01.00-rc1 Mon. Oct. 1 17:00:00 PDT 2012 [ 0.138324] mpt2sas version 14.100.00.00 loaded [ 0.138433] GDT-HA: Storage RAID Controller Driver. Version: 3.05 [ 0.138464] Broadcom NetXtreme II iSCSI Driver bnx2i v2.7.2.2 (Apr 25, 2012) [ 0.138502] iscsi: registered transport (bnx2i) [ 0.138796] SCSI Media Changer driver v0.25 [ 0.139032] tun: Universal TUN/TAP device driver, 1.6 [ 0.139038] tun: (C) 1999-2004 Max Krasnyansky <maxk@xxxxxxxxxxxx> [ 0.139153] cnic: Broadcom NetXtreme II CNIC Driver cnic v2.5.14 (Sep 30, 2012) [ 0.139226] bnx2x: Broadcom NetXtreme II 5771x/578xx 10/20-Gigabit Ethernet Driver bnx2x 1.78.00-0 (2012/09/27) [ 0.139349] Initialising Xen virtual ethernet driver. [ 0.139543] I2O subsystem v1.325 [ 0.139551] i2o: max drivers = 8 [ 0.139694] Fusion MPT base driver 3.04.20 [ 0.139701] Copyright (c) 1999-2008 LSI Corporation [ 0.139717] Fusion MPT SPI Host driver 3.04.20 [ 0.139747] Fusion MPT FC Host driver 3.04.20 [ 0.139785] Fusion MPT SAS Host driver 3.04.20 [ 0.139828] Fusion MPT misc device (ioctl) driver 3.04.20 [ 0.139895] mptctl: Registered with Fusion MPT base driver [ 0.139903] mptctl: /dev/mptctl @ (major,minor=10,220) [ 0.139998] i8042: PNP: No PS/2 controller found. Probing ports directly. [ 0.140826] i8042: No controller found [ 0.141013] mousedev: PS/2 mouse device common for all mice [ 0.200782] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0 [ 0.200918] ida_remove called for id=0 which is not allocated. [ 0.200929] rtc_cmos: probe of rtc_cmos failed with error -38 [ 0.201246] device-mapper: ioctl: 4.23.0-ioctl (2012-07-25) initialised: dm-devel@xxxxxxxxxx [ 0.201387] pktgen: Packet Generator for packet performance testing. Version: 2.74 [ 0.201568] drop_monitor: Initializing network drop monitor service [ 0.201674] TCP: cubic registered [ 0.201680] NET: Registered protocol family 17 [ 0.201789] NET: Registered protocol family 33 [ 0.201795] Key type rxrpc registered [ 0.201799] Key type rxrpc_s registered [ 0.201821] Key type dns_resolver registered [ 0.201826] openvswitch: Open vSwitch switching datapath [ 0.202174] registered taskstats version 1 [ 0.202284] drivers/rtc/hctosys.c: unable to open rtc device (rtc0) [ 0.202697] Freeing unused kernel memory: 596k freed [ 0.202814] Write protecting the kernel read-only data: 8192k [ 0.206418] Freeing unused kernel memory: 1148k freed [ 0.206738] Freeing unused kernel memory: 112k freed Loading, please wait... [ 0.251816] udev[76]: starting version 164 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |