[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 8/9] xen/ppc: Add stub function and symbol definitions


  • To: Shawn Anastasio <sanastasio@xxxxxxxxxxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Fri, 25 Aug 2023 11:10:26 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=f52SpgfShauYLc1h5LIrrIicG4ALc3T2Kzm0G8kuEFg=; b=e8dXLBZFP+negDG6F1tozWqRKUbno6sdQ6BdgUhfFaKcR3BHB4OlHPW68fS1Y7SakXoFd8ep1tIQ26SRQaT9al2u7Eq1FLP5bew6pnG7wtcDf2Qoe8GbflM5gNjMpWVHc8cT39qfOAZ/w5dOMfQxsERlbgd+pKhjXIu7qIZ/mLQG1bG/p1qzQWduMa+nu1EtFT3LSMsuUl2qb64S9ho4dKcElhJxroCJUGIB9D0raHUCb4FhDf7ecS6nHPKTHdic/5b/xok/C9xR+2NAze6I4UkiSvq358oF9BuTpDIPramEjO880qaX6+3MtkjNDsWH5GzSzbbNAic+2kepYe6txw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G0PSC0V/sUEjYGl7smDGkQ3p7CJfqYSUiQWFv2DAPzNPTwk99rPnd+Im2j7j0fVclvnGnIiDjPOSXcXwQhQ/VvXLOs93Qbe/t0X8S9eKrx4xG9viR5FYxhHmPpjNFxOJ4pw1TKLNIx+P2AhOwM124nzyhh2qwyplDkk4cFQWKR90Sqsgzkp4BR6hTqC8+bUcmh1OWISbjvZc4bjVFtHjLXmeVZGLsMut0zHCBLyuRCBFo3CTtjjrQyB6GD+3rGILsLL7C+92PkmNwOoNzrQT1ttewEOAvWNtqecy7T+c8XbrGYttgcM3blLekZ7xqu7rFKJQGXM7OzoPpdqOQwgadg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Timothy Pearson <tpearson@xxxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Fri, 25 Aug 2023 09:10:50 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 23.08.2023 20:39, Shawn Anastasio wrote:
> On 8/8/23 5:27 AM, Jan Beulich wrote:
>> On 03.08.2023 01:03, Shawn Anastasio wrote:
>>> +int map_pages_to_xen(unsigned long virt,
>>> +                     mfn_t mfn,
>>> +                     unsigned long nr_mfns,
>>> +                     unsigned int flags)
>>
>> There's a patch in flight regarding the naming of this last parameter.
>> I guess PPC would best be in sync right away.
>>
> 
> I can't seem to find the patch in question and it doesn't seem like it
> has been merged in the meantime. Could you provide a link?

Looks like I was misremembering, and it was modify_xen_mappings() instead.
I'm sorry for the noise.

>>> --- /dev/null
>>> +++ b/xen/arch/ppc/stubs.c
>>> @@ -0,0 +1,351 @@
>>> [...]
>>> +static void ack_none(struct irq_desc *irq)
>>> +{
>>> +    BUG();
>>> +}
>>> +
>>> +static void end_none(struct irq_desc *irq)
>>> +{
>>> +    BUG();
>>> +}
>>> +
>>> +hw_irq_controller no_irq_type = {
>>> +    .typename = "none",
>>> +    .startup = irq_startup_none,
>>> +    .shutdown = irq_shutdown_none,
>>> +    .enable = irq_enable_none,
>>> +    .disable = irq_disable_none,
>>> +    .ack = ack_none,
>>> +    .end = end_none
>>> +};
>>
>> I would recommend to avoid filling pointers (and hence having private
>> hook functions) where it's not clear whether they'll be required. "end",
>> for example, is an optional hook on x86. Iirc common code doesn't use
>> any of the hooks.
> 
> Alright, I'll drop the `end_none` stub and leave the .end pointer as
> NULL.

Yet my comment was about all the (presently dead) hook functions.

Jan



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.