From: Vladimir Murzin <vladimir.murzin@arm.com>
To: Andre Przywara <andre.przywara@arm.com>, kvmarm@lists.cs.columbia.edu
Cc: marc.zyngier@arm.com
Subject: Re: [PATCH] kvmtool/arm: add support for vGICv3 and vITS
Date: Wed, 2 Nov 2016 13:16:06 +0000 [thread overview]
Message-ID: <5819E716.3070808@arm.com> (raw)
In-Reply-To: <ac31697f-5228-67f7-1d36-03a0bd848272@arm.com>
Hi Andre,
On 02/11/16 12:18, Andre Przywara wrote:
> Hi Vladimir,
>
> thanks for looking at this.
>
> ....
>
> On 02/11/16 11:56, Vladimir Murzin wrote:
>> KVM/arm got support for vGICv3 and vITS recently, so make use of it.
>>
>> Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
>> ---
>>
>> This patch is against its/v8 branch at [1]
>>
>> [1] git://www.linux-arm.org/kvmtool.git
>>
>> arm/aarch32/arm-cpu.c | 2 +-
>> arm/aarch32/include/kvm/kvm-arch.h | 4 ++--
>> 2 files changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/arm/aarch32/arm-cpu.c b/arm/aarch32/arm-cpu.c
>> index 27a8e17..16bba55 100644
>> --- a/arm/aarch32/arm-cpu.c
>> +++ b/arm/aarch32/arm-cpu.c
>> @@ -12,7 +12,7 @@ static void generate_fdt_nodes(void *fdt, struct kvm *kvm)
>> {
>> int timer_interrupts[4] = {13, 14, 11, 10};
>>
>> - gic__generate_fdt_nodes(fdt, IRQCHIP_GICV2);
>> + gic__generate_fdt_nodes(fdt, kvm->cfg.arch.irqchip);
>> timer__generate_fdt_nodes(fdt, kvm, timer_interrupts);
>> }
>>
>> diff --git a/arm/aarch32/include/kvm/kvm-arch.h b/arm/aarch32/include/kvm/kvm-arch.h
>> index 1632e3c..99231f6 100644
>> --- a/arm/aarch32/include/kvm/kvm-arch.h
>> +++ b/arm/aarch32/include/kvm/kvm-arch.h
>> @@ -1,8 +1,8 @@
>> #ifndef KVM__KVM_ARCH_H
>> #define KVM__KVM_ARCH_H
>>
>> -#define ARM_GIC_DIST_SIZE 0x1000
>> -#define ARM_GIC_CPUI_SIZE 0x2000
>> +#define ARM_GIC_DIST_SIZE 0x100000
>> +#define ARM_GIC_CPUI_SIZE 0x200000
>
> Is there a spare 0 in there? I guess 64K & 128K are sufficient and we
> don't need 1MB and 2MB, respectively?
Fat fingers :( Thanks for spotting this!
>
> Given that you meant this the #define's for both aarch32 and aarch64 are
> now the same, so we can remove the definition above and in the
> respective aarch64 header file and put them into arm-common/kvm-arch.h
> instead.
Sending v2 shortly.
Cheers
Vladimir
>
> Cheers,
> Andre.
>
>>
>> #define ARM_KERN_OFFSET(...) 0x8000
>>
>>
>
prev parent reply other threads:[~2016-11-02 13:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-02 11:56 [PATCH] kvmtool/arm: add support for vGICv3 and vITS Vladimir Murzin
2016-11-02 12:18 ` Andre Przywara
2016-11-02 13:16 ` Vladimir Murzin [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=5819E716.3070808@arm.com \
--to=vladimir.murzin@arm.com \
--cc=andre.przywara@arm.com \
--cc=kvmarm@lists.cs.columbia.edu \
--cc=marc.zyngier@arm.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