VMX: Add debug-key 'D' to dump EPT p2m table
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Xu, Dongxiao" 04/22/10 4:42 AM >>>
The use of map_domain_page() here is lacking a respective unmap_domain_page() on all possible paths.
Further, assuming the amount of information printed may be huge, there ought to be calls to process_pending_softirqs() to keep time management from getting screwed.
Jan
Quoted 7 lines · Jan Beulich
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Xu, Dongxiao" 04/22/10 4:42 AM >>>
The use of
map_domain_page()here is lacking a respectiveunmap_domain_page()on all possible paths.Further, assuming the amount of information printed may be huge, there ought to be calls to
process_pending_softirqs()to keep time management from getting screwed.
Also, for the same reason, I think maybe it shouldn't be marked as a 'diagnostic' keyhandler (even though it really is diagnostic, it can very easily fill the dmesg buffers).
Cheers,
Tim.
Signature · 3 lines
Tim Deegan <[email protected]> Principal Software Engineer, XenServer Engineering Citrix Systems UK Ltd. (Company #02937203, SL9 0BG)
Hi Tim and Jan,
I modified the patch according to your comments.
Please help to review.
Thanks,
Dongxiao
Quoted 9 lines · Tim Deegan
Quoted 7 lines · Jan Beulich
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Xu, Dongxiao" 04/22/10 4:42 AM >>>
The use of
map_domain_page()here is lacking a respectiveunmap_domain_page()on all possible paths.Further, assuming the amount of information printed may be huge, there ought to be calls to
process_pending_softirqs()to keep time management from getting screwed.
Quoted 7 lines
Also, for the same reason, I think maybe it shouldn't be marked as a 'diagnostic' keyhandler (even though it really is diagnostic, it can very easily fill the dmesg buffers).
Cheers,
Tim.
Add debug-key 'D' to dump EPT p2m table.
xen/arch/x86/hvm/vmx/vmx.c +3 -0
@@ -1444,7 +1444,10 @@ void start_vmx(void) }if ( cpu_has_vmx_ept ) + { vmx_function_table.hap_supported =1 ; +setup_ept_dump (); + } vmx_function_table.hap_1gb_pgtb = ( vmx_ept_super_page_level_limit ==2 ) ?1 :0 ;
xen/arch/x86/mm/hap/p2m-ept.c +67 -0
79 lines not on this page · raw message
xen/include/asm-x86/hvm/vmx/vmx.h +1 -0
@@ -357,6 +357,7 @@ void vmx_inject_nmi(void);void ept_p2m_init (struct domain *d);void ept_walk_table (struct domain *d,unsigned long gfn); +void setup_ept_dump (void );/* EPT violation qualifications definitions */ #define _EPT_READ_VIOLATION 0
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Hi,
Quoted 4 lines · Dongxiao
Hi Tim and Jan,
I modified the patch according to your comments.
Please help to review.
Looks OK. It might be nice to print the POD entries too, but I'm happy with this version.
Cheers,
Tim.
Signature · 3 lines
Tim Deegan <[email protected]> Principal Software Engineer, XenServer Engineering Citrix Systems UK Ltd. (Company #02937203, SL9 0BG)
Quoted 3 lines
Quoted 1 line
Quoted 1 line
"Xu, Dongxiao" <[email protected]> 22.04.10 11:24 >>>
I modified the patch according to your comments.
Please help to review.
Is process_pending_softirqs() once per domain really enough?
Jan
Hi Tim and Jan,
This version of patch adds:
1. pod entry dump.
2. process_pending_softirqs() is called after every 100 printk records.
Please help to review.
Thanks,
Dongxiao
Quoted 7 lines · Jan Beulich
Quoted 3 lines
Quoted 1 line
Quoted 1 line
"Xu, Dongxiao" <[email protected]> 22.04.10 11:24 >>>
I modified the patch according to your comments.
Please help to review.Is
process_pending_softirqs()once per domain really enough?Jan
Add debug-key 'D' to dump EPT p2m table.
xen/arch/x86/hvm/vmx/vmx.c +3 -0
@@ -1444,7 +1444,10 @@ void start_vmx(void) }if ( cpu_has_vmx_ept ) + { vmx_function_table.hap_supported =1 ; +setup_ept_dump (); + } vmx_function_table.hap_1gb_pgtb = ( vmx_ept_super_page_level_limit ==2 ) ?1 :0 ;
xen/arch/x86/mm/hap/p2m-ept.c +73 -0
85 lines not on this page · raw message
xen/include/asm-x86/hvm/vmx/vmx.h +1 -0
@@ -357,6 +357,7 @@ void vmx_inject_nmi(void);void ept_p2m_init (struct domain *d);void ept_walk_table (struct domain *d,unsigned long gfn); +void setup_ept_dump (void );/* EPT violation qualifications definitions */ #define _EPT_READ_VIOLATION 0
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Looks okay to me now. Thanks!
Jan
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Xu, Dongxiao" <[email protected]> 23.04.10 05:06 >>>
Hi Tim and Jan,
This version of patch adds:
1. pod entry dump.
2. process_pending_softirqs() is called after every 100 printk records.
Please help to review.
Thanks,
Dongxiao
Quoted 7 lines · Jan Beulich
Quoted 3 lines
Quoted 1 line
Quoted 1 line
"Xu, Dongxiao" <[email protected]> 22.04.10 11:24 >>>
I modified the patch according to your comments.
Please help to review.Is
process_pending_softirqs()once per domain really enough?Jan