Re: [PATCH v2 0/8] x86/mtrr: fix handling with PAT but without MTRR

2023-02-15 Thread Juergen Gross
On 16.02.23 00:22, Linus Torvalds wrote: On Wed, Feb 15, 2023 at 12:25 AM Juergen Gross wrote: The problem arises in case a large mapping is spanning multiple MTRRs, even if they define the same caching type (uniform is set to 0 in this case). Oh, I think then you should fix uniform to be

Re: [PATCH v2 0/8] x86/mtrr: fix handling with PAT but without MTRR

2023-02-15 Thread Linus Torvalds
On Wed, Feb 15, 2023 at 12:25 AM Juergen Gross wrote: > > The problem arises in case a large mapping is spanning multiple MTRRs, > even if they define the same caching type (uniform is set to 0 in this > case). Oh, I think then you should fix uniform to be 1. IOW, we should not think "multiple

Re: [PATCH v2 0/8] x86/mtrr: fix handling with PAT but without MTRR

2023-02-15 Thread Juergen Gross
On 13.02.23 19:21, Edgecombe, Rick P wrote: On Mon, 2023-02-13 at 07:12 +0100, Juergen Gross wrote: Thanks for the report. I'll have a look. Probably I'll need to re-add the check for WB in patch 7. Sure, let me know if you need any more details about by setup. I have reproduced the

Re: [PATCH v2 0/8] x86/mtrr: fix handling with PAT but without MTRR

2023-02-13 Thread Edgecombe, Rick P
On Mon, 2023-02-13 at 07:12 +0100, Juergen Gross wrote: > > Thanks for the report. > > I'll have a look. Probably I'll need to re-add the check for WB in > patch 7. Sure, let me know if you need any more details about by setup.

Re: [PATCH v2 0/8] x86/mtrr: fix handling with PAT but without MTRR

2023-02-12 Thread Juergen Gross
On 11.02.23 01:06, Edgecombe, Rick P wrote: On Thu, 2023-02-09 at 08:22 +0100, Juergen Gross wrote: This series tries to fix the rather special case of PAT being available without having MTRRs (either due to CONFIG_MTRR being not set, or because the feature has been disabled e.g. by a

Re: [PATCH v2 0/8] x86/mtrr: fix handling with PAT but without MTRR

2023-02-10 Thread Edgecombe, Rick P
On Thu, 2023-02-09 at 08:22 +0100, Juergen Gross wrote: > This series tries to fix the rather special case of PAT being > available > without having MTRRs (either due to CONFIG_MTRR being not set, or > because the feature has been disabled e.g. by a hypervisor). debug_vm_pgtable fails in a KVM

[PATCH v2 0/8] x86/mtrr: fix handling with PAT but without MTRR

2023-02-08 Thread Juergen Gross
This series tries to fix the rather special case of PAT being available without having MTRRs (either due to CONFIG_MTRR being not set, or because the feature has been disabled e.g. by a hypervisor). The main use cases are Xen PV guests and SEV-SNP guests running under Hyper-V. Instead of trying