All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Hildenbrand <david@redhat.com>
To: Richard Henderson <richard.henderson@linaro.org>,
	Thomas Huth <thuth@redhat.com>,
	qemu-devel@nongnu.org
Cc: Claudio Imbrenda <imbrenda@linux.ibm.com>,
	qemu-s390x@nongnu.org, Cornelia Huck <cohuck@redhat.com>,
	Janosch Frank <frankja@linux.ibm.com>
Subject: Re: [PATCH v4] target/s390x: Implement the MVPG condition-code-option bit
Date: Thu, 11 Mar 2021 17:00:48 +0100	[thread overview]
Message-ID: <a75e0e84-6714-af5a-9c9d-b09beaa82629@redhat.com> (raw)
In-Reply-To: <6c21d4c1-6a4d-ab89-00e9-be9a7c86c09a@linaro.org>

On 11.03.21 16:58, Richard Henderson wrote:
> On 3/11/21 8:03 AM, David Hildenbrand wrote:
>> As talked with Thomas off-list, there is no trusting on host==NULL
>> as well (see comment in struct S390Access). host==NULL simply
>> means we have to do individual ld/st.
> 
> I think that comment is stale with the use of probe_access instead of
> tlb_vaddr_to_host -- TLB_DIRTY is in fact handled now.

Yes, it might be worth exploring in which cases we will still have 
issues and updating the comment. LAP is certainly one.

>> +    env->tlb_fill_exc = 0;
>>        flags = probe_access_flags(env, vaddr1, access_type, mmu_idx,
>>                                   nofault, &haddr1, ra);
>> +    if (env->tlb_fill_exc) {
>> +        /* We cannot rely on TLB_INVALID_MASK or haddr being NULL. */
>> +        return env->tlb_fill_exc;
>> +    }
>>        if (unlikely(size2)) {
>>            /* The access crosses page boundaries. */
>>            vaddr2 = wrap_address(env, vaddr1 + size1);
>>            flags |= probe_access_flags(env, vaddr2, access_type, mmu_idx,
>>                                        nofault, &haddr2, ra);
>> +        if (env->tlb_fill_exc) {
>> +            /* We cannot rely on TLB_INVALID_MASK or haddr being NULL. */
>> +            return env->tlb_fill_exc;
> 
> But this is pretty clean, and definitely works.

Except that I need to special case CONFIG_USER_ONLY .... I'll send a v5 
later, then we can discuss when looking at the full diff (including an 
addon patch to handle r1/r2).

-- 
Thanks,

David / dhildenb



      reply	other threads:[~2021-03-11 16:09 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-03 13:28 [PATCH v4] target/s390x: Implement the MVPG condition-code-option bit Thomas Huth
2021-03-03 18:22 ` Richard Henderson
2021-03-03 19:39 ` David Hildenbrand
2021-03-03 21:05   ` Richard Henderson
2021-03-03 21:11     ` David Hildenbrand
2021-03-03 21:19       ` Richard Henderson
2021-03-03 21:22         ` David Hildenbrand
2021-03-03 21:36           ` Richard Henderson
2021-03-04  8:10             ` David Hildenbrand
2021-03-04  8:17               ` Cornelia Huck
2021-03-09 21:05               ` Thomas Huth
2021-03-10 20:49                 ` David Hildenbrand
2021-03-11 10:21                   ` Cornelia Huck
2021-03-11 14:03 ` David Hildenbrand
2021-03-11 15:58   ` Richard Henderson
2021-03-11 16:00     ` David Hildenbrand [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=a75e0e84-6714-af5a-9c9d-b09beaa82629@redhat.com \
    --to=david@redhat.com \
    --cc=cohuck@redhat.com \
    --cc=frankja@linux.ibm.com \
    --cc=imbrenda@linux.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-s390x@nongnu.org \
    --cc=richard.henderson@linaro.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 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.