All of lore.kernel.org
 help / color / mirror / Atom feed
* e820_host problems
@ 2012-10-22 10:11 Fan, Huaxiang
  2012-10-22 13:50 ` Pasi Kärkkäinen
  0 siblings, 1 reply; 6+ messages in thread
From: Fan, Huaxiang @ 2012-10-22 10:11 UTC (permalink / raw)
  To: xen-devel@lists.xen.org; +Cc: xen-users@lists.xen.org


[-- Attachment #1.1: Type: text/plain, Size: 938 bytes --]

Hi,

I've set up a PV guest using xen 4.2 and kernel 2.6.32.57. the hypervior is 64bits whereas the dom0 and domu are 32bits. It seems to me that the memory allocation to domu is *limited to 3360M* when e820_host is enabled. I attached the domu configuration file and output of the command xl -vvv create and xl list.

I am looking forward your reply.
Thanks,
HUAXIANG FAN
Software Engineer II

WEBSENSE NETWORK SECURITY TECHNOLOGY R&D (BEIJING) CO. LTD.
ph: +8610.5884.4327
fax: +8610.5884.4727
www.websense.cn<http://www.websense.cn>

Websense TRITON(tm)
For Essential Information Protection(tm)
Web Security<http://www.websense.com/content/Regional/SCH/WebSecurityOverview.aspx> | Data Security<http://www.websense.com/content/Regional/SCH/DataSecurity.aspx> | Email Security<http://www.websense.com/content/Regional/SCH/MessagingSecurity.aspx>



 Protected by Websense Hosted Email Security -- www.websense.com 

[-- Attachment #1.2: Type: text/html, Size: 4206 bytes --]

[-- Attachment #2: domainWCG.cfg --]
[-- Type: application/octet-stream, Size: 370 bytes --]

kernel = "/root/domainWCG.kernel"
ramdisk = "/root/domainWCG.initrd.img"
e820_host=1
memory=10240
name = "wcg"
vif  = [ 'ip=169.254.254.3,vifname=wcg.0' ]
disk = ['phy:/dev/lv_appliance/wcg,xvda1,w',
        'phy:/dev/sdb,xvdb,w']
root  = "/dev/xvda1 ro"
extra="iommu=soft printk.printk_time=1 console=hvc0"
pci=['01:00.0','01:00.1']
vcpus=4
cpus="4,5,6,7"

[-- Attachment #3: xl-create.output --]
[-- Type: application/octet-stream, Size: 12138 bytes --]

[root@localhost ~]# xl -vvv create domainWCG.cfg 
Parsing config from domainWCG.cfg
libxl: debug: libxl_create.c:1173:do_domain_create: ao 0x806bef8: create: how=(nil) callback=(nil) poller=0x806b688
libxl: debug: libxl_device.c:229:libxl__device_disk_set_backend: Disk vdev=xvda1 spec.backend=unknown
libxl: debug: libxl_device.c:265:libxl__device_disk_set_backend: Disk vdev=xvda1, using backend phy
libxl: debug: libxl_device.c:229:libxl__device_disk_set_backend: Disk vdev=xvdb spec.backend=unknown
libxl: debug: libxl_device.c:265:libxl__device_disk_set_backend: Disk vdev=xvdb, using backend phy
libxl: debug: libxl_create.c:677: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:561:libxl__ev_xswatch_deregister: watch w=0x806c0e4: deregister unregistered
domainbuilder: detail: xc_dom_allocate: cmdline="root=/dev/xvda1 ro iommu=soft printk.printk_time=1 console=hvc0", features="(null)"
libxl: debug: libxl_dom.c:380:libxl__build_pv: pv kernel mapped 0 path /root/domainWCG.kernel

domainbuilder: detail: xc_dom_kernel_file: filename="/root/domainWCG.kernel"
domainbuilder: detail: xc_dom_malloc_filemap    : 1861 kB
domainbuilder: detail: xc_dom_ramdisk_file: filename="/root/domainWCG.initrd.img"
domainbuilder: detail: xc_dom_malloc_filemap    : 10011 kB
domainbuilder: detail: xc_dom_boot_xen_init: ver 4.2, 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            : 3763 kB
domainbuilder: detail: xc_dom_do_gunzip: unzip ok, 0x1c9da6 -> 0x3ace9c
domainbuilder: detail: loader probe OK
xc: detail: elf_parse_binary: phdr: paddr=0x1000000 memsz=0x2b1000
xc: detail: elf_parse_binary: phdr: paddr=0x12b1000 memsz=0x23f000
xc: detail: elf_parse_binary: memory: 0x1000000 -> 0x14f0000
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 = 0xc0000000
xc: detail: elf_xen_parse_note: ENTRY = 0xc12f5000
xc: detail: elf_xen_parse_note: HYPERCALL_PAGE = 0xc1002000
xc: detail: elf_xen_parse_note: FEATURES = "!writable_page_tables|pae_pgdir_above_4gb"
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 = 0xf5800000
xc: detail: elf_xen_parse_note: PADDR_OFFSET = 0x0
xc: detail: elf_xen_addr_calc_check: addresses:
xc: detail:     virt_base        = 0xc0000000
xc: detail:     elf_paddr_offset = 0x0
xc: detail:     virt_offset      = 0xc0000000
xc: detail:     virt_kstart      = 0xc1000000
xc: detail:     virt_kend        = 0xc14f0000
xc: detail:     virt_entry       = 0xc12f5000
xc: detail:     p2m_base         = 0xffffffffffffffff
domainbuilder: detail: xc_dom_parse_elf_kernel: xen-3.0-x86_32p: 0xc1000000 -> 0xc14f0000
domainbuilder: detail: xc_dom_mem_init: mem 10240 MB, pages 0x280000 pages, 4k each
domainbuilder: detail: xc_dom_mem_init: 0x280000 pages
domainbuilder: detail: xc_dom_boot_mem_init: called
domainbuilder: detail: x86_compat: guest xen-3.0-x86_32p, address size 32
domainbuilder: detail: xc_dom_malloc            : 10240 kB
domainbuilder: detail: xc_dom_build_image: called
domainbuilder: detail: xc_dom_alloc_segment:   kernel       : 0xc1000000 -> 0xc14f0000  (pfn 0x1000 + 0x4f0 pages)
domainbuilder: detail: xc_dom_pfn_to_ptr: domU mapping: pfn 0x1000+0x4f0 at 0xb58c5000
xc: detail: elf_load_binary: phdr 0 at 0x0xb58c5000 -> 0x0xb5b76000
xc: detail: elf_load_binary: phdr 1 at 0x0xb5b76000 -> 0x0xb5c13000
domainbuilder: detail: xc_dom_alloc_segment:   ramdisk      : 0xc14f0000 -> 0xc2c0e000  (pfn 0x14f0 + 0x171e pages)
domainbuilder: detail: xc_dom_malloc            : 138 kB
domainbuilder: detail: xc_dom_pfn_to_ptr: domU mapping: pfn 0x14f0+0x171e at 0xb4184000
domainbuilder: detail: xc_dom_do_gunzip: unzip ok, 0x9c6f34 -> 0x171d410
domainbuilder: detail: xc_dom_alloc_segment:   phys2mach    : 0xc2c0e000 -> 0xc360e000  (pfn 0x2c0e + 0xa00 pages)
domainbuilder: detail: xc_dom_pfn_to_ptr: domU mapping: pfn 0x2c0e+0xa00 at 0xb3784000
domainbuilder: detail: xc_dom_alloc_page   :   start info   : 0xc360e000 (pfn 0x360e)
domainbuilder: detail: xc_dom_alloc_page   :   xenstore     : 0xc360f000 (pfn 0x360f)
domainbuilder: detail: xc_dom_alloc_page   :   console      : 0xc3610000 (pfn 0x3610)
domainbuilder: detail: nr_page_tables: 0x00000000ffffffff/32: 0x0000000000000000 -> 0xffffffffffffffff, 1 table(s)
domainbuilder: detail: nr_page_tables: 0x000000003fffffff/30: 0x00000000c0000000 -> 0x00000000ffffffff, 1 table(s)
domainbuilder: detail: nr_page_tables: 0x00000000001fffff/21: 0x00000000c0000000 -> 0x00000000c37fffff, 28 table(s)
domainbuilder: detail: xc_dom_alloc_segment:   page tables  : 0xc3611000 -> 0xc362f000  (pfn 0x3611 + 0x1e pages)
domainbuilder: detail: xc_dom_pfn_to_ptr: domU mapping: pfn 0x3611+0x1e at 0xb3766000
domainbuilder: detail: xc_dom_alloc_page   :   boot stack   : 0xc362f000 (pfn 0x362f)
domainbuilder: detail: xc_dom_build_image  : virt_alloc_end : 0xc3630000
domainbuilder: detail: xc_dom_build_image  : virt_pgtab_end : 0xc3800000
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
domainbuilder: detail: xc_dom_compat_check: supported guest type: xen-3.0-x86_32p <= matches
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 32bit, pages 0x280000
domainbuilder: detail: clear_page: pfn 0x3610, mfn 0x40532c
domainbuilder: detail: clear_page: pfn 0x360f, mfn 0x40532d
domainbuilder: detail: xc_dom_pfn_to_ptr: domU mapping: pfn 0x360e+0x1 at 0xb3763000
domainbuilder: detail: start_info_x86_32: called
domainbuilder: detail: setup_hypercall_page: vaddr=0xc1002000 pfn=0x1002
domainbuilder: detail: domain builder memory footprint
domainbuilder: detail:    allocated
domainbuilder: detail:       malloc             : 14234 kB
domainbuilder: detail:       anon mmap          : 0 bytes
domainbuilder: detail:    mapped
domainbuilder: detail:       file mmap          : 11872 kB
domainbuilder: detail:       domU mmap          : 38 MB
domainbuilder: detail: arch_setup_bootlate: shared_info: pfn 0x0, mfn 0xbf22d
domainbuilder: detail: shared_info_x86_32: called
domainbuilder: detail: vcpu_x86_32: called
domainbuilder: detail: vcpu_x86_32: cr3: pfn 0x3611 mfn 0x40532b
domainbuilder: detail: launch_vm: called, ctxt=0xbf83886c
domainbuilder: detail: xc_dom_release: called
libxl: debug: libxl_device.c:229:libxl__device_disk_set_backend: Disk vdev=xvda1 spec.backend=phy
libxl: debug: libxl_event.c:512:libxl__ev_xswatch_register: watch w=0x806cbd0 wpath=/local/domain/0/backend/vbd/7/51713/state token=3/0: register slotnum=3
libxl: debug: libxl_device.c:229:libxl__device_disk_set_backend: Disk vdev=xvdb spec.backend=phy
libxl: debug: libxl_device.c:229:libxl__device_disk_set_backend: Disk vdev=xvdb spec.backend=phy
libxl: debug: libxl_event.c:512:libxl__ev_xswatch_register: watch w=0x806d540 wpath=/local/domain/0/backend/vbd/7/51728/state token=2/1: register slotnum=2
libxl: debug: libxl_create.c:1186:do_domain_create: ao 0x806bef8: inprogress: poller=0x806b688, flags=i
libxl: debug: libxl_event.c:457:watchfd_callback: watch w=0x806cbd0 wpath=/local/domain/0/backend/vbd/7/51713/state token=3/0: event epath=/local/domain/0/backend/vbd/7/51713/state
libxl: debug: libxl_event.c:596:devstate_watch_callback: backend /local/domain/0/backend/vbd/7/51713/state wanted state 2 ok
libxl: debug: libxl_event.c:549:libxl__ev_xswatch_deregister: watch w=0x806cbd0 wpath=/local/domain/0/backend/vbd/7/51713/state token=3/0: deregister slotnum=3
libxl: debug: libxl_event.c:561:libxl__ev_xswatch_deregister: watch w=0x806cbd0: deregister unregistered
libxl: debug: libxl_device.c:916:device_hotplug: calling hotplug script: /etc/xen/scripts/block add
libxl: debug: libxl_event.c:426:watchfd_callback: watch epath=/local/domain/0/backend/vbd/7/51713/state token=3/0: empty slot
libxl: debug: libxl_event.c:457:watchfd_callback: watch w=0x806d540 wpath=/local/domain/0/backend/vbd/7/51728/state token=2/1: event epath=/local/domain/0/backend/vbd/7/51728/state
libxl: debug: libxl_event.c:596:devstate_watch_callback: backend /local/domain/0/backend/vbd/7/51728/state wanted state 2 ok
libxl: debug: libxl_event.c:549:libxl__ev_xswatch_deregister: watch w=0x806d540 wpath=/local/domain/0/backend/vbd/7/51728/state token=2/1: deregister slotnum=2
libxl: debug: libxl_event.c:561:libxl__ev_xswatch_deregister: watch w=0x806d540: deregister unregistered
libxl: debug: libxl_device.c:916:device_hotplug: calling hotplug script: /etc/xen/scripts/block add
libxl: debug: libxl_event.c:426:watchfd_callback: watch epath=/local/domain/0/backend/vbd/7/51728/state token=2/1: empty slot
libxl: debug: libxl_event.c:512:libxl__ev_xswatch_register: watch w=0x806eb28 wpath=/local/domain/0/backend/vif/7/0/state token=2/2: register slotnum=2
libxl: debug: libxl_event.c:457:watchfd_callback: watch w=0x806eb28 wpath=/local/domain/0/backend/vif/7/0/state token=2/2: event epath=/local/domain/0/backend/vif/7/0/state
libxl: debug: libxl_event.c:600:devstate_watch_callback: backend /local/domain/0/backend/vif/7/0/state wanted state 2 still waiting state 1
libxl: debug: libxl_event.c:457:watchfd_callback: watch w=0x806eb28 wpath=/local/domain/0/backend/vif/7/0/state token=2/2: event epath=/local/domain/0/backend/vif/7/0/state
libxl: debug: libxl_event.c:596:devstate_watch_callback: backend /local/domain/0/backend/vif/7/0/state wanted state 2 ok
libxl: debug: libxl_event.c:549:libxl__ev_xswatch_deregister: watch w=0x806eb28 wpath=/local/domain/0/backend/vif/7/0/state token=2/2: deregister slotnum=2
libxl: debug: libxl_event.c:561:libxl__ev_xswatch_deregister: watch w=0x806eb28: deregister unregistered
libxl: debug: libxl_device.c:916:device_hotplug: calling hotplug script: /etc/xen/scripts/vif-bridge online
libxl: error: libxl_pci.c:1001:libxl__device_pci_reset: The kernel doesn't support reset from sysfs for PCI device 0000:01:00.0
libxl: error: libxl_pci.c:1001:libxl__device_pci_reset: The kernel doesn't support reset from sysfs for PCI device 0000:01:00.1
libxl: debug: libxl_pci.c:85:libxl__create_pci_backend: Creating pci backend
libxl: debug: libxl_x86.c:90:e820_sanitize: Memory: 10485760kB End of RAM: 0xbf699 (PFN) Delta: 7349660kB, PCI start: 3136100kB (0xbf699 PFN), Balloon 0kB

libxl: debug: libxl_x86.c:209:e820_sanitize: :  [0 -> bf699] RAM
libxl: debug: libxl_x86.c:209:e820_sanitize: :  [bf699 -> bf6af] Reserved
libxl: debug: libxl_x86.c:209:e820_sanitize: :  [bf6af -> bf6ce] ACPI
libxl: debug: libxl_x86.c:209:e820_sanitize: :  [bf6ce -> c0000] Reserved
libxl: debug: libxl_x86.c:209:e820_sanitize: :  [e0000 -> f0000] Reserved
libxl: debug: libxl_x86.c:209:e820_sanitize: :  [fe000 -> 100000] Reserved
libxl: debug: libxl_event.c:1667:libxl__ao_progress_report: ao 0x806bef8: progress report: ignored
libxl: debug: libxl_event.c:1497:libxl__ao_complete: ao 0x806bef8: complete, rc=0
libxl: debug: libxl_event.c:1469:libxl__ao__destroy: ao 0x806bef8: destroy
Daemon running with PID 5930
xc: debug: hypercall buffer: total allocations:199 total releases:199
xc: debug: hypercall buffer: current allocations:0 maximum allocations:2
xc: debug: hypercall buffer: cache current size:2
xc: debug: hypercall buffer: cache hits:191 misses:2 toobig:6

[-- Attachment #4: xl-list.output --]
[-- Type: application/octet-stream, Size: 268 bytes --]

[root@localhost ~]# xl list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  2048     2     r-----     246.1
wcg                                          7  3360     4     -b----      50.3

[-- Attachment #5: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-03-25 14:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-22 10:11 e820_host problems Fan, Huaxiang
2012-10-22 13:50 ` Pasi Kärkkäinen
2012-10-24  6:02   ` Fan, Huaxiang
2012-12-21 21:24     ` Konrad Rzeszutek Wilk
     [not found]     ` <m2n.s.1TmAB7-134992@chiark.greenend.org.uk>
2013-02-12 15:51       ` Ian Jackson
2013-03-25 14:31         ` Konrad Rzeszutek Wilk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.