From: Alexander Graf <agraf@suse.de>
To: Laurent Vivier <lvivier@redhat.com>, David Gibson <dgibson@redhat.com>
Cc: thuth@redhat.com, qemu-ppc@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] target-ppc: Multiple/String Word alignment exception
Date: Thu, 31 Mar 2016 09:15:47 +0200 [thread overview]
Message-ID: <56FCCEA3.5030705@suse.de> (raw)
In-Reply-To: <56FCCC6A.7000002@redhat.com>
On 31.03.16 09:06, Laurent Vivier wrote:
>
>
> On 31/03/2016 08:54, Alexander Graf wrote:
>>
>>
>> On 31.03.16 01:29, David Gibson wrote:
>>> On Wed, 30 Mar 2016 19:13:00 +0200
>>> Laurent Vivier <lvivier@redhat.com> wrote:
>>>
>>>> If the processor is in little-endian mode, an alignment interrupt must
>>>> occur for the following instructions: lmw, stmw, lswi, lswx, stswi or stswx.
>>>>
>>>> This is what happens with KVM, so change TCG to do the same.
>>>>
>>>> As the instruction can be emulated by the kernel, enable the change
>>>> only in softmmu mode.
>>>>
>>>> Signed-off-by: Laurent Vivier <lvivier@redhat.com>
>>>
>>> I guess this makes sense given the existing hardware behaviour, even
>>> though it seems a bit perverse to me to make the emulator strictly less
>>> functional.
>>>
>>> Alex, what do you think?
>>
>> In general we only implement strict checks if it breaks guests not to
>> have them. Are you aware of any such case?
>
> No, it does not break anything. The idea was to have the same behavior
> with TCG as with a real CPU (or kvm). But if it is not the rule, we can
> drop this patch.
I guess if you really care about same behavior, we'd need to have risu
ported to ppc. However, that's a huge can of worms. Once we start that,
we'd have to verify risu against every single CPU type we support
because they all interpret certain corner cases differently.
That's basically what David was trying to say with POWER9. How do you
know that POWER9 still requires strong alignment checks for indexed LE
instructions? If it doesn't, we'd have to add a case in TCG to not the
the checks again. These multiply very quickly :).
Alex
next prev parent reply other threads:[~2016-03-31 7:15 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-30 17:13 [Qemu-devel] [PATCH] target-ppc: Multiple/String Word alignment exception Laurent Vivier
2016-03-30 23:29 ` David Gibson
2016-03-31 0:53 ` Laurent Vivier
2016-03-31 6:54 ` Alexander Graf
2016-03-31 7:06 ` Laurent Vivier
2016-03-31 7:15 ` Alexander Graf [this message]
2016-03-31 7:39 ` Laurent Vivier
2016-03-31 8:50 ` Thomas Huth
2016-03-31 9:03 ` Alexander Graf
2016-03-31 9:18 ` Thomas Huth
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=56FCCEA3.5030705@suse.de \
--to=agraf@suse.de \
--cc=dgibson@redhat.com \
--cc=lvivier@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=thuth@redhat.com \
/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).