xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Sander Eikelenboom <linux@eikelenboom.it>
To: Paul Durrant <Paul.Durrant@citrix.com>
Cc: Andrew Cooper <Andrew.Cooper3@citrix.com>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: xen-unstabel + linux 4.2: MMIO emulation failed: d23v0 64bit @ 0010:ffffffff814e2b1c -> 66 89 02 48 8d 55 c0 48 89 5d c0 44 89 65 c8 e8
Date: Wed, 29 Jul 2015 13:11:47 +0200	[thread overview]
Message-ID: <1166878596.20150729131147@eikelenboom.it> (raw)
In-Reply-To: <9AAE0902D5BC7E449B7C8E4E778ABCD02F55E178@AMSPEX01CL02.citrite.net>


Wednesday, July 29, 2015, 11:06:37 AM, you wrote:

>> -----Original Message-----
>> From: linux@eikelenboom.it [mailto:linux@eikelenboom.it]
>> Sent: 28 July 2015 22:16
>> To: Andrew Cooper
>> Cc: xen-devel@lists.xen.org; Paul Durrant
>> Subject: Re: [Xen-devel] xen-unstabel + linux 4.2: MMIO emulation failed:
>> d23v0 64bit @ 0010:ffffffff814e2b1c -> 66 89 02 48 8d 55 c0 48 89 5d c0 44 89
>> 65 c8 e8
>> 
>> On 2015-07-27 16:07, Andrew Cooper wrote:
>> > On 24/07/15 19:56, linux@eikelenboom.it wrote:
>> >> Hi All,
>> >>
>> >> On my AMD system running xen-unstable (last commit: ),
>> >>  after a few restarts of a HVM guest with pci-passthrough i got these
>> >> on shutdown of the guest:
>> >> (never seen this before, so it should be something triggered by a
>> >> recent commit)
>> >>
>> >> --
>> >> Sander
>> >>
>> >>
>> >> .... (probably lost before but that's lost)
>> >>
>> >> (XEN) [2015-07-24 18:46:53.732] domain_crash called from io.c:166
>> >> (XEN) [2015-07-24 18:46:53.732] io.c:165:d23v0 Weird HVM ioemulation
>> >> status 1.
>> >> (XEN) [2015-07-24 18:46:53.732] domain_crash called from io.c:166
>> >> (XEN) [2015-07-24 18:46:53.732] io.c:165:d23v0 Weird HVM ioemulation
>> >> status 1.
>> >> (XEN) [2015-07-24 18:46:53.732] domain_crash called from io.c:166
>> >> (XEN) [2015-07-24 18:46:53.732] io.c:165:d23v0 Weird HVM ioemulation
>> >> status 1.
>> >
>> > Paul: this is very likely an issue your emulation series.
>> >
>> > 66 89 02 is mov %ax,(%rdx), but has ended up in handle_pio() which
>> > seems
>> > wrong.
>> >
>> > Sander: Please can you rerun with the following debug
>> >
>> > diff --git a/xen/arch/x86/hvm/io.c b/xen/arch/x86/hvm/io.c
>> > index d3b9cae..7560d08 100644
>> > --- a/xen/arch/x86/hvm/io.c
>> > +++ b/xen/arch/x86/hvm/io.c
>> > @@ -163,7 +163,9 @@ int handle_pio(uint16_t port, unsigned int size,
>> > int
>> > dir)
>> >          break;
>> >      default:
>> >          gdprintk(XENLOG_ERR, "Weird HVM ioemulation status %d.\n",
>> > rc);
>> > -        domain_crash(curr->domain);
>> > +        show_execution_state(curr);
>> > +        dump_execution_state();
>> > +        domain_crash_synchronous(curr->domain);
>> >          break;
>> >      }
>> >
>> > ~Andrew
>> 
>> 
>> Hi Andrew,
>> 
>> I tried your debug patch, however that doesn't print anything new to xl
>> dmesg.
>> It seems to be too busy trying to crash .. (although that actually seems
>> to fail)
>> 
>> This was testing on a tree with a619657e2d5725a61cb72f65901db42e98f2a896
>> as last commit and it fails at the first shutdown of the guest.
>> 
>> After that i tried it with the current staging tree with
>> 44313ab77f3e3c5b566ea4f23b0e32bfd5eafa29 as last commit
>> and i don't to get those failures anymore .. i even done a start
>> shutdown loop of 100 iterations .. everything was fine.
>> 

> Good. I can't see anything particularly relevant in the range between those two commits, but it doesn't sound like it's anything to do with my emulation series.

>   Paul

Well one thing i still find weird is why didn't the domain crash properly ?


>> --
>> Sander

      reply	other threads:[~2015-07-29 11:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-24 18:56 xen-unstabel + linux 4.2: MMIO emulation failed: d23v0 64bit @ 0010:ffffffff814e2b1c -> 66 89 02 48 8d 55 c0 48 89 5d c0 44 89 65 c8 e8 linux
2015-07-24 19:27 ` Sander Eikelenboom
2015-07-27 14:07 ` Andrew Cooper
2015-07-27 14:22   ` Paul Durrant
2015-07-27 14:44   ` Sander Eikelenboom
2015-07-28 21:16   ` linux
2015-07-29  9:06     ` Paul Durrant
2015-07-29 11:11       ` Sander Eikelenboom [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=1166878596.20150729131147@eikelenboom.it \
    --to=linux@eikelenboom.it \
    --cc=Andrew.Cooper3@citrix.com \
    --cc=Paul.Durrant@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).