WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

Re: [Xen-ia64-devel] [Q] about assign_domain_page_replace

Hi, Isaku

Thank you for your patch.

>On Fri, Jun 08, 2007 at 11:52:30PM +0900, Isaku Yamahata wrote:
>> Thank you very much for information. It greatly helped.
>> Could you try the attached patch with the previsou patch?
>> I hope it fixes the foreign domain page mapping case.
>> However there remains the grant table mapping issue.
>
>When backend maps ring page of frontend domain,
>the debug message is printed out.
>So only a few messages is okay.
>When you tested, did you see only a few messages whose backtrace
>includes grant table or many messages?
I retried 15165 + test.patch (including your patch).
I had the only following message while a booting of domU.
But if I do shutdown on the domU, then Hypervisor doesn't panic.
The following backtraces include __do_dom0vp_add_physmap(),
Is that OK? 

(XEN) domain.c:536: arch_domain_create:536 domain 1 pervcpu_vhpt 1
(XEN) tlb_track.c:69: allocated 256 num_entries 256 num_free 256
(XEN) tlb_track.c:115: hash 0xf000004084af0000 hash_size 512
(XEN) regionreg.c:193: ### domain f000000007bc4080: rid=80000-c0000 mp_rid=2000
(XEN) domain.c:573: arch_domain_create: domain=f000000007bc4080
(XEN) mfn=0x000000000102003d, old_mfn=0x0000000001020001
(XEN) assign_domain_page_replace: old_mfn->count_info=0
(XEN) assign_domain_page_replace: mfn->count_info=4
(XEN) assign_domain_page_replace: (owner of old_mfn)=NULL
(XEN) assign_domain_page_replace: (domain_id of mfn)=1
(XEN) 
(XEN) Call Trace:
(XEN)  [<f0000000040ab330>] show_stack+0x80/0xa0
(XEN)                                 sp=f000000007bcfc10 bsp=f000000007bc9598
(XEN)  [<f00000000406f7e0>] assign_domain_page_replace+0x2d0/0x3d0
(XEN)                                 sp=f000000007bcfde0 bsp=f000000007bc9540
(XEN)  [<f000000004070b70>] __dom0vp_add_physmap+0x330/0x630
(XEN)                                 sp=f000000007bcfde0 bsp=f000000007bc94d8
(XEN)  [<f0000000040524c0>] do_dom0vp_op+0x1e0/0x4d0
(XEN)                                 sp=f000000007bcfdf0 bsp=f000000007bc9498
(XEN)  [<f000000004002e30>] fast_hypercall+0x170/0x340
(XEN)                                 sp=f000000007bcfe00 bsp=f000000007bc9498
(XEN) vcpu.c:1059:d1 vcpu_get_lrr0: Unmasked interrupts unsupported
(XEN) vcpu.c:1068:d1 vcpu_get_lrr1: Unmasked interrupts unsupported
(XEN) domain.c:943:d1 Domain set shared_info_va to 0xfffffffffff00000
(XEN) mfn=0x0000000000013402, old_mfn=0x00000000000667bb
(XEN) assign_domain_page_replace: old_mfn->count_info=1
(XEN) assign_domain_page_replace: mfn->count_info=3
(XEN) assign_domain_page_replace: (domain_id of old_mfn)=0
(XEN) assign_domain_page_replace: (domain_id of mfn)=1
(XEN) 
(XEN) Call Trace:
(XEN)  [<f0000000040ab330>] show_stack+0x80/0xa0
(XEN)                                 sp=f000000007bdfbe0 bsp=f000000007bd9478
(XEN)  [<f00000000406f7e0>] assign_domain_page_replace+0x2d0/0x3d0
(XEN)                                 sp=f000000007bdfdb0 bsp=f000000007bd9420
(XEN)  [<f000000004070680>] create_grant_host_mapping+0x1d0/0x390
(XEN)                                 sp=f000000007bdfdb0 bsp=f000000007bd93b8
(XEN)  [<f000000004021110>] do_grant_table_op+0xcb0/0x3350
(XEN)                                 sp=f000000007bdfdc0 bsp=f000000007bd92b0
(XEN)  [<f000000004002e30>] fast_hypercall+0x170/0x340
(XEN)                                 sp=f000000007bdfe00 bsp=f000000007bd92b0
(XEN) mm.c:698:d1 vcpu 0 iip 0xa0000001004fbbc0: bad I/O port access d 1 0x64
(XEN) mfn=0x0000000000060d17, old_mfn=0x0000000000066dfc
(XEN) assign_domain_page_replace: old_mfn->count_info=1
(XEN) assign_domain_page_replace: mfn->count_info=3
(XEN) assign_domain_page_replace: (domain_id of old_mfn)=0
(XEN) assign_domain_page_replace: (domain_id of mfn)=1
(XEN) 
(XEN) Call Trace:
(XEN)  [<f0000000040ab330>] show_stack+0x80/0xa0
(XEN)                                 sp=f000000007bdfbe0 bsp=f000000007bd9498
(XEN)  [<f00000000406f7e0>] assign_domain_page_replace+0x2d0/0x3d0
(XEN)                                 sp=f000000007bdfdb0 bsp=f000000007bd9440
(XEN)  [<f000000004070680>] create_grant_host_mapping+0x1d0/0x390
(XEN)                                 sp=f000000007bdfdb0 bsp=f000000007bd93d8
(XEN)  [<f000000004021110>] do_grant_table_op+0xcb0/0x3350
(XEN)                                 sp=f000000007bdfdc0 bsp=f000000007bd92d0
(XEN)  [<f000000004002e30>] fast_hypercall+0x170/0x340
(XEN)                                 sp=f000000007bdfe00 bsp=f000000007bd92d0
(XEN) mfn=0x00000000000134df, old_mfn=0x0000000000066d42
(XEN) assign_domain_page_replace: old_mfn->count_info=1
(XEN) assign_domain_page_replace: mfn->count_info=3
(XEN) assign_domain_page_replace: (domain_id of old_mfn)=0
(XEN) assign_domain_page_replace: (domain_id of mfn)=1
(XEN) 
(XEN) Call Trace:
(XEN)  [<f0000000040ab330>] show_stack+0x80/0xa0
(XEN)                                 sp=f000000007bdfbe0 bsp=f000000007bd9440
(XEN)  [<f00000000406f7e0>] assign_domain_page_replace+0x2d0/0x3d0
(XEN)                                 sp=f000000007bdfdb0 bsp=f000000007bd93e0
(XEN)  [<f000000004070680>] create_grant_host_mapping+0x1d0/0x390
(XEN)                                 sp=f000000007bdfdb0 bsp=f000000007bd9380
(XEN)  [<f000000004021110>] do_grant_table_op+0xcb0/0x3350
(XEN)                                 sp=f000000007bdfdc0 bsp=f000000007bd9278
(XEN)  [<f000000004002e30>] fast_hypercall+0x170/0x340
(XEN)                                 sp=f000000007bdfe00 bsp=f000000007bd9278



The backtrace seems to be happend at xen_ia64_dom_fw_map() for boot_param.

 111 int
 112 xen_ia64_dom_fw_setup(struct xc_dom_image *d, uint64_t brkimm,
 113                       unsigned long bp_mpa, unsigned long maxmem)
 114 {
[snip..]
 147     /* Create page for boot_param.  */
 148     bp = xen_ia64_dom_fw_map(d, bp_mpa); <<<<<HERE
 149     if (bp == NULL) {
 150         rc = -errno;
 151         goto out;
 152     }
 153     rc = dom_fw_init(d, brkimm, bp, imva_tables_base,
 154                      (unsigned long)imva_hypercall_base, maxmem);
[snip...]
 165 
 166     return rc;
 167 }


Best Regards,

Akio Takebe

Attachment: test.patch
Description: Binary data

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel