qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Laurent Vivier <lvivier@redhat.com>
To: Greg Kurz <groug@kaod.org>
Cc: David Gibson <david@gibson.dropbear.id.au>,
	Benjamin Herrenschmidt <benh@kernel.crashing.org>,
	Paul Mackerras <paulus@samba.org>,
	qemu-ppc@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [Qemu-ppc] [PATCH] spapr: Add H-Call H_HOME_NODE_ASSOCIATIVITY
Date: Tue, 18 Dec 2018 11:57:28 +0100	[thread overview]
Message-ID: <4e667a79-68b7-4cf1-994c-b72ee738e0a6@redhat.com> (raw)
In-Reply-To: <20181218115015.1564d0a2@bahia.lan>

On 18/12/2018 11:50, Greg Kurz wrote:
> On Tue, 18 Dec 2018 11:00:01 +0100
> Laurent Vivier <lvivier@redhat.com> wrote:
> 
>> On 18/12/2018 10:23, Greg Kurz wrote:
>>> On Tue, 18 Dec 2018 08:50:00 +0100
...
>>> Also, even if linux only seems to call this with 0x1, this is a
>>> limitation from a LoPAPR standpoint. Not sure H_PARAMETER is the
>>> appropriate return value if flags is 0x2 since the guest did
>>> nothing wrong... I'd rather return H_FUNCTION in this case.  
>>
>> The doc says:
>>
>>   H_Function:  The function is not supported
>>   H_Parameter: Unsupported flag parameter value
>>
>> in that case function is supported but not the flag, so I think
>> H_PARAMETER is a better choice.
>>
> 
> Well... neither LoPAPR, nor IBM confidential PAPR+ do say anything
> about partial support for this hcall. If the guest was to use the
> flags == 0x2 variant, eg, some closed-source OS supporting PAPR,
> it could be legitimately confused to get an H_PARAMETER error when
> passing supposedly valid parameters... how to cope with that ?
> On the other hand, if QEMU cannot honor the flags == 0x2 variant
> and returns H_FUNCTION then the OS can recover since it is
> required by the specification.

You have certainly access to more information than I have, so I'll
change H_PARAMETER to H_FUNCTION.

Thanks,
Laurent

      reply	other threads:[~2018-12-18 11:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-17 14:00 [Qemu-devel] [PATCH] spapr: Add H-Call H_HOME_NODE_ASSOCIATIVITY Laurent Vivier
2018-12-18  4:29 ` David Gibson
2018-12-18  7:50   ` Laurent Vivier
2018-12-18  9:23     ` [Qemu-devel] [Qemu-ppc] " Greg Kurz
2018-12-18 10:00       ` Laurent Vivier
2018-12-18 10:50         ` Greg Kurz
2018-12-18 10:57           ` Laurent Vivier [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=4e667a79-68b7-4cf1-994c-b72ee738e0a6@redhat.com \
    --to=lvivier@redhat.com \
    --cc=benh@kernel.crashing.org \
    --cc=david@gibson.dropbear.id.au \
    --cc=groug@kaod.org \
    --cc=paulus@samba.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.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).