Re: [PATCH] powerpc: Fix writable sections being moved into the rodata region

2022-11-15 Thread Christophe Leroy
Le 16/11/2022 à 05:39, Nicholas Piggin a écrit : > .data.rel.ro* catches .data.rel.root_cpuacct, and the kernel crashes on > a store in css_clear_dir. At least we know read-only data protection is > working... > > Fixes: b6adc6d6d3272 ("powerpc/build: move .data.rel.ro, .sdata2 to >

[PATCH] powerpc: Fix writable sections being moved into the rodata region

2022-11-15 Thread Nicholas Piggin
.data.rel.ro* catches .data.rel.root_cpuacct, and the kernel crashes on a store in css_clear_dir. At least we know read-only data protection is working... Fixes: b6adc6d6d3272 ("powerpc/build: move .data.rel.ro, .sdata2 to read-only") Signed-off-by: Nicholas Piggin ---

Re: [PATCH v3 0/4] PCI: Add pci_dev_for_each_resource() helper and

2022-11-15 Thread Krzysztof Wilczyński
Hello, > Provide two new helper macros to iterate over PCI device resources and > convert users. > > Looking at it, refactor existing pci_bus_for_each_resource() and convert > users accordingly. > > This applies on top of this patch Mika sent out earlier: >

Re: [PATCH v6 2/2] arm64: support batched/deferred tlb shootdown during page reclamation

2022-11-15 Thread Anshuman Khandual
On 11/16/22 07:26, Nadav Amit wrote: > On Nov 15, 2022, at 5:50 PM, Yicong Yang wrote: > >> !! External Email >> >> On 2022/11/16 7:38, Nadav Amit wrote: >>> On Nov 14, 2022, at 7:14 PM, Yicong Yang wrote: >>> diff --git a/arch/x86/include/asm/tlbflush.h

Re: [PATCH v6 2/2] arm64: support batched/deferred tlb shootdown during page reclamation

2022-11-15 Thread Nadav Amit
On Nov 15, 2022, at 5:50 PM, Yicong Yang wrote: > !! External Email > > On 2022/11/16 7:38, Nadav Amit wrote: >> On Nov 14, 2022, at 7:14 PM, Yicong Yang wrote: >> >>> diff --git a/arch/x86/include/asm/tlbflush.h >>> b/arch/x86/include/asm/tlbflush.h >>> index 8a497d902c16..5bd78ae55cd4

Re: [PATCH 33/44] KVM: x86: Do VMX/SVM support checks directly in vendor code

2022-11-15 Thread Sean Christopherson
On Tue, Nov 15, 2022, Huang, Kai wrote: > On Wed, 2022-11-02 at 23:19 +, Sean Christopherson wrote: > > +static bool __init kvm_is_vmx_supported(void) > > +{ > > + if (!cpu_has_vmx()) { > > + pr_err("CPU doesn't support VMX\n"); > > + return false; > > + } > > + > > +

Re: [PATCH v6 2/2] arm64: support batched/deferred tlb shootdown during page reclamation

2022-11-15 Thread Yicong Yang
On 2022/11/16 7:38, Nadav Amit wrote: > On Nov 14, 2022, at 7:14 PM, Yicong Yang wrote: > >> diff --git a/arch/x86/include/asm/tlbflush.h >> b/arch/x86/include/asm/tlbflush.h >> index 8a497d902c16..5bd78ae55cd4 100644 >> --- a/arch/x86/include/asm/tlbflush.h >> +++

Re: [PATCH 13/44] KVM: x86: Serialize vendor module initialization (hardware setup)

2022-11-15 Thread Huang, Kai
On Wed, 2022-11-02 at 23:18 +, Sean Christopherson wrote: > Acquire a new mutex, vendor_module_lock, in kvm_x86_vendor_init() while > doing hardware setup to ensure that concurrent calls are fully serialized. > KVM rejects attempts to load vendor modules if a different module has > already

Re: [PATCH v6 2/2] arm64: support batched/deferred tlb shootdown during page reclamation

2022-11-15 Thread Nadav Amit
On Nov 14, 2022, at 7:14 PM, Yicong Yang wrote: > diff --git a/arch/x86/include/asm/tlbflush.h b/arch/x86/include/asm/tlbflush.h > index 8a497d902c16..5bd78ae55cd4 100644 > --- a/arch/x86/include/asm/tlbflush.h > +++ b/arch/x86/include/asm/tlbflush.h > @@ -264,7 +264,8 @@ static inline u64

[Bug 215862] clang-15 fails ppc64 BE kernel build - ld.lld: error: undefined symbol: .early_setup

2022-11-15 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215862 Erhard F. (erhar...@mailbox.org) changed: What|Removed |Added URL|

Re: [PATCH 33/44] KVM: x86: Do VMX/SVM support checks directly in vendor code

2022-11-15 Thread Huang, Kai
On Wed, 2022-11-02 at 23:19 +, Sean Christopherson wrote: > +static bool __init kvm_is_vmx_supported(void) > +{ > + if (!cpu_has_vmx()) { > + pr_err("CPU doesn't support VMX\n"); > + return false; > + } > + > + if

Re: [PATCH 38/44] KVM: Disable CPU hotplug during hardware enabling

2022-11-15 Thread Sean Christopherson
On Tue, Nov 15, 2022, Sean Christopherson wrote: > On Thu, Nov 10, 2022, Huang, Kai wrote: > > On Thu, 2022-11-10 at 01:33 +, Huang, Kai wrote: > > > > @@ -9283,7 +9283,13 @@ static int > > > > kvm_x86_check_processor_compatibility(struct kvm_x86_init_ops *ops) > > > >   int cpu =

Re: [PATCH 38/44] KVM: Disable CPU hotplug during hardware enabling

2022-11-15 Thread Sean Christopherson
On Thu, Nov 10, 2022, Huang, Kai wrote: > On Thu, 2022-11-10 at 01:33 +, Huang, Kai wrote: > > > @@ -9283,7 +9283,13 @@ static int > > > kvm_x86_check_processor_compatibility(struct kvm_x86_init_ops *ops) > > >   int cpu = smp_processor_id(); > > >   struct cpuinfo_x86 *c = _data(cpu); > > >  

[Bug 215862] clang-15 fails ppc64 BE kernel build - ld.lld: error: undefined symbol: .early_setup

2022-11-15 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215862 Christophe Leroy (christophe.le...@csgroup.eu) changed: What|Removed |Added CC|

[Bug 215862] clang-15 fails ppc64 BE kernel build - ld.lld: error: undefined symbol: .early_setup

2022-11-15 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215862 --- Comment #2 from Erhard F. (erhar...@mailbox.org) --- Created attachment 303185 --> https://bugzilla.kernel.org/attachment.cgi?id=303185=edit kernel .config (6.1-rc5, PowerMac G5 11,2) -- You may reply to this email to add a comment. You

[Bug 215862] clang-15 fails ppc64 BE kernel build - ld.lld: error: undefined symbol: .early_setup

2022-11-15 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215862 Erhard F. (erhar...@mailbox.org) changed: What|Removed |Added Summary|clang-14 fails 5.18-rc3 |clang-15 fails ppc64

Re: [RFC PATCH 0/3] enable bpf_prog_pack allocator for powerpc

2022-11-15 Thread Christophe Leroy
Le 14/11/2022 à 18:27, Christophe Leroy a écrit : Le 14/11/2022 à 15:47, Hari Bathini a écrit : Hi Christophe, On 11/11/22 4:55 pm, Christophe Leroy wrote: Le 10/11/2022 à 19:43, Hari Bathini a écrit : Most BPF programs are small, but they consume a page each. For systems with busy

Re: [PATCH v3 00/12] powerpc: Nintendo Wii U support

2022-11-15 Thread Christophe Leroy
Hi, Your series doesn't apply anymore, can you rebase ? Thanks Christophe Le 28/06/2022 à 15:31, Ash Logan a écrit : > The following patches add basic support for the Nintendo Wii U video > game console, a PowerPC system somewhat similar to the GameCube and > Wii. > > This includes: > -

Re: [PATCH 10/44] KVM: VMX: Clean up eVMCS enabling if KVM initialization fails

2022-11-15 Thread Vitaly Kuznetsov
Sean Christopherson writes: > On Thu, Nov 03, 2022, Vitaly Kuznetsov wrote: >> Sean Christopherson writes: >> > + /* >> > + * Reset everything to support using non-enlightened VMCS access later >> > + * (e.g. when we reload the module with enlightened_vmcs=0) >> > + */ >> > +