diff options
author | Kunwu Chan <[email protected]> | 2024-01-16 18:00:25 +0800 |
---|---|---|
committer | Sean Christopherson <[email protected]> | 2024-01-31 15:34:26 -0800 |
commit | 0dbd054699661dfffbc1c148664f8d03fd132569 (patch) | |
tree | 847000d311892378caf9ea00630891007d01da3a /scripts/rustdoc_test_builder.rs | |
parent | 41bccc98fb7931d63d03f326a746ac4d429c1dd3 (diff) |
KVM: x86/mmu: Use KMEM_CACHE instead of kmem_cache_create()
Use the new KMEM_CACHE() macro instead of direct kmem_cache_create
to simplify the creation of SLAB caches.
Note, KMEM_CACHE() uses the required alignment of the struct, '8' as the
alignment, whereas KVM's existing code passes '0'. In the end, the two
values yield the same result as x86's minimum slab alignment is also '8'
(which is not at all coincidental).
Signed-off-by: Kunwu Chan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[sean: call out alignment behavior]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'scripts/rustdoc_test_builder.rs')
0 files changed, 0 insertions, 0 deletions