Re: [libvirt PATCH 0/3] Invalidate the cpu flags cache on changes of kernel command line

2021-08-11 Thread Eduardo Habkost
On Wed, Aug 11, 2021 at 9:53 AM Daniel P. Berrangé wrote: > > On Wed, Aug 11, 2021 at 09:46:17AM -0400, Eduardo Habkost wrote: > > On Wed, Aug 11, 2021 at 9:42 AM Daniel P. Berrangé > > wrote: > > > On Wed, Aug 11, 2021 at 09:33:08AM -0400, Eduardo Habkost wrote: > > > > Wouldn't it be easier

Re: [libvirt PATCH 0/3] Invalidate the cpu flags cache on changes of kernel command line

2021-08-11 Thread Eduardo Habkost
On Wed, Aug 11, 2021 at 9:42 AM Daniel P. Berrangé wrote: > On Wed, Aug 11, 2021 at 09:33:08AM -0400, Eduardo Habkost wrote: > > Wouldn't it be easier to simply invalidate the cache every time > > libvirtd is restarted? If libvirtd keeps /dev/kvm open all the time, > > this would also cover

Re: [libvirt PATCH 0/3] Invalidate the cpu flags cache on changes of kernel command line

2021-08-11 Thread Daniel P . Berrangé
On Wed, Aug 11, 2021 at 09:46:17AM -0400, Eduardo Habkost wrote: > On Wed, Aug 11, 2021 at 9:42 AM Daniel P. Berrangé > wrote: > > On Wed, Aug 11, 2021 at 09:33:08AM -0400, Eduardo Habkost wrote: > > > Wouldn't it be easier to simply invalidate the cache every time > > > libvirtd is restarted?

Re: [libvirt PATCH 0/3] Invalidate the cpu flags cache on changes of kernel command line

2021-08-11 Thread Daniel P . Berrangé
On Wed, Aug 11, 2021 at 09:33:08AM -0400, Eduardo Habkost wrote: > On Wed, Aug 11, 2021 at 4:43 AM Jiri Denemark wrote: > > > > On Fri, Aug 06, 2021 at 18:12:21 +0100, Daniel P. Berrangé wrote: > > > On Fri, Aug 06, 2021 at 05:07:45PM +0200, Jiri Denemark wrote: > > > > On Thu, Aug 05, 2021 at

Re: [libvirt PATCH 0/3] Invalidate the cpu flags cache on changes of kernel command line

2021-08-11 Thread Eduardo Habkost
On Wed, Aug 11, 2021 at 4:43 AM Jiri Denemark wrote: > > On Fri, Aug 06, 2021 at 18:12:21 +0100, Daniel P. Berrangé wrote: > > On Fri, Aug 06, 2021 at 05:07:45PM +0200, Jiri Denemark wrote: > > > On Thu, Aug 05, 2021 at 14:50:51 +0100, Daniel P. Berrangé wrote: > > > > On Thu, Aug 05, 2021 at

Re: [libvirt PATCH 0/3] Invalidate the cpu flags cache on changes of kernel command line

2021-08-11 Thread Jiri Denemark
On Fri, Aug 06, 2021 at 18:12:21 +0100, Daniel P. Berrangé wrote: > On Fri, Aug 06, 2021 at 05:07:45PM +0200, Jiri Denemark wrote: > > On Thu, Aug 05, 2021 at 14:50:51 +0100, Daniel P. Berrangé wrote: > > > On Thu, Aug 05, 2021 at 03:36:37PM +0200, Tim Wiederhake wrote: > > > > The kernel command

Re: [libvirt PATCH 0/3] Invalidate the cpu flags cache on changes of kernel command line

2021-08-06 Thread Daniel P . Berrangé
On Fri, Aug 06, 2021 at 05:07:45PM +0200, Jiri Denemark wrote: > On Thu, Aug 05, 2021 at 14:50:51 +0100, Daniel P. Berrangé wrote: > > On Thu, Aug 05, 2021 at 03:36:37PM +0200, Tim Wiederhake wrote: > > > The kernel command line can contain settings affecting the availability > > > of cpu

Re: [libvirt PATCH 0/3] Invalidate the cpu flags cache on changes of kernel command line

2021-08-06 Thread Jiri Denemark
On Thu, Aug 05, 2021 at 14:50:51 +0100, Daniel P. Berrangé wrote: > On Thu, Aug 05, 2021 at 03:36:37PM +0200, Tim Wiederhake wrote: > > The kernel command line can contain settings affecting the availability > > of cpu features, eg. "tsx=on". This series adds the kernel command line > > to the cpu

Re: [libvirt PATCH 0/3] Invalidate the cpu flags cache on changes of kernel command line

2021-08-05 Thread Daniel P . Berrangé
On Thu, Aug 05, 2021 at 03:36:37PM +0200, Tim Wiederhake wrote: > The kernel command line can contain settings affecting the availability > of cpu features, eg. "tsx=on". This series adds the kernel command line > to the cpu flags cache and declares the cache invalid if the current > kernel

[libvirt PATCH 0/3] Invalidate the cpu flags cache on changes of kernel command line

2021-08-05 Thread Tim Wiederhake
The kernel command line can contain settings affecting the availability of cpu features, eg. "tsx=on". This series adds the kernel command line to the cpu flags cache and declares the cache invalid if the current kernel command line differs. Fixes