1. 18 Oct, 2023 1 commit
    • Uros Bizjak's avatar
      x86/percpu: Use the correct asm operand modifier in percpu_stable_op() · e39828d2
      Uros Bizjak authored
      The "P" asm operand modifier is a x86 target-specific modifier.
      
      When used for a constant, it drops all syntax-specific prefixes and
      issues the bare constant. This modifier is not correct for address
      handling, in this case a generic "a" operand modifier should be used.
      
      The "a" asm operand modifier substitutes a memory reference, with the
      actual operand treated as address.  For x86_64, when a symbol is
      provided, the "a" modifier emits "sym(%rip)" instead of "sym",
      enabling shorter %rip-relative addressing.
      
      Clang allows only "i" and "r" operand constraints with an "a" modifier,
      so the patch normalizes the modifier/constraint pair to "a"/"i"
      which is consistent between both compilers.
      
      The patch reduces code size of a test build by 4072 bytes:
      
         text            data     bss    dec             hex     filename
         25523268        4388300  808452 30720020        1d4c014 vmlinux-old.o
         25519196        4388300  808452 30715948        1d4b02c vmlinux-new.o
      
      [ mingo: Changelog clarity. ]
      Signed-off-by: default avatarUros Bizjak <ubizjak@gmail.com>
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      Cc: Andy Lutomirski <luto@kernel.org>
      Cc: Brian Gerst <brgerst@gmail.com>
      Cc: Denys Vlasenko <dvlasenk@redhat.com>
      Cc: H. Peter Anvin <hpa@zytor.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Josh Poimboeuf <jpoimboe@redhat.com>
      Cc: Uros Bizjak <ubizjak@gmail.com>
      Cc: Sean Christopherson <seanjc@google.com>
      Link: https://lore.kernel.org/r/20231016200755.287403-1-ubizjak@gmail.com
      e39828d2
  2. 16 Oct, 2023 2 commits
    • Uros Bizjak's avatar
      x86/percpu: Use C for arch_raw_cpu_ptr(), to improve code generation · 1d10f3ae
      Uros Bizjak authored
      Implement arch_raw_cpu_ptr() in C to allow the compiler to perform
      better optimizations, such as setting an appropriate base to compute
      the address. The compiler is free to choose either MOV or ADD from
      this_cpu_off address to construct the optimal final address.
      
      There are some other issues when memory access to the percpu area is
      implemented with an asm. Compilers can not eliminate asm common
      subexpressions over basic block boundaries, but are extremely good
      at optimizing memory access. By implementing arch_raw_cpu_ptr() in C,
      the compiler can eliminate additional redundant loads from this_cpu_off,
      further reducing the number of percpu offset reads from 1646 to 1631
      on a test build, a -0.9% reduction.
      Co-developed-by: default avatarNadav Amit <namit@vmware.com>
      Signed-off-by: default avatarNadav Amit <namit@vmware.com>
      Signed-off-by: default avatarUros Bizjak <ubizjak@gmail.com>
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      Cc: Andy Lutomirski <luto@kernel.org>
      Cc: Brian Gerst <brgerst@gmail.com>
      Cc: Denys Vlasenko <dvlasenk@redhat.com>
      Cc: H. Peter Anvin <hpa@zytor.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Josh Poimboeuf <jpoimboe@redhat.com>
      Cc: Uros Bizjak <ubizjak@gmail.com>
      Cc: Sean Christopherson <seanjc@google.com>
      Link: https://lore.kernel.org/r/20231015202523.189168-2-ubizjak@gmail.com
      1d10f3ae
    • Uros Bizjak's avatar
      x86/percpu: Rewrite arch_raw_cpu_ptr() to be easier for compilers to optimize · a048d3ab
      Uros Bizjak authored
      Implement arch_raw_cpu_ptr() as a load from this_cpu_off and then
      add the ptr value to the base. This way, the compiler can propagate
      addend to the following instruction and simplify address calculation.
      
      E.g.: address calcuation in amd_pmu_enable_virt() improves from:
      
          48 c7 c0 00 00 00 00	mov    $0x0,%rax
      	87b7: R_X86_64_32S	cpu_hw_events
      
          65 48 03 05 00 00 00	add    %gs:0x0(%rip),%rax
          00
      	87bf: R_X86_64_PC32	this_cpu_off-0x4
      
          48 c7 80 28 13 00 00	movq   $0x0,0x1328(%rax)
          00 00 00 00
      
      to:
      
          65 48 8b 05 00 00 00	mov    %gs:0x0(%rip),%rax
          00
      	8798: R_X86_64_PC32	this_cpu_off-0x4
          48 c7 80 00 00 00 00	movq   $0x0,0x0(%rax)
          00 00 00 00
      	87a6: R_X86_64_32S	cpu_hw_events+0x1328
      
      The compiler also eliminates additional redundant loads from
      this_cpu_off, reducing the number of percpu offset reads
      from 1668 to 1646 on a test build, a -1.3% reduction.
      Signed-off-by: default avatarUros Bizjak <ubizjak@gmail.com>
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      Cc: Andy Lutomirski <luto@kernel.org>
      Cc: Brian Gerst <brgerst@gmail.com>
      Cc: Denys Vlasenko <dvlasenk@redhat.com>
      Cc: H. Peter Anvin <hpa@zytor.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Josh Poimboeuf <jpoimboe@redhat.com>
      Cc: Uros Bizjak <ubizjak@gmail.com>
      Cc: Sean Christopherson <seanjc@google.com>
      Link: https://lore.kernel.org/r/20231015202523.189168-1-ubizjak@gmail.com
      a048d3ab
  3. 10 Oct, 2023 1 commit
  4. 05 Oct, 2023 3 commits
    • Uros Bizjak's avatar
      x86/percpu: Use C for percpu read/write accessors · ca425634
      Uros Bizjak authored
      The percpu code mostly uses inline assembly. Using segment qualifiers
      allows to use C code instead, which enables the compiler to perform
      various optimizations (e.g. propagation of memory arguments). Convert
      percpu read and write accessors to C code, so the memory argument can
      be propagated to the instruction that uses this argument.
      
      Some examples of propagations:
      
      a) into sign/zero extensions:
      
      the code improves from:
      
          65 8a 05 00 00 00 00    mov    %gs:0x0(%rip),%al
          0f b6 c0                movzbl %al,%eax
      
      to:
      
          65 0f b6 05 00 00 00    movzbl %gs:0x0(%rip),%eax
          00
      
      and in a similar way for:
      
          movzbl %gs:0x0(%rip),%edx
          movzwl %gs:0x0(%rip),%esi
          movzbl %gs:0x78(%rbx),%eax
      
          movslq %gs:0x0(%rip),%rdx
          movslq %gs:(%rdi),%rbx
      
      b) into compares:
      
      the code improves from:
      
          65 8b 05 00 00 00 00    mov    %gs:0x0(%rip),%eax
          a9 00 00 0f 00          test   $0xf0000,%eax
      
      to:
      
          65 f7 05 00 00 00 00    testl  $0xf0000,%gs:0x0(%rip)
          00 00 0f 00
      
      and in a similar way for:
      
          testl  $0xf0000,%gs:0x0(%rip)
          testb  $0x1,%gs:0x0(%rip)
          testl  $0xff00,%gs:0x0(%rip)
      
          cmpb   $0x0,%gs:0x0(%rip)
          cmp    %gs:0x0(%rip),%r14d
          cmpw   $0x8,%gs:0x0(%rip)
          cmpb   $0x0,%gs:(%rax)
      
      c) into other insns:
      
      the code improves from:
      
         1a355:	83 fa ff             	cmp    $0xffffffff,%edx
         1a358:	75 07                	jne    1a361 <...>
         1a35a:	65 8b 15 00 00 00 00 	mov    %gs:0x0(%rip),%edx
         1a361:
      
      to:
      
         1a35a:	83 fa ff             	cmp    $0xffffffff,%edx
         1a35d:	65 0f 44 15 00 00 00 	cmove  %gs:0x0(%rip),%edx
         1a364:	00
      
      The above propagations result in the following code size
      improvements for current mainline kernel (with the default config),
      compiled with:
      
         # gcc (GCC) 12.3.1 20230508 (Red Hat 12.3.1-1)
      
         text            data     bss    dec             filename
         25508862        4386540  808388 30703790        vmlinux-vanilla.o
         25500922        4386532  808388 30695842        vmlinux-new.o
      Co-developed-by: default avatarNadav Amit <namit@vmware.com>
      Signed-off-by: default avatarNadav Amit <namit@vmware.com>
      Signed-off-by: default avatarUros Bizjak <ubizjak@gmail.com>
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      Cc: Andy Lutomirski <luto@kernel.org>
      Cc: Brian Gerst <brgerst@gmail.com>
      Cc: Denys Vlasenko <dvlasenk@redhat.com>
      Cc: H. Peter Anvin <hpa@zytor.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Josh Poimboeuf <jpoimboe@redhat.com>
      Link: https://lore.kernel.org/r/20231004192404.31733-1-ubizjak@gmail.com
      ca425634
    • Nadav Amit's avatar
      x86/percpu: Use compiler segment prefix qualifier · 9a462b9e
      Nadav Amit authored
      Using a segment prefix qualifier is cleaner than using a segment prefix
      in the inline assembly, and provides the compiler with more information,
      telling it that __seg_gs:[addr] is different than [addr] when it
      analyzes data dependencies. It also enables various optimizations that
      will be implemented in the next patches.
      
      Use segment prefix qualifiers when they are supported. Unfortunately,
      gcc does not provide a way to remove segment qualifiers, which is needed
      to use typeof() to create local instances of the per-CPU variable. For
      this reason, do not use the segment qualifier for per-CPU variables, and
      do casting using the segment qualifier instead.
      
      Uros: Improve compiler support detection and update the patch
      to the current mainline.
      Signed-off-by: default avatarNadav Amit <namit@vmware.com>
      Signed-off-by: default avatarUros Bizjak <ubizjak@gmail.com>
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      Cc: Andy Lutomirski <luto@kernel.org>
      Cc: Brian Gerst <brgerst@gmail.com>
      Cc: Denys Vlasenko <dvlasenk@redhat.com>
      Cc: H. Peter Anvin <hpa@zytor.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Josh Poimboeuf <jpoimboe@redhat.com>
      Link: https://lore.kernel.org/r/20231004145137.86537-4-ubizjak@gmail.com
      9a462b9e
    • Uros Bizjak's avatar
      x86/percpu: Enable named address spaces with known compiler version · 1ca3683c
      Uros Bizjak authored
      Enable named address spaces with known compiler versions
      (GCC 12.1 and later) in order to avoid possible issues with named
      address spaces with older compilers. Set CC_HAS_NAMED_AS when the
      compiler satisfies version requirements and set USE_X86_SEG_SUPPORT
      to signal when segment qualifiers could be used.
      Signed-off-by: default avatarUros Bizjak <ubizjak@gmail.com>
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      Cc: Andy Lutomirski <luto@kernel.org>
      Cc: Brian Gerst <brgerst@gmail.com>
      Cc: Denys Vlasenko <dvlasenk@redhat.com>
      Cc: H. Peter Anvin <hpa@zytor.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Josh Poimboeuf <jpoimboe@redhat.com>
      Link: https://lore.kernel.org/r/20231004145137.86537-3-ubizjak@gmail.com
      1ca3683c
  5. 03 Oct, 2023 1 commit
    • Zhu Wang's avatar
      x86/lib: Address kernel-doc warnings · 8ae292c6
      Zhu Wang authored
      Fix all kernel-doc warnings in csum-wrappers_64.c:
      
        arch/x86/lib/csum-wrappers_64.c:25: warning: Excess function parameter 'isum' description in 'csum_and_copy_from_user'
        arch/x86/lib/csum-wrappers_64.c:25: warning: Excess function parameter 'errp' description in 'csum_and_copy_from_user'
        arch/x86/lib/csum-wrappers_64.c:49: warning: Excess function parameter 'isum' description in 'csum_and_copy_to_user'
        arch/x86/lib/csum-wrappers_64.c:49: warning: Excess function parameter 'errp' description in 'csum_and_copy_to_user'
        arch/x86/lib/csum-wrappers_64.c:71: warning: Excess function parameter 'sum' description in 'csum_partial_copy_nocheck'
      Signed-off-by: default avatarZhu Wang <wangzhu9@huawei.com>
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      Cc: linux-kernel@vger.kernel.org
      8ae292c6
  6. 27 Sep, 2023 2 commits
  7. 22 Sep, 2023 1 commit
    • Ingo Molnar's avatar
      x86/bitops: Remove unused __sw_hweight64() assembly implementation on x86-32 · ad424743
      Ingo Molnar authored
      Header cleanups in the fast-headers tree highlighted that we have an
      unused assembly implementation for __sw_hweight64():
      
          WARNING: modpost: EXPORT symbol "__sw_hweight64" [vmlinux] version ...
      
      __arch_hweight64() on x86-32 is defined in the
      arch/x86/include/asm/arch_hweight.h header as an inline, using
      __arch_hweight32():
      
        #ifdef CONFIG_X86_32
        static inline unsigned long __arch_hweight64(__u64 w)
        {
                return  __arch_hweight32((u32)w) +
                        __arch_hweight32((u32)(w >> 32));
        }
      
      *But* there's also a __sw_hweight64() assembly implementation:
      
        arch/x86/lib/hweight.S
      
        SYM_FUNC_START(__sw_hweight64)
        #ifdef CONFIG_X86_64
        ...
        #else /* CONFIG_X86_32 */
              /* We're getting an u64 arg in (%eax,%edx): unsigned long hweight64(__u64 w) */
              pushl   %ecx
      
              call    __sw_hweight32
              movl    %eax, %ecx                      # stash away result
              movl    %edx, %eax                      # second part of input
              call    __sw_hweight32
              addl    %ecx, %eax                      # result
      
              popl    %ecx
              ret
        #endif
      
      But this __sw_hweight64 assembly implementation is unused - and it's
      essentially doing the same thing that the inline wrapper does.
      
      Remove the assembly version and add a comment about it.
      Reported-by: default avatarNathan Chancellor <nathan@kernel.org>
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: linux-kernel@vger.kernel.org
      ad424743
  8. 21 Sep, 2023 1 commit
    • Uros Bizjak's avatar
      x86/percpu: Do not clobber %rsi in percpu_{try_,}cmpxchg{64,128}_op · 7c097ca5
      Uros Bizjak authored
      The fallback alternative uses %rsi register to manually load pointer
      to the percpu variable before the call to the emulation function.
      This is unoptimal, because the load is hidden from the compiler.
      
      Move the load of %rsi outside inline asm, so the compiler can
      reuse the value. The code in slub.o improves from:
      
          55ac:	49 8b 3c 24          	mov    (%r12),%rdi
          55b0:	48 8d 4a 40          	lea    0x40(%rdx),%rcx
          55b4:	49 8b 1c 07          	mov    (%r15,%rax,1),%rbx
          55b8:	4c 89 f8             	mov    %r15,%rax
          55bb:	48 8d 37             	lea    (%rdi),%rsi
          55be:	e8 00 00 00 00       	callq  55c3 <...>
      			55bf: R_X86_64_PLT32	this_cpu_cmpxchg16b_emu-0x4
          55c3:	75 a3                	jne    5568 <...>
          55c5:	...
      
       0000000000000000 <.altinstr_replacement>:
         5:	65 48 0f c7 0f       	cmpxchg16b %gs:(%rdi)
      
      to:
      
          55ac:	49 8b 34 24          	mov    (%r12),%rsi
          55b0:	48 8d 4a 40          	lea    0x40(%rdx),%rcx
          55b4:	49 8b 1c 07          	mov    (%r15,%rax,1),%rbx
          55b8:	4c 89 f8             	mov    %r15,%rax
          55bb:	e8 00 00 00 00       	callq  55c0 <...>
      			55bc: R_X86_64_PLT32	this_cpu_cmpxchg16b_emu-0x4
          55c0:	75 a6                	jne    5568 <...>
          55c2:	...
      
      Where the alternative replacement instruction now uses %rsi:
      
       0000000000000000 <.altinstr_replacement>:
         5:	65 48 0f c7 0e       	cmpxchg16b %gs:(%rsi)
      
      The instruction (effectively a reg-reg move) at 55bb: in the original
      assembly is removed. Also, both the CALL and replacement CMPXCHG16B
      are 5 bytes long, removing the need for NOPs in the asm code.
      Suggested-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: default avatarUros Bizjak <ubizjak@gmail.com>
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      Link: https://lore.kernel.org/r/20230918151452.62344-1-ubizjak@gmail.com
      7c097ca5
  9. 15 Sep, 2023 3 commits
  10. 06 Sep, 2023 1 commit
  11. 04 Sep, 2023 6 commits
    • Linus Torvalds's avatar
      Merge tag 'timers-core-2023-09-04-v2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 4accdb98
      Linus Torvalds authored
      Pull clocksource/clockevent driver updates from Thomas Gleixner:
      
       - Remove the OXNAS driver instead of adding a new one!
      
       - A set of boring fixes, cleanups and improvements
      
      * tag 'timers-core-2023-09-04-v2' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        clocksource: Explicitly include correct DT includes
        clocksource/drivers/sun5i: Convert to platform device driver
        clocksource/drivers/sun5i: Remove pointless struct
        clocksource/drivers/sun5i: Remove duplication of code and data
        clocksource/drivers/loongson1: Set variable ls1x_timer_lock storage-class-specifier to static
        clocksource/drivers/arm_arch_timer: Disable timer before programming CVAL
        dt-bindings: timer: oxsemi,rps-timer: remove obsolete bindings
        clocksource/drivers/timer-oxnas-rps: Remove obsolete timer driver
      4accdb98
    • Linus Torvalds's avatar
      Merge tag 'm68knommu-for-v6.6' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu · 7a1415ee
      Linus Torvalds authored
      Pull m68knommu updates from Greg Ungerer:
       "Two changes, one a trivial white space clean up, the other removes the
        unnecessary local pcibios_setup() code"
      
      * tag 'm68knommu-for-v6.6' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu:
        m68k: coldfire: dma_timer: ERROR: "foo __init bar" should be "foo __init bar"
        m68k/pci: Drop useless pcibios_setup()
      7a1415ee
    • Linus Torvalds's avatar
      Merge tag 'uml-for-linus-6.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/uml/linux · 68d76d4e
      Linus Torvalds authored
      Pull UML updates from Richard Weinberger:
      
       - Drop 32-bit checksum implementation and re-use it from arch/x86
      
       - String function cleanup
      
       - Fixes for -Wmissing-variable-declarations and -Wmissing-prototypes
         builds
      
      * tag 'uml-for-linus-6.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/uml/linux:
        um: virt-pci: fix missing declaration warning
        um: Refactor deprecated strncpy to memcpy
        um: fix 3 instances of -Wmissing-prototypes
        um: port_kern: fix -Wmissing-variable-declarations
        uml: audio: fix -Wmissing-variable-declarations
        um: vector: refactor deprecated strncpy
        um: use obj-y to descend into arch/um/*/
        um: Hard-code the result of 'uname -s'
        um: Use the x86 checksum implementation on 32-bit
        asm-generic: current: Don't include thread-info.h if building asm
        um: Remove unsued extern declaration ldt_host_info()
        um: Fix hostaudio build errors
        um: Remove strlcpy usage
      68d76d4e
    • Linus Torvalds's avatar
      Merge tag 'hyperv-next-signed-20230902' of... · 0b90c563
      Linus Torvalds authored
      Merge tag 'hyperv-next-signed-20230902' of git://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux
      
      Pull hyperv updates from Wei Liu:
      
       - Support for SEV-SNP guests on Hyper-V (Tianyu Lan)
      
       - Support for TDX guests on Hyper-V (Dexuan Cui)
      
       - Use SBRM API in Hyper-V balloon driver (Mitchell Levy)
      
       - Avoid dereferencing ACPI root object handle in VMBus driver (Maciej
         Szmigiero)
      
       - A few misecllaneous fixes (Jiapeng Chong, Nathan Chancellor, Saurabh
         Sengar)
      
      * tag 'hyperv-next-signed-20230902' of git://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux: (24 commits)
        x86/hyperv: Remove duplicate include
        x86/hyperv: Move the code in ivm.c around to avoid unnecessary ifdef's
        x86/hyperv: Remove hv_isolation_type_en_snp
        x86/hyperv: Use TDX GHCI to access some MSRs in a TDX VM with the paravisor
        Drivers: hv: vmbus: Bring the post_msg_page back for TDX VMs with the paravisor
        x86/hyperv: Introduce a global variable hyperv_paravisor_present
        Drivers: hv: vmbus: Support >64 VPs for a fully enlightened TDX/SNP VM
        x86/hyperv: Fix serial console interrupts for fully enlightened TDX guests
        Drivers: hv: vmbus: Support fully enlightened TDX guests
        x86/hyperv: Support hypercalls for fully enlightened TDX guests
        x86/hyperv: Add hv_isolation_type_tdx() to detect TDX guests
        x86/hyperv: Fix undefined reference to isolation_type_en_snp without CONFIG_HYPERV
        x86/hyperv: Add missing 'inline' to hv_snp_boot_ap() stub
        hv: hyperv.h: Replace one-element array with flexible-array member
        Drivers: hv: vmbus: Don't dereference ACPI root object handle
        x86/hyperv: Add hyperv-specific handling for VMMCALL under SEV-ES
        x86/hyperv: Add smp support for SEV-SNP guest
        clocksource: hyper-v: Mark hyperv tsc page unencrypted in sev-snp enlightened guest
        x86/hyperv: Use vmmcall to implement Hyper-V hypercall in sev-snp enlightened guest
        drivers: hv: Mark percpu hvcall input arg page unencrypted in SEV-SNP enlightened guest
        ...
      0b90c563
    • Linus Torvalds's avatar
      Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost · e4f1b820
      Linus Torvalds authored
      Pull virtio updates from Michael Tsirkin:
       "A small pull request this time around, mostly because the vduse
        network got postponed to next relase so we can be sure we got the
        security store right"
      
      * tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost:
        virtio_ring: fix avail_wrap_counter in virtqueue_add_packed
        virtio_vdpa: build affinity masks conditionally
        virtio_net: merge dma operations when filling mergeable buffers
        virtio_ring: introduce dma sync api for virtqueue
        virtio_ring: introduce dma map api for virtqueue
        virtio_ring: introduce virtqueue_reset()
        virtio_ring: separate the logic of reset/enable from virtqueue_resize
        virtio_ring: correct the expression of the description of virtqueue_resize()
        virtio_ring: skip unmap for premapped
        virtio_ring: introduce virtqueue_dma_dev()
        virtio_ring: support add premapped buf
        virtio_ring: introduce virtqueue_set_dma_premapped()
        virtio_ring: put mapping error check in vring_map_one_sg
        virtio_ring: check use_dma_api before unmap desc for indirect
        vdpa_sim: offer VHOST_BACKEND_F_ENABLE_AFTER_DRIVER_OK
        vdpa: add get_backend_features vdpa operation
        vdpa: accept VHOST_BACKEND_F_ENABLE_AFTER_DRIVER_OK backend feature
        vdpa: add VHOST_BACKEND_F_ENABLE_AFTER_DRIVER_OK flag
        vdpa/mlx5: Remove unused function declarations
      e4f1b820
    • Linus Torvalds's avatar
      Merge tag 'tomoyo-pr-20230903' of git://git.osdn.net/gitroot/tomoyo/tomoyo-test1 · 5c5e0e81
      Linus Torvalds authored
      Pull tomoyo updates from Tetsuo Handa:
       "Three cleanup patches, no behavior changes"
      
      * tag 'tomoyo-pr-20230903' of git://git.osdn.net/gitroot/tomoyo/tomoyo-test1:
        tomoyo: remove unused function declaration
        tomoyo: refactor deprecated strncpy
        tomoyo: add format attributes to functions
      5c5e0e81
  12. 03 Sep, 2023 18 commits