All of lore.kernel.org
 help / color / mirror / Atom feed
From: Boris Ostrovsky <boris.ostrovsky@oracle.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: andrew.cooper3@citrix.com, xen-devel@lists.xen.org, roger.pau@citrix.com
Subject: Re: [PATCH] x86/HVM: Merge HVM and PVH hypercall tables
Date: Mon, 14 Dec 2015 16:25:46 -0500	[thread overview]
Message-ID: <566F33DA.7020206@oracle.com> (raw)
In-Reply-To: <566E832902000078000BEF24@prv-mh.provo.novell.com>

On 12/14/2015 02:51 AM, Jan Beulich wrote:
>>>> On 11.12.15 at 17:50, <boris.ostrovsky@oracle.com> wrote:
>> On 12/10/2015 11:53 AM, Boris Ostrovsky wrote:
>>> Especially given that PVH dom0 is not booting for me, as I just found
>>> out:
>>>
>>> ...
>>> (XEN) d0v0 EPT violation 0x1aa (-w-/r-x) gpa 0x000000c0008116 mfn
>>> 0xc0008 type 5
>>> (XEN) d0v0 Walking EPT tables for GFN c0008:
>>> (XEN) d0v0  epte 800000082bf50007
>>> (XEN) d0v0  epte 800000082bf19007
>>> (XEN) d0v0  epte 800000043c6f9007
>>> (XEN) d0v0  epte 80500000c0008805
>>> (XEN) d0v0  --- GLA 0xffffc90020008116
>>> (XEN) domain_crash called from vmx.c:2816
>>> (XEN) Domain 0 (vcpu#0) crashed on cpu#0:
>>> (XEN) ----[ Xen-4.7-unstable  x86_64  debug=y  Tainted:    C ]----
>>> (XEN) CPU:    0
>>> (XEN) RIP:    0010:[<ffffffff816150dc>]
>>> (XEN) RFLAGS: 0000000000010046   CONTEXT: hvm guest (d0v0)
>>> (XEN) rax: 000000000000001d   rbx: 0000000000000000   rcx:
>>> ffff88014700f9b8
>>> (XEN) rdx: 00000000000000ff   rsi: 0000000000000000   rdi:
>>> 0000000000000000
>>> (XEN) rbp: ffff88014700fa18   rsp: ffff88014700f9e8   r8:
>>> ffff88014700f9c0
>>> (XEN) r9:  000000000000001d   r10: ffffffff8189c7f0   r11:
>>> 0000000000000000
>>> (XEN) r12: ffffc90020008000   r13: ffffc90020008116   r14:
>>> 0000000000000002
>>> (XEN) r15: 000000000000001d   cr0: 0000000080050033   cr4:
>>> 00000000000406f0
>>> (XEN) cr3: 0000000001c0e000   cr2: 0000000000000000
>>> (XEN) ds: 0000   es: 0000   fs: 0000   gs: 0000   ss: 0000   cs: 0010
>>> (XEN) Guest stack trace from rsp=ffff88014700f9e8:
>>> (XEN)   Fault while accessing guest memory.
>>> (XEN) Hardware Dom0 crashed: rebooting machine in 5 seconds.
>>>
>>>
>>> We haven't been running regression tests for PVH dom0 so I don't know
>>> how long this has been broken.
>>
>> This is broken by 9256f66c1606 ("x86/PCI: intercept all PV Dom0 MMCFG
>> writes").
> Well, I can't find any hookup of the write emulation logic for PVH
> at all in ept_handle_violation() or hvm_hap_nested_page_fault(),
> i.e. it looks to me as if this was broken already before, just that
> for the limited set of devices that had their MMCFG space marked
> r/o this went unnoticed (iow perhaps a missing FIXME annotation).
> I'll see to find time to look into this, but I can't really predict when
> I might get around to it.

I added handling for MMCFG to ept_handle_violation() and that indeed 
fixed it (but it should really go to hvm_hap_nested_page_fault() since 
we will want AMD support for that as well).

I'll try to come up with a patch in the next day or two.

-boris

      reply	other threads:[~2015-12-14 21:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-08 14:20 [PATCH] x86/HVM: Merge HVM and PVH hypercall tables Boris Ostrovsky
2015-12-10 12:30 ` Jan Beulich
2015-12-10 16:53   ` Boris Ostrovsky
2015-12-10 17:13     ` Jan Beulich
2015-12-11 16:50     ` Boris Ostrovsky
2015-12-14  7:51       ` Jan Beulich
2015-12-14 21:25         ` Boris Ostrovsky [this message]

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=566F33DA.7020206@oracle.com \
    --to=boris.ostrovsky@oracle.com \
    --cc=JBeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=roger.pau@citrix.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.