qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Richard Henderson <richard.henderson@linaro.org>
To: "Philippe Mathieu-Daudé" <philmd@linaro.org>, qemu-devel@nongnu.org
Cc: Thomas Huth <thuth@redhat.com>, Markus Armbruster <armbru@redhat.com>
Subject: Re: [RFC PATCH 1/2] bulk: Replace !CONFIG_SOFTMMU -> CONFIG_USER_ONLY
Date: Mon, 5 Jun 2023 14:39:03 -0700	[thread overview]
Message-ID: <fc6f7fb4-8e01-e56b-9fae-a09934933d3e@linaro.org> (raw)
In-Reply-To: <97194b58-3f9c-e351-a439-87b2bfed5674@linaro.org>

On 6/5/23 13:29, Philippe Mathieu-Daudé wrote:
> On 3/6/23 05:49, Richard Henderson wrote:
>> On 6/2/23 15:58, Philippe Mathieu-Daudé wrote:
>>> CONFIG_USER_ONLY is the opposite of CONFIG_SOFTMMU.
>>> Replace !CONFIG_SOFTMMU negation by the positive form
>>> which is clearer when reviewing code.
>>
>> CONFIG_SOFTMMU should be reserved for the actual softmmu tlb, which we *should* be able 
>> to enable for user-only.  It is the only way to handle some of our host/guest page size 
>> problems.  Further, CONFIG_SOFTMMU should go away as a #define and become a runtime test 
>> (forced to true for system mode).  Pie in the sky stuff.
> 
> This would be:
> 
>    bool has_softmmu(void)
>    {
>    #ifdef CONFIG_USER_ONLY
>        /* TODO: implement */
>        return false;
>    #else
>        return true;
>    #endif
>    }
> 
> ?

Yes, something like that.


r~


  reply	other threads:[~2023-06-05 21:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-02 22:58 [RFC PATCH 0/2] bulk: Replace !CONFIG_SOFTMMU and !CONFIG_USER_ONLY Philippe Mathieu-Daudé
2023-06-02 22:58 ` [RFC PATCH 1/2] bulk: Replace !CONFIG_SOFTMMU -> CONFIG_USER_ONLY Philippe Mathieu-Daudé
2023-06-03  3:49   ` Richard Henderson
2023-06-05 20:29     ` Philippe Mathieu-Daudé
2023-06-05 21:39       ` Richard Henderson [this message]
2023-06-02 22:58 ` [RFC PATCH 2/2] bulk: Replace !CONFIG_USER_ONLY -> CONFIG_SOFTMMU Philippe Mathieu-Daudé
2023-06-02 22:59   ` Philippe Mathieu-Daudé
2023-06-02 23:14   ` Philippe Mathieu-Daudé

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=fc6f7fb4-8e01-e56b-9fae-a09934933d3e@linaro.org \
    --to=richard.henderson@linaro.org \
    --cc=armbru@redhat.com \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@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).