* Re: [PATCH v2 1/8] x86/xen/pv: Don't setup runstate area too early [not found] ` <1792170392.8631fc262581453bbf619ec5b2062170.1a145adfbff0008425@vates.tech> @ 2026-10-16 17:33 ` Andrew Cooper 2026-10-16 18:04 ` Andrew Cooper 0 siblings, 1 reply; 2+ messages in thread From: Andrew Cooper @ 2026-10-16 17:33 UTC (permalink / raw) To: Teddy Astie, xen-devel Cc: Andrew Cooper, Juergen Gross, Boris Ostrovsky, Stefano Stabellini, Oleksandr Tyshchenko, David Woodhouse, x86, linux-kernel On 16/10/2026 6:06 pm, Teddy Astie wrote: > This is no longer required since [1]. > > At this moment of boot, per_cpu areas are not initialized, which prevents > using VCPUOP_register_runstate_phys_area as per_cpu_ptr_to_phys() would > misbehave in this case. This isn't really correct. The per-cpu area for the BSP is within the main image, which is why the logic functions today. What's missing is the call to pcpu_setup_first_chunk() which tells per_cpu_ptr_to_phys() about where the BSP data is. I think you want to say: "A future change wants to use per_cpu_ptr_to_phys() in xen_setup_runstate_info(), but this call is too early. It turns out to be no longer required since ..." > > [1] 8a22b9996b00 ("xen: drop xen_sched_clock in favour of using plain wallclock time") > --- Missing SoB. ~Andrew ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v2 1/8] x86/xen/pv: Don't setup runstate area too early 2026-10-16 17:33 ` [PATCH v2 1/8] x86/xen/pv: Don't setup runstate area too early Andrew Cooper @ 2026-10-16 18:04 ` Andrew Cooper 0 siblings, 0 replies; 2+ messages in thread From: Andrew Cooper @ 2026-10-16 18:04 UTC (permalink / raw) To: Teddy Astie, xen-devel Cc: Andrew Cooper, Juergen Gross, Boris Ostrovsky, Stefano Stabellini, Oleksandr Tyshchenko, David Woodhouse, x86, linux-kernel On 16/10/2026 6:33 pm, Andrew Cooper wrote: > On 16/10/2026 6:06 pm, Teddy Astie wrote: >> This is no longer required since [1]. >> >> At this moment of boot, per_cpu areas are not initialized, which prevents >> using VCPUOP_register_runstate_phys_area as per_cpu_ptr_to_phys() would >> misbehave in this case. > This isn't really correct. > > The per-cpu area for the BSP is within the main image, which is why the > logic functions today. What's missing is the call to > pcpu_setup_first_chunk() which tells per_cpu_ptr_to_phys() about where > the BSP data is. > > I think you want to say: > > "A future change wants to use per_cpu_ptr_to_phys() in > xen_setup_runstate_info(), but this call is too early. It turns out to > be no longer required since ..." > >> [1] 8a22b9996b00 ("xen: drop xen_sched_clock in favour of using plain wallclock time") >> --- > Missing SoB. > > ~Andrew But this does pose another question... Linux only ever registers time referencing vCPU 0. Why are the targets of the registration in the per-cpu area? That's presumably wasted space on all APs. ~Andrew ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-10-16 18:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1792170295.8631fc262581453bbf619ec5b2062170.1a145ac82530008425@vates.tech>
[not found] ` <1792170392.8631fc262581453bbf619ec5b2062170.1a145adfbff0008425@vates.tech>
2026-10-16 17:33 ` [PATCH v2 1/8] x86/xen/pv: Don't setup runstate area too early Andrew Cooper
2026-10-16 18:04 ` Andrew Cooper
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®