Re: [PATCH v2 3/8] x86/mm: Remove "static" from vmap_pages_range()

2023-11-21 Thread Christoph Hellwig
On Tue, Nov 21, 2023 at 01:20:11PM -0800, mhkelle...@gmail.com wrote: > From: Michael Kelley > > The mm subsystem currently provides no mechanism to map memory pages > to a specified virtual address range. A virtual address range can be > allocated using get_vm_area(), but the only function avai

[GIT PULL] Hyper-V fixes for 6.7-rc3

2023-11-21 Thread Wei Liu
Hi Linus, The following changes since commit ffc253263a1375a65fa6c9f62a893e9767fbebfa: Linux 6.6 (2023-10-29 16:31:08 -1000) are available in the Git repository at: ssh://g...@gitolite.kernel.org/pub/scm/linux/kernel/git/hyperv/linux.git tags/hyperv-fixes-signed-20231121 for you to

Re: [PATCH] x86/hyperv: Use atomic_try_cmpxchg() to micro-optimize hv_nmi_unknown()

2023-11-21 Thread Wei Liu
On Wed, Nov 15, 2023 at 09:58:29PM +0100, Uros Bizjak wrote: > On Wed, Nov 15, 2023 at 6:19 PM Michael Kelley wrote: > > > > From: Uros Bizjak Sent: Tuesday, November 14, 2023 8:59 > > AM > > > > > > Use atomic_try_cmpxchg() instead of atomic_cmpxchg(*ptr, old, new) == old > > > in hv_nmi_unknow

Re: [PATCH V2 net-next] net: mana: Assigning IRQ affinity on HT cores

2023-11-21 Thread Jakub Kicinski
On Tue, 21 Nov 2023 05:54:37 -0800 Souradeep Chakrabarti wrote: > Existing MANA design assigns IRQ to every CPUs, including sibling > hyper-threads > in a core. This causes multiple IRQs to work on same CPU and may reduce the > network > performance with RSS. > > Improve the performance by adher

Re: [PATCH V2 net-next] net: mana: Assigning IRQ affinity on HT cores

2023-11-21 Thread kernel test robot
Hi Souradeep, kernel test robot noticed the following build warnings: [auto build test WARNING on net-next/main] url: https://github.com/intel-lab-lkp/linux/commits/Souradeep-Chakrabarti/net-mana-Assigning-IRQ-affinity-on-HT-cores/20231121-215912 base: net-next/main patch link: https

[PATCH v2 3/8] x86/mm: Remove "static" from vmap_pages_range()

2023-11-21 Thread mhkelley58
From: Michael Kelley The mm subsystem currently provides no mechanism to map memory pages to a specified virtual address range. A virtual address range can be allocated using get_vm_area(), but the only function available for mapping memory pages to a caller-specified address in that range is io

[PATCH v2 6/8] x86/mm: Merge CoCo prepare and finish hypervisor callbacks

2023-11-21 Thread mhkelley58
From: Michael Kelley With CoCo VM pages being marked not present when changing between encrypted and decrypted, the order of updating the guest PTEs and notifying the hypervisor doesn't matter. As such, only a single hypervisor callback is needed, rather than one before and one after the PTE upda

[PATCH v2 8/8] x86/mm: Add comments about errors in set_memory_decrypted()/encrypted()

2023-11-21 Thread mhkelley58
From: Michael Kelley The functions set_memory_decrypted()/encrypted() may leave the input memory range in an inconsistent state if an error occurs. Add comments describing the situation and what callers must be aware of. Also add comments in __set_memory_enc_dec() with more details on the issue

[PATCH v2 1/8] x86/coco: Use slow_virt_to_phys() in page transition hypervisor callbacks

2023-11-21 Thread mhkelley58
From: Michael Kelley In preparation for temporarily marking pages not present during a transition between encrypted and decrypted, use slow_virt_to_phys() in the hypervisor callbacks. As long as the PFN is correct, slow_virt_to_phys() works even if the leaf PTE is not present. The existing functi

[PATCH v2 7/8] x86/mm: Remove unnecessary call layer for __set_memory_enc_pgtable()

2023-11-21 Thread mhkelley58
From: Michael Kelley __set_memory_enc_pgtable() is only called from __set_memory_enc_dec() after doing a simple validation check. Prior to commit 812b0597fb40, __set_memory_enc_dec() did more complex checking, but now the code can be simplified by collapsing the two functions. No functional chan

[PATCH v2 5/8] x86/mm: Mark CoCo VM pages not present while changing encrypted state

2023-11-21 Thread mhkelley58
From: Michael Kelley In a CoCo VM when a page transitions from encrypted to decrypted, or vice versa, attributes in the PTE must be updated *and* the hypervisor must be notified of the change. Because there are two separate steps, there's a window where the settings are inconsistent. Normally th

[PATCH v2 4/8] x86/sev: Enable PVALIDATE for PFNs without a valid virtual address

2023-11-21 Thread mhkelley58
From: Michael Kelley For SEV-SNP, the PVALIDATE instruction requires a valid virtual address that it translates to the PFN that it operates on. Per the spec, it translates the virtual address as if it were doing a single byte read. In transitioning a page between encrypted and decrypted, the di

[PATCH v2 2/8] x86/mm: Don't do a TLB flush if changing a PTE that isn't marked present

2023-11-21 Thread mhkelley58
From: Michael Kelley The core function __change_page_attr() currently sets up a TLB flush if a PTE is changed. But if the old value of the PTE doesn't include the PRESENT flag, the PTE won't be in the TLB, so a flush isn't needed. Avoid an unnecessary TLB flush by conditioning the flush on the o

[PATCH v2 0/8] x86/coco: Mark CoCo VM pages not present when changing encrypted state

2023-11-21 Thread mhkelley58
From: Michael Kelley In a CoCo VM when a page transitions from encrypted to decrypted, or vice versa, attributes in the PTE must be updated *and* the hypervisor must be notified of the change. Because there are two separate steps, there's a window where the settings are inconsistent. Normally th

RE: [PATCH V2 net-next] net: mana: Assigning IRQ affinity on HT cores

2023-11-21 Thread Michael Kelley
From: Souradeep Chakrabarti Sent: Tuesday, November 21, 2023 5:55 AM > > Existing MANA design assigns IRQ to every CPUs, including sibling > hyper-threads "assigns IRQs to every CPU" > in a core. This causes multiple IRQs to work on same CPU and may reduce the > network "This may cause mult

Re: [PATCH v2 00/17] Solve iommu probe races around iommu_fwspec

2023-11-21 Thread Jason Gunthorpe
On Tue, Nov 21, 2023 at 04:06:15PM +, Robin Murphy wrote: > > Obviously. I rejected that right away because of how incredibly > > wrongly layered and hacky it is to do something like that. > > What, and dressing up the fundamental layering violation by baking it even > further into the API fl

RE: [PATCH V2 net-next] net: mana: Assigning IRQ affinity on HT cores

2023-11-21 Thread Haiyang Zhang
> -Original Message- > From: Souradeep Chakrabarti > Sent: Tuesday, November 21, 2023 8:55 AM > + /* for each interrupt find the cpu of a particular > + * sibling set and if it belongs to the specific numa > + * then assign irq to it and clear the cpu bit from > + *

Re: [PATCH v2 00/17] Solve iommu probe races around iommu_fwspec

2023-11-21 Thread Robin Murphy
On 2023-11-16 4:17 am, Jason Gunthorpe wrote: On Wed, Nov 15, 2023 at 08:23:54PM +, Robin Murphy wrote: On 2023-11-15 3:36 pm, Jason Gunthorpe wrote: On Wed, Nov 15, 2023 at 03:22:09PM +, Robin Murphy wrote: On 2023-11-15 2:05 pm, Jason Gunthorpe wrote: [Several people have tested thi

Re: [PATCH v2 06/17] iommu: Add iommu_fwspec_alloc/dealloc()

2023-11-21 Thread Jason Gunthorpe
On Tue, Nov 21, 2023 at 03:47:48PM +0900, Hector Martin wrote: > > Which is sensitive only to !NULL fwspec, and if EPROBE_DEFER is > > returned fwspec will be freed and dev->iommu->fwspec will be NULL > > here. > > > > In the NULL case it does a 'bus probe' with a NULL fwspec and all the > > fwspe

RE: [PATCH net-next] net: mana: Assigning IRQ affinity on HT cores

2023-11-21 Thread Souradeep Chakrabarti
>-Original Message- >From: Michael Kelley >Sent: Thursday, November 16, 2023 11:47 AM >To: Michael Kelley ; Souradeep Chakrabarti >; KY Srinivasan ; >Haiyang Zhang ; wei@kernel.org; Dexuan Cui >; da...@davemloft.net; eduma...@google.com; >k...@kernel.org; pab...@redhat.com; Long Li

[PATCH V2 net-next] net: mana: Assigning IRQ affinity on HT cores

2023-11-21 Thread Souradeep Chakrabarti
Existing MANA design assigns IRQ to every CPUs, including sibling hyper-threads in a core. This causes multiple IRQs to work on same CPU and may reduce the network performance with RSS. Improve the performance by adhering the configuration for RSS, which assigns IRQ on HT cores. Signed-off-by: S

Re: [PATCH net,v5, 0/3] hv_netvsc: fix race of netvsc, VF register, and slave bit

2023-11-21 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net.git (main) by Paolo Abeni : On Sun, 19 Nov 2023 08:23:40 -0800 you wrote: > There are some races between netvsc probe, set notifier, VF register, > and slave bit setting. > This patch set fixes them. > > Haiyang Zhang (2): > hv_netvsc: fix race of n

Proszę o kontakt

2023-11-21 Thread Maksymilian Ciszewski
Dzień dobry, Czy jest możliwość nawiązania współpracy z Państwem? Z chęcią porozmawiam z osobą zajmującą się działaniami związanymi ze sprzedażą. Pomagamy skutecznie pozyskiwać nowych klientów. Zapraszam do kontaktu. Pozdrawiam Maksymilian Ciszewski