|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XEN v2 04/12] xen/Arm: vGICv3: Adapt emulation of GICR_TYPER for AArch32
Hi Ayan, On 07/11/2022 14:00, Ayan Kumar Halder wrote: On 07/11/2022 11:54, Julien Grall wrote:Hi Ayan,Hi Julien, I need one clarification.On 07/11/2022 11:33, Ayan Kumar Halder wrote:On 06/11/2022 18:04, Julien Grall wrote:Hi Ayan,Hi Julien, I need a clarification.In the title you are using AArch32 but below you are using... On 31/10/2022 15:13, Ayan Kumar Halder wrote:v->arch.vmpidr is assigned to uint64_t variable. This is to enable left shiftsfor Aarch32 so that one can extract affinity bits.... Aarch32. The naming also seem to be inconsistent across your series. AFAIU, it should be AArch32. So please look at all your commits and make sure you use the same everywhere.AckThis is then assigned to 'typer' so that the affinity bits form the upper 32 bits.Refer Arm IHI 0069H ID020922, The upper 32 bits of GICR_TYPER represent the affinity whereas the lower 32 bits represent the other bits (eg processor number, etc). Signed-off-by: Ayan Kumar Halder <ayankuma@xxxxxxx> --- Changes from :- 1. v1 - Assigned v->arch.vmpidr to "uint64_t vmpdir". Then, we can use MPIDR_AFFINITY_LEVEL macros to extract the affinity value. xen/arch/arm/vgic-v3.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/xen/arch/arm/vgic-v3.c b/xen/arch/arm/vgic-v3.c index 3f4509dcd3..e5e6f2c573 100644 --- a/xen/arch/arm/vgic-v3.c +++ b/xen/arch/arm/vgic-v3.c@@ -191,13 +191,15 @@ static int __vgic_v3_rdistr_rd_mmio_read(struct vcpu *v, mmio_info_t *info, Yes with... --- a/xen/arch/arm/vgic-v3.c +++ b/xen/arch/arm/vgic-v3.c@@ -191,13 +191,15 @@ static int __vgic_v3_rdistr_rd_mmio_read(struct vcpu *v, mmio_info_t *info, ... this spurious change dropped. /* We use the VCPU ID as the redistributor ID in bits[23:8] */ typer |= v->vcpu_id << GICR_TYPER_PROC_NUM_SHIFT;If so, then we can drop the patch "[XEN v2 02/12] xen/Arm: GICv3: Move the macros to compute the affnity level to arm64/arm32"Also, we should do the following change :- Yes but in a separate patch (we should keep vGIC and GIC changes separate). ayankuma@xcbayankuma41x:/scratch/ayankuma/r52_xen/xen-pristine$ git diff xen/arch/arm/gic-v3.cdiff --git a/xen/arch/arm/gic-v3.c b/xen/arch/arm/gic-v3.c index d8ce0f46c6..e7d5338152 100644 --- a/xen/arch/arm/gic-v3.c +++ b/xen/arch/arm/gic-v3.c@@ -527,7 +527,10 @@ static void gicv3_set_pending_state(struct irq_desc *irqd, bool pending) -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |