Re: [Xen-devel] Xen 4.6.1 crash with altp2m enabledbydefault

2016-09-22 Thread Jan Beulich
>>> On 21.09.16 at 16:18, wrote: > I have found the problem (after hours and hours of gruesome > debugging with the almighty print) and it seems that this could potentially > have quite a bit of impact if altp2m is enabled for a guest domain (even if > the > functionality is never actively used),

Re: [Xen-devel] Xen 4.6.1 crash with altp2m enabledbydefault

2016-09-21 Thread Kevin.Mayer
Hi guys I have found the problem (after hours and hours of gruesome debugging with the almighty print) and it seems that this could potentially have quite a bit of impact if altp2m is enabled for a guest domain (even if the functionality is never actively used), since destroying any vcpu of this g

Re: [Xen-devel] Xen 4.6.1 crash with altp2m enabledbydefault

2016-09-07 Thread Kevin.Mayer
Hi I took the time to write a small script which restores and destroys domains from provided state files. Just apply the patch to a xen 4.6.1, provide some images + state files and start the script. python VmStarter.py -FILE /path/to/domU-0.state -FILE /path/to/domU-1.state --loggingLevel DEBU

Re: [Xen-devel] Xen 4.6.1 crash with altp2m enabledbydefault

2016-08-22 Thread Kevin.Mayer
Hi The reproduction should be pretty simple: Apply the patch to enable altp2m unconditionally: d->arch.hvm_domain.params[HVM_PARAM_HPET_ENABLED] = 1; d->arch.hvm_domain.params[HVM_PARAM_TRIPLE_FAULT_REASON] = SHUTDOWN_reboot; +d->arch.hvm_domain.params[HVM_PARAM_ALTP2M] = 1; +

Re: [Xen-devel] Xen 4.6.1 crash with altp2m enabledbydefault

2016-08-22 Thread Andrew Cooper
On 19/08/16 11:01, kevin.ma...@gdata.de wrote: > Hi > > I took another look at Xen and a new crashdump. > The last successful __vmwrite should be in > static void vmx_vcpu_update_vmfunc_ve(struct vcpu *v) > [...] > __vmwrite(SECONDARY_VM_EXEC_CONTROL, > v->arch.hvm_vmx.secondary_

Re: [Xen-devel] Xen 4.6.1 crash with altp2m enabledbydefault

2016-08-19 Thread Kevin.Mayer
> Von: Jan Beulich [mailto:jbeul...@suse.com] > Gesendet: Montag, 8. August 2016 12:29 > An: Mayer, Kevin > Cc: andrew.coop...@citrix.com; xen-devel@lists.xen.org > Betreff: Re: [Xen-devel] Xen 4.6.1 crash with altp2m enabledbydefault > > >>> On 08.08.16 at 11:48, wro

Re: [Xen-devel] Xen 4.6.1 crash with altp2m enabledbydefault

2016-08-08 Thread Jan Beulich
>>> On 08.08.16 at 11:48, wrote: > vmx_vmenter_helper is not part of the call stack. The address is simply the > location of the ud2 to which the > __vmwrite(HOST_CR0, v->arch.hvm_vmx.host_cr0); > In > static void vmx_fpu_leave(struct vcpu *v) > jumps. > There are two vmwrites in vmx_vcpu_update

Re: [Xen-devel] Xen 4.6.1 crash with altp2m enabledbydefault

2016-08-08 Thread Kevin.Mayer
vmx_vmenter_helper is not part of the call stack. The address is simply the location of the ud2 to which the __vmwrite(HOST_CR0, v->arch.hvm_vmx.host_cr0); In static void vmx_fpu_leave(struct vcpu *v) jumps. There are two vmwrites in vmx_vcpu_update_eptp (called by altp2m_vcpu_destroy): __vmwrite