xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* How to intercept supervisor call using Xen?
@ 2014-09-03  1:12 harry2845
  0 siblings, 0 replies; 3+ messages in thread
From: harry2845 @ 2014-09-03  1:12 UTC (permalink / raw)
  To: xen-devel

After reading the document of ARM, I set HCR.TGE to 1 at the init time. 

   
WRITE_SYSREG(HCR_TGE|HCR_PTW|HCR_BSU_OUTER|HCR_AMO|HCR_IMO|HCR_VM|HCR_TWI|HCR_TSC| 
                 HCR_TAC, HCR_EL2); 

And I add a case in the function do_trap_hyperviosr. 

But after modifying, there will be a kernel panic when I execute Xen. 

[    7.866384] Kernel panic - not syncing: Attempted to kill init!
exitcode=0x0000000b 
[    7.866384] 
[    7.881866] CPU: 0 PID: 1 Comm: init Not tainted 3.15.0-rc5+ #91 
[    7.891024] [<80017dc4>] (unwind_backtrace) from [<800138f8>]
(show_stack+0x20/0x24) 
[    7.903640] [<800138f8>] (show_stack) from [<807864a4>]
(dump_stack+0x70/0xc0) 
[    7.915213] [<807864a4>] (dump_stack) from [<80781030>]
(panic+0x9c/0x204) 
[    7.926088] [<80781030>] (panic) from [<8002c900>] (do_exit+0x86c/0x9f0) 
[    7.936615] [<8002c900>] (do_exit) from [<8002cbc0>]
(do_group_exit+0x4c/0xcc) 
[    7.948188] [<8002cbc0>] (do_group_exit) from [<8003b5dc>]
(get_signal_to_deliver+0x37c/0x71c) 
[    7.962535] [<8003b5dc>] (get_signal_to_deliver) from [<80780aec>]
(do_signal+0xb4/0x380) 
[    7.976013] [<80780aec>] (do_signal) from [<800131a8>]
(do_work_pending+0x8c/0xe0) 
[    7.988278] [<800131a8>] (do_work_pending) from [<8000f680>]
(work_pending+0xc/0x20) 
[    8.000901] ---[ end Kernel panic - not syncing: Attempted to kill init!
exitcode=0x0000000b 
[    8.000901] 




--
View this message in context: http://xen.1045712.n5.nabble.com/How-to-intercept-supervisor-call-using-Xen-tp5724551.html
Sent from the Xen - Dev mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread
* How to intercept supervisor call using Xen?
@ 2014-09-02  1:51 harry S
  2014-09-03  9:06 ` Ian Campbell
  0 siblings, 1 reply; 3+ messages in thread
From: harry S @ 2014-09-02  1:51 UTC (permalink / raw)
  To: xen-devel


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

After reading the document of ARM, I set HCR.TGE to 1 at the init time.


WRITE_SYSREG(HCR_TGE|HCR_PTW|HCR_BSU_OUTER|HCR_AMO|HCR_IMO|HCR_VM|HCR_TWI|HCR_TSC|
                 HCR_TAC, HCR_EL2);

And I add a case in the function do_trap_hyperviosr.

But after modifying, there will be a kernel panic when I execute Xen.

[    7.866384] Kernel panic - not syncing: Attempted to kill init!
exitcode=0x0000000b
[    7.866384]
[    7.881866] CPU: 0 PID: 1 Comm: init Not tainted 3.15.0-rc5+ #91
[    7.891024] [<80017dc4>] (unwind_backtrace) from [<800138f8>]
(show_stack+0x20/0x24)
[    7.903640] [<800138f8>] (show_stack) from [<807864a4>]
(dump_stack+0x70/0xc0)
[    7.915213] [<807864a4>] (dump_stack) from [<80781030>]
(panic+0x9c/0x204)
[    7.926088] [<80781030>] (panic) from [<8002c900>] (do_exit+0x86c/0x9f0)
[    7.936615] [<8002c900>] (do_exit) from [<8002cbc0>]
(do_group_exit+0x4c/0xcc)
[    7.948188] [<8002cbc0>] (do_group_exit) from [<8003b5dc>]
(get_signal_to_deliver+0x37c/0x71c)
[    7.962535] [<8003b5dc>] (get_signal_to_deliver) from [<80780aec>]
(do_signal+0xb4/0x380)
[    7.976013] [<80780aec>] (do_signal) from [<800131a8>]
(do_work_pending+0x8c/0xe0)
[    7.988278] [<800131a8>] (do_work_pending) from [<8000f680>]
(work_pending+0xc/0x20)
[    8.000901] ---[ end Kernel panic - not syncing: Attempted to kill init!
exitcode=0x0000000b
[    8.000901]

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

[-- Attachment #2: 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] 3+ messages in thread

end of thread, other threads:[~2014-09-03  9:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-03  1:12 How to intercept supervisor call using Xen? harry2845
  -- strict thread matches above, loose matches on Subject: below --
2014-09-02  1:51 harry S
2014-09-03  9:06 ` Ian Campbell

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