Re: [patch 7/7] x86/kvmclock: Switch kvmclock data to a PER_CPU variable

2018-07-11 Thread Pavel Tatashin
> /* Aligned to page sizes to match whats mapped via vsyscalls to userspace */ > #define HV_CLOCK_SIZE (sizeof(struct pvclock_vsyscall_time_info) * NR_CPUS) HV_CLOCK_SIZE is not used anywhere anymore, can be deleted. > +#define HVC_BOOT_ARRAY_SIZE \ > + (PAGE_SIZE / sizeof(struct pvclock

[patch 7/7] x86/kvmclock: Switch kvmclock data to a PER_CPU variable

2018-07-06 Thread Thomas Gleixner
From: Thomas Gleixner The previous removal of the memblock dependency from kvmclock introduced a static data array sized 64bytes * CONFIG_NR_CPUS. That's wasteful on large systems when kvmclock is not used. Replace it with: - A static page sized array of pvclock data. It's page sized because t