[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 06/10] qapi: make Xen event commands unconditionally availabl
From: |
David Woodhouse |
Subject: |
Re: [PATCH 06/10] qapi: make Xen event commands unconditionally available |
Date: |
Thu, 08 May 2025 10:48:22 -0700 |
User-agent: |
Evolution 3.52.3-0ubuntu1 |
On Thu, 2025-05-08 at 17:01 +0200, Philippe Mathieu-Daudé wrote:
> Cc'ing Zhao
>
> On 8/5/25 15:58, Daniel P. Berrangé wrote:
Hm, what mailer does that? Does it mean August 5th or May 8th? Even in
the original definition of RFC821 they knew not to use dates in those
forms :)
> > This removes the TARGET_I386 condition from the Xen event channel
> > commands, moving them to the recently introduced misc-i386.json
> > QAPI file, given they are inherantly i386 specific commands.
'inherently'
>
> > ---
> > -##
> > -# @EvtchnPortType:
> > -#
> > -# An enumeration of Xen event channel port types.
> > -#
> > -# @closed: The port is unused.
> > -#
> > -# @unbound: The port is allocated and ready to be bound.
> > -#
> > -# @interdomain: The port is connected as an interdomain interrupt.
> > -#
> > -# @pirq: The port is bound to a physical IRQ (PIRQ).
> > -#
> > -# @virq: The port is bound to a virtual IRQ (VIRQ).
> > -#
> > -# @ipi: The post is an inter-processor interrupt (IPI).
> > -#
> > -# Since: 8.0
> > -##
> > -{ 'enum': 'EvtchnPortType',
> > - 'data': ['closed', 'unbound', 'interdomain', 'pirq', 'virq', 'ipi'],
> > - 'if': 'TARGET_I386' }
>
> Interesting, this ought to be "all {TARGET_I386, CONFIG_KVM}".
Isn't it CONFIG_XEN_EMU? But ISTR it wasn't possible to depend on those
target-specific options in generic code? I forget the precise details.
So we ended up just ensuring the stubs were provided in the right
cases.
This patch moves those stubs from hw/i386/kvm/xen-stubs.c which was
built if !CONFIG_XEN_EMU, and moves them elsewhere if !CONFIG_KVM? So
at first glance I think it might fail for KVM && !XEN_EMU builds... ?
smime.p7s
Description: S/MIME cryptographic signature
[PATCH 02/10] qapi: expand docs for SEV commands, Daniel P . Berrangé, 2025/05/08
[PATCH 03/10] qapi: make SEV commands unconditionally available, Daniel P . Berrangé, 2025/05/08
[PATCH 05/10] qapi: make SGX commands unconditionally available, Daniel P . Berrangé, 2025/05/08
[PATCH 06/10] qapi: make Xen event commands unconditionally available, Daniel P . Berrangé, 2025/05/08
[PATCH 07/10] qapi: remove the misc-target.json file, Daniel P . Berrangé, 2025/05/08
[PATCH 04/10] qapi: expose query-gic-capability command unconditionally, Daniel P . Berrangé, 2025/05/08
[PATCH 08/10] qapi: Make CpuModelExpansionInfo::deprecated-props optional and generic, Daniel P . Berrangé, 2025/05/08
[PATCH 09/10] qapi: make most CPU commands unconditionally available, Daniel P . Berrangé, 2025/05/08