Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1338051

Re: [PATCH v2 1/6] KVM: arm/arm64: arch_timer: Gather KVM specific information in a structure

From Julien Grall <julien.grall@arm.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2 1/6] KVM: arm/arm64: arch_timer: Gather KVM specific information in a structure
Date 2016-02-19 12:00 +0100
Message-ID <r3QX2-3RC-51@gated-at.bofh.it> (permalink)
References <r11vz-2gb-9@gated-at.bofh.it> <r11vA-2gb-23@gated-at.bofh.it> <r3NFM-1zJ-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hello Wei,

On 19/02/16 07:24, Wei Huang wrote:
> On 02/11/2016 09:33 AM, Julien Grall wrote:

[...]

>> This is also dropping arch_timer_get_timecounter as it was only used by
>> the KVM code. Furthermore, a stub for the new helper hasn't been
>> introduced because KVM is requiring the arch timer for both ARM64 and
>> ARM32.


[...]

>> -static inline struct timecounter *arch_timer_get_timecounter(void)
>> -{
>> -    return NULL;
>> -}
>> -
>
> Most parts are OK. Regarding removing this function from the #else area,
> is there a possibility to have CONFIG_ARM_ARCH_TIMER=n and CONFIG_KVM=y.
> If so, will the compilation fails here?

This patch is removing arch_timer_get_timecounter. So it's normal to
drop the stub in the #else area.

Furthermore, as mentioned in the commit message, I didn't add a stub for
the new function because KVM mandates the arch timer for both ARM64 and
ARM32.

Regards,

--
Julien Grall
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/6] arm64: Add support of KVM with ACPI Julien Grall <julien.grall@arm.com> - 2016-02-11 16:40 +0100
  [PATCH v2 3/6] irqchip/gic-v2: Gather ACPI specific data in a single structure Julien Grall <julien.grall@arm.com> - 2016-02-11 16:40 +0100
  [PATCH v2 5/6] irqchip/gic-v3: Parse and export virtual GIC information Julien Grall <julien.grall@arm.com> - 2016-02-11 16:40 +0100
  [PATCH v2 1/6] KVM: arm/arm64: arch_timer: Gather KVM specific information in a structure Julien Grall <julien.grall@arm.com> - 2016-02-11 16:40 +0100
    Re: [PATCH v2 1/6] KVM: arm/arm64: arch_timer: Gather KVM specific  information in a structure Wei Huang <wei@redhat.com> - 2016-02-19 08:30 +0100
      Re: [PATCH v2 1/6] KVM: arm/arm64: arch_timer: Gather KVM specific  information in a structure Julien Grall <julien.grall@arm.com> - 2016-02-19 12:00 +0100
        Re: [PATCH v2 1/6] KVM: arm/arm64: arch_timer: Gather KVM specific  information in a structure Julien Grall <julien.grall@arm.com> - 2016-02-19 12:50 +0100
      Re: [PATCH v2 1/6] KVM: arm/arm64: arch_timer: Gather KVM specific  information in a structure Marc Zyngier <marc.zyngier@arm.com> - 2016-02-19 13:00 +0100
  [PATCH v2 6/6] KVM: arm/arm64: vgic: Rely on the GIC driver to parse the firmware tables Julien Grall <julien.grall@arm.com> - 2016-02-11 16:40 +0100
  [PATCH v2 2/6] KVM: arm/arm64: arch_timer: Rely on the arch timer to parse the firmware tables Julien Grall <julien.grall@arm.com> - 2016-02-11 16:40 +0100
  [PATCH v2 4/6] irqchip/gic-v2: Parse and export virtual GIC information Julien Grall <julien.grall@arm.com> - 2016-02-11 16:40 +0100
  Re: [PATCH v2 0/6] arm64: Add support of KVM with ACPI Wei Huang <wei@redhat.com> - 2016-02-19 07:40 +0100

csiph-web