vmx/altp2m: Use domain_crash_sync() when failing to find the current EPTP
PATCH 1/1 vmx/altp2m: Use domain_crash_sync() when failing to find the current EPTP
When failing to locate the guests EPTP in the altp2m EPTP list, use domain_crash_sync() rather than domain_crash(). The latter returns and will hit the subsequent BUG().
---
CC: Jan Beulich <[email protected]>
CC: Jun Nakajima <[email protected]>
CC: Kevin Tian <[email protected]>
N.B. Depends on "xen: Improvements to domain_crash_sync()"
--- xen/arch/x86/hvm/vmx/vmx.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
xen/arch/x86/hvm/vmx/vmx.c +1 -4
@@ -3583,10 +3583,7 @@ void vmx_vmexit_handler(struct cpu_user_regs *regs)if ( (idx =p2m_find_altp2m_by_eptp (v->domain, eptp)) ==INVALID_ALTP2M ) - { -gdprintk (XENLOG_ERR ,"EPTP not found in alternate p2m list\n" ); -domain_crash (v->domain); - } +domain_crash_sync ("EPTP not found in alternate p2m list\n" ); }if ( idx !=vcpu_altp2m (v).p2midx )
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 11 lines · Andrew Cooper
When failing to locate the guests EPTP in the altp2m EPTP list, use
domain_crash_sync()rather thandomain_crash(). The latter returns and will hit the subsequentBUG().Signed-off-by Andrew Cooper <[email protected]>---
CC: Jan Beulich <[email protected]>
CC: Jun Nakajima <[email protected]>
CC: Kevin Tian <[email protected]>N.B. Depends on "xen: Improvements to
domain_crash_sync()"
In light of the changes in approach for domain_crash_sync(), this issue will have to be fixed somehow else.
~Andrew
Quoted 10 lines
--- xen/arch/x86/hvm/vmx/vmx.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)xen/arch/x86/hvm/vmx/vmx.c +0
-0@@ -3583,10 +3583,7 @@ void vmx_vmexit_handler(struct cpu_user_regs *regs)
xen/arch/x86/hvm/vmx/vmx.c void vmx_vmexit_handler(struct cpu_user_regs *regs) · line 3589
Quoted 10 lines
xen/arch/x86/hvm/vmx/vmx.c +1
-4if ( (idx =p2m_find_altp2m_by_eptp (v->domain, eptp)) ==INVALID_ALTP2M ) - { -gdprintk (XENLOG_ERR ,"EPTP not found in alternate p2m list\n" ); -domain_crash (v->domain); - } +domain_crash_sync ("EPTP not found in alternate p2m list\n" ); }if ( idx !=vcpu_altp2m (v).p2midx )
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel