All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Etzion Bar-Noy <etzion@barnoy.co.il>, xen-devel@lists.xen.org
Cc: eddie.dong@intel.com, jun.nakajima@intel.com
Subject: Re: Nested virtualization instabilities
Date: Mon, 16 Dec 2013 13:51:27 +0000	[thread overview]
Message-ID: <52AF055F.5070908@citrix.com> (raw)
In-Reply-To: <CAK-hXLdsOuGxQajHyy8gFkrqsbtOEYC1uT-K5tsNzALYGp_Ang@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 2308 bytes --]

On 16/12/2013 11:05, Etzion Bar-Noy wrote:
> Hi.
>
> I am using the unstable build-from-source of Xen community. It reports
> as 4.4, and was pulled from Git few days ago. The problem I will
> describe below appears on version 4.3.1, compiled from source as well.
> In both cases - I used spec file to create my own RPMs, because it's
> the right method of doing it.
>
> Problem: When VM running under HVM which is a hypervisor (XenServer
> 6.2 or VMware ESXi5.5) attempts to start a (HVM) virtual machine, the
> following happens, 100% reproducible on this server.
> XenServer: domain crash. XenServer restarts itself. It doesn't happen
> for PV on XenServer VM
> VMware: An "unknown failure", which leads me to think that the nested
> virtualization properties are not forwarded correctly to DomU
>
>

<snip>

> (XEN) <vm_launch_fail> error code 7
> (XEN) domain_crash_sync called from vmcs.c:1293
> (XEN) Domain 8 (vcpu#0) crashed on cpu#4:
> (XEN) ----[ Xen-4.4-unstable  x86_64  debug=y  Not tainted ]----
> (XEN) CPU:    4
> (XEN) RIP:    0000:[<0000000000000000>]
> (XEN) RFLAGS: 0000000000000002   CONTEXT: hvm guest
> (XEN) rax: 0000000000000000   rbx: ffff830824f98000   rcx:
> ffff830824f9ff80
> (XEN) rdx: ffff82d0801d0cf9   rsi: 0000000000000000   rdi:
> ffff82d0801de7fc
> (XEN) rbp: ffff82d080105ab1   rsp: 0000000000000000   r8: 
> 0000000000000004
> (XEN) r9:  ffff82d080105b20   r10: ffff830824f9ff70   r11:
> 0000000000000000
> (XEN) r12: ffff830824f9ff50   r13: ffff830654f9e000   r14:
> ffff830824f9ff30
> (XEN) r15: ffff82d080187e43   cr0: 0000000000000039   cr4:
> 0000000000002050
> (XEN) cr3: 00000000feffa000   cr2: 0000000000000000
> (XEN) ds: 0000   es: 0000   fs: 0000   gs: 0000   ss: 0000   cs: 0000

This is the problem.

Error code 7 is defined as "VM entry with invalid control field(s)"

At a guess, I would think that the L1 hypervisor is probing the control
fields (as that seems to be the only way of detecting whether a feature
is available or not), and this error might need bouncing back to the VM.

Otherwise, the L1 hypervisor has decided it can use a particular
control, and Xen has insufficient validation if the L1 state.

Either way, it would be useful to know if there is a way for the
hardware to identify which control field it has an issue with...

~Andrew

[-- Attachment #1.2: Type: text/html, Size: 6585 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  reply	other threads:[~2013-12-16 13:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-16 11:05 Nested virtualization instabilities Etzion Bar-Noy
2013-12-16 13:51 ` Andrew Cooper [this message]
2013-12-18  1:33 ` Zhang, Yang Z
2013-12-18  9:46   ` Etzion Bar-Noy
2013-12-19 19:40     ` Etzion Bar-Noy
2013-12-19 19:42       ` Etzion Bar-Noy
2013-12-20  0:50         ` Zhang, Yang Z
2013-12-20 11:24           ` Etzion Bar-Noy
2013-12-23  1:09             ` Zhang, Yang Z
2013-12-23 14:17               ` Etzion Bar-Noy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52AF055F.5070908@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=eddie.dong@intel.com \
    --cc=etzion@barnoy.co.il \
    --cc=jun.nakajima@intel.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.