<div dir="ltr">I am trying that out. Debian 9 (stretch) backports still doesn't have 4.16 kernel. <div><br></div><div>So I building the kernel from the source. Will keep you posted. </div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, 26 Mar 2018 at 13:00 Richard W.M. Jones <<a href="mailto:rjones@redhat.com">rjones@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">[Adding Paolo and Vitaly, but FYI only as the bug seems to have an<br>
upstream fix already.]<br>
<br>
On Mon, Mar 26, 2018 at 09:13:45AM +0300, Roman Kagan wrote:<br>
> On Sat, Mar 24, 2018 at 03:11:12PM +0000, Richard W.M. Jones wrote:<br>
> > On Sat, Mar 24, 2018 at 03:08:16PM +0000, Tanmoy Sinha wrote:<br>
> > > Even though force_tcg works, I intend not to run it on emulation. Is there<br>
> > > way I can run it over kvm? The other observation is, without force_tcg if I<br>
> > > use the machine type as  *pc-i440fx-2.**1*,accel=kvm it works fine. The<br>
> > > default machine type for my host *pc-i440fx-2.8, *which seems to crib.<br>
> ><br>
> > I don't know, but this is basically a bug in VMware, so you need<br>
> > to ask them to fix their nested KVM-on-ESXi use case.<br>
><br>
> We've encountered this problem, too.<br>
><br>
> Strictly speaking, the bug is not in VMWare, but rather in KVM: on<br>
> EPT_MISCONFIG vmexits it assumed the processor to set the instuction<br>
> length field.  This wasn't mandated by the spec but the real processors<br>
> did that.  OTOH some hypervisors (VMWare, Hyper-V) didn't do that for<br>
> the nested hypervisor.  As a result, when handling MMIO the guest<br>
> instruction pointer didn't get advanced, i.e. the guest got stuck in an<br>
> infinite loop.<br>
><br>
> The difference between the old and the new machine type is that the<br>
> latter turns on newer virtio protocol version employing MMIO, exposing<br>
> this bug.<br>
><br>
> The fix is commit d391f1207067268261add0485f0f34503539c5b0 which went<br>
> into 4.16-rc1.<br>
<br>
Can you (Tanmoy) please try a newer kernel inside the VMware guest?<br>
<br>
Rich.<br>
<br>
--<br>
Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/~rjones" rel="noreferrer" target="_blank">http://people.redhat.com/~rjones</a><br>
Read my programming and virtualization blog: <a href="http://rwmj.wordpress.com" rel="noreferrer" target="_blank">http://rwmj.wordpress.com</a><br>
libguestfs lets you edit virtual machines.  Supports shell scripting,<br>
bindings from many languages.  <a href="http://libguestfs.org" rel="noreferrer" target="_blank">http://libguestfs.org</a><br>
</blockquote></div>