xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* qeustion: a panic in __do_update_va_mapping()
@ 2016-11-01 11:01 Xuquan (Quan Xu)
  2016-11-01 11:15 ` Andrew Cooper
  0 siblings, 1 reply; 12+ messages in thread
From: Xuquan (Quan Xu) @ 2016-11-01 11:01 UTC (permalink / raw)
  To: Andrew Cooper
  Cc: George.Dunlap@eu.citrix.com, Jan Beulich, xen-devel@lists.xen.org

Hi Andrew, 

When I run some application with Xen, I encounter a Panic with log as the bottom of this email.
I find this panic is as similar as your fix e4e9d2d4e76bd8fe22 'x86/p2m-ept: don't unmap the EPT pagetable while it is still in use'.

_iiuc_, in __do_update_va_mapping(),

'va' is unmapped before to call flush_tlb_one_mask(.., va).

Specifically, 
va is related to pl1e, pl1e = guest_map_l1e(va, &gl1mfn)...

but va is unmapped here:
out:
    if ( pl1e )
        guest_unmap_l1e(pl1e);

...

Before to call flush_tlb_one_mask(..., va);

Is it right?
Also, I wonder whether I need to move 'put_page(gl1pg)' to the bottom of __do_update_va_mapping().


(XEN) Xen call trace:
(XEN)    [<ffff82c480140223>] panic+0xc3/0x1a0
(XEN)    [<ffff82c48015832a>] invalidate_interrupt+0x2a/0x30
(XEN)    [<ffff82c480126f62>] symbols_lookup+0x22/0x2a0
(XEN)    [<ffff82c480221408>] syscall_enter+0x88/0x8d
(XEN)    [<ffff82c480221408>] syscall_enter+0x88/0x8d
(XEN)    [<ffff82c48012750a>] __print_symbol+0x8a/0xc0
(XEN)    [<ffff82c480221408>] syscall_enter+0x88/0x8d
(XEN)    [<ffff82c48018d5d0>] show_stack+0x110/0x180
(XEN)    [<ffff82c4801186b6>] alloc_heap_pages+0x5f6/0x600
(XEN)    [<ffff82c4801186b6>] alloc_heap_pages+0x5f6/0x600
(XEN)    [<ffff82c48018e414>] do_invalid_op+0x394/0x420
(XEN)    [<ffff82c48021e093>] ept_set_entry+0x4d3/0x820
(XEN)    [<ffff82c480221898>] handle_exception_saved+0x30/0x6e

(XEN)    [<ffff82c4801186b4>] alloc_heap_pages+0x5f4/0x600
(XEN)    [<ffff82c480118130>] alloc_heap_pages+0x70/0x600
(XEN)    [<ffff82c480118734>] alloc_domheap_pages+0x74/0x120
(XEN)    [<ffff82c4801144db>] do_memory_op+0x11db/0x2a40
(XEN)    [<ffff82c4801772ab>] get_page_type+0xb/0x20
(XEN)    [<ffff82c480177462>] get_page_from_l1e+0x1a2/0x680
(XEN)    [<ffff82c480173209>] is_iomem_page+0x9/0x80
(XEN)    [<ffff82c48017a655>] mod_l1_entry+0x1f5/0x720
(XEN)    [<ffff82c4801851dc>] flush_area_mask+0x7c/0x140
(XEN)    [<ffff82c48017ca53>] __do_update_va_mapping+0x453/0x7a0
(XEN)    [<ffff82c480226161>] do_iret+0xc1/0x1a0
(XEN)    [<ffff82c480221408>] syscall_enter+0x88/0x8d
(XEN)
(XEN)
(XEN) ****************************************
(XEN) Panic on CPU 30:
(XEN) Xen BUG at page_alloc.c:429
(XEN) ****************************************
(XEN)
(XEN) Reboot in five seconds...



Quan


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

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

end of thread, other threads:[~2016-11-03 13:45 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-01 11:01 qeustion: a panic in __do_update_va_mapping() Xuquan (Quan Xu)
2016-11-01 11:15 ` Andrew Cooper
2016-11-01 11:23   ` Xuquan (Quan Xu)
2016-11-01 11:41     ` Andrew Cooper
2016-11-01 11:57       ` Xuquan (Quan Xu)
2016-11-01 11:59         ` Andrew Cooper
2016-11-01 12:07           ` Xuquan (Quan Xu)
2016-11-01 13:21             ` Andrew Cooper
2016-11-02  0:37               ` Xuquan (Quan Xu)
     [not found]               ` <E0A769A898ADB6449596C41F51EF62C6AC024D@SZXEMI506-MBX.china.huawei.com>
2016-11-03 13:18                 ` Jan Beulich
2016-11-03 13:27                   ` Xuquan (Quan Xu)
2016-11-03 13:45                     ` Jan Beulich

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).