* [PATCH] vmx/altp2m: Use domain_crash_sync() when failing to find the current EPTP
@ 2018-02-05 11:21 Andrew Cooper
2018-02-05 16:36 ` Andrew Cooper
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Cooper @ 2018-02-05 11:21 UTC (permalink / raw)
To: Xen-devel; +Cc: Andrew Cooper, Kevin Tian, Jun Nakajima, Jan Beulich
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().
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
---
CC: Jan Beulich <JBeulich@suse.com>
CC: Jun Nakajima <jun.nakajima@intel.com>
CC: Kevin Tian <kevin.tian@intel.com>
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(-)
diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c
index 3dc6a6d..f9438d7 100644
--- a/xen/arch/x86/hvm/vmx/vmx.c
+++ b/xen/arch/x86/hvm/vmx/vmx.c
@@ -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 )
--
2.1.4
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] vmx/altp2m: Use domain_crash_sync() when failing to find the current EPTP
2018-02-05 11:21 [PATCH] vmx/altp2m: Use domain_crash_sync() when failing to find the current EPTP Andrew Cooper
@ 2018-02-05 16:36 ` Andrew Cooper
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Cooper @ 2018-02-05 16:36 UTC (permalink / raw)
To: Xen-devel; +Cc: Kevin Tian, Jun Nakajima, Jan Beulich
On 05/02/18 11:21, Andrew Cooper wrote:
> 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().
>
> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
> ---
> CC: Jan Beulich <JBeulich@suse.com>
> CC: Jun Nakajima <jun.nakajima@intel.com>
> CC: Kevin Tian <kevin.tian@intel.com>
>
> 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
> ---
> xen/arch/x86/hvm/vmx/vmx.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c
> index 3dc6a6d..f9438d7 100644
> --- a/xen/arch/x86/hvm/vmx/vmx.c
> +++ b/xen/arch/x86/hvm/vmx/vmx.c
> @@ -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 )
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-02-05 16:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-05 11:21 [PATCH] vmx/altp2m: Use domain_crash_sync() when failing to find the current EPTP Andrew Cooper
2018-02-05 16:36 ` Andrew Cooper
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.