LoongArch KVM changes for v6.8 1. Optimization for memslot hugepage checking. 2. Cleanup and fix some HW/SW timer issues. 3. Add LSX/LASX (128bit/256bit SIMD) support.
Showing the changes to include/uapi (6 of 1319 files). Show all
Unified · Split
| @@ -219,6 +219,22 @@ · 218 unmodified lines | |||
| 219 | */ | 219 | */ |
| 220 | #define BTRFS_METADATA_ITEM_KEY 169 | 220 | #define BTRFS_METADATA_ITEM_KEY 169 |
| 221 | 221 | ||
| 222 | /* | ||
| 223 | * Special inline ref key which stores the id of the subvolume which originally | ||
| 224 | * created the extent. This subvolume owns the extent permanently from the | ||
| 225 | * perspective of simple quotas. Needed to know which subvolume to free quota | ||
| 226 | * usage from when the extent is deleted. | ||
| 227 | * | ||
| 228 | * Stored as an inline ref rather to avoid wasting space on a separate item on | ||
| 229 | * top of the existing extent item. However, unlike the other inline refs, | ||
| 230 | * there is one one owner ref per extent rather than one per extent. | ||
| 231 | * | ||
| 232 | * Because of this, it goes at the front of the list of inline refs, and thus | ||
| 233 | * must have a lower type value than any other inline ref type (to satisfy the | ||
| 234 | * disk format rule that inline refs have non-decreasing type). | ||
| 235 | */ | ||
| 236 | #define BTRFS_EXTENT_OWNER_REF_KEY 172 | ||
| 237 | |||
| 222 | #define BTRFS_TREE_BLOCK_REF_KEY 176 | 238 | #define BTRFS_TREE_BLOCK_REF_KEY 176 |
| 223 | 239 | ||
| 224 | #define BTRFS_EXTENT_DATA_REF_KEY 178 | 240 | #define BTRFS_EXTENT_DATA_REF_KEY 178 |
| @@ -233,14 +249,6 @@ · 8 unmodified lines | |||
| 233 | 249 | ||
| 234 | #define BTRFS_SHARED_DATA_REF_KEY 184 | 250 | #define BTRFS_SHARED_DATA_REF_KEY 184 |
| 235 | 251 | ||
| 236 | /* | ||
| 237 | * Special inline ref key which stores the id of the subvolume which originally | ||
| 238 | * created the extent. This subvolume owns the extent permanently from the | ||
| 239 | * perspective of simple quotas. Needed to know which subvolume to free quota | ||
| 240 | * usage from when the extent is deleted. | ||
| 241 | */ | ||
| 242 | #define BTRFS_EXTENT_OWNER_REF_KEY 188 | ||
| 243 | |||
| 244 | /* | 252 | /* |
| 245 | * block groups give us hints into the extent allocation trees. Which | 253 | * block groups give us hints into the extent allocation trees. Which |
| 246 | * blocks are free etc etc | 254 | * blocks are free etc etc |
| @@ -116,5 +116,8 @@ · 115 unmodified lines | |||
| 116 | #define AT_HANDLE_FID AT_REMOVEDIR /* file handle is needed to | 116 | #define AT_HANDLE_FID AT_REMOVEDIR /* file handle is needed to |
| 117 | compare object identity and may not | 117 | compare object identity and may not |
| 118 | be usable to open_by_handle_at(2) */ | 118 | be usable to open_by_handle_at(2) */ |
| 119 | #if defined(__KERNEL__) | ||
| 120 | #define AT_GETATTR_NOSEC 0x80000000 | ||
| 121 | #endif | ||
| 119 | 122 | ||
| 120 | #endif /* _UAPI_LINUX_FCNTL_H */ | 123 | #endif /* _UAPI_LINUX_FCNTL_H */ |
| @@ -209,7 +209,7 @@ · 208 unmodified lines | |||
| 209 | * - add FUSE_HAS_EXPIRE_ONLY | 209 | * - add FUSE_HAS_EXPIRE_ONLY |
| 210 | * | 210 | * |
| 211 | * 7.39 | 211 | * 7.39 |
| 212 | * - add FUSE_DIRECT_IO_RELAX | 212 | * - add FUSE_DIRECT_IO_ALLOW_MMAP |
| 213 | * - add FUSE_STATX and related structures | 213 | * - add FUSE_STATX and related structures |
| 214 | */ | 214 | */ |
| 215 | 215 | ||
| @@ -409,8 +409,7 @@ struct fuse_file_lock { · 193 unmodified lines | |||
| 409 | * FUSE_CREATE_SUPP_GROUP: add supplementary group info to create, mkdir, | 409 | * FUSE_CREATE_SUPP_GROUP: add supplementary group info to create, mkdir, |
| 410 | * symlink and mknod (single group that matches parent) | 410 | * symlink and mknod (single group that matches parent) |
| 411 | * FUSE_HAS_EXPIRE_ONLY: kernel supports expiry-only entry invalidation | 411 | * FUSE_HAS_EXPIRE_ONLY: kernel supports expiry-only entry invalidation |
| 412 | * FUSE_DIRECT_IO_RELAX: relax restrictions in FOPEN_DIRECT_IO mode, for now | 412 | * FUSE_DIRECT_IO_ALLOW_MMAP: allow shared mmap in FOPEN_DIRECT_IO mode. |
| 413 | * allow shared mmap | ||
| 414 | */ | 413 | */ |
| 415 | #define FUSE_ASYNC_READ (1 << 0) | 414 | #define FUSE_ASYNC_READ (1 << 0) |
| 416 | #define FUSE_POSIX_LOCKS (1 << 1) | 415 | #define FUSE_POSIX_LOCKS (1 << 1) |
| @@ -449,7 +448,10 @@ struct fuse_file_lock { · 32 unmodified lines | |||
| 449 | #define FUSE_HAS_INODE_DAX (1ULL << 33) | 448 | #define FUSE_HAS_INODE_DAX (1ULL << 33) |
| 450 | #define FUSE_CREATE_SUPP_GROUP (1ULL << 34) | 449 | #define FUSE_CREATE_SUPP_GROUP (1ULL << 34) |
| 451 | #define FUSE_HAS_EXPIRE_ONLY (1ULL << 35) | 450 | #define FUSE_HAS_EXPIRE_ONLY (1ULL << 35) |
| 452 | #define FUSE_DIRECT_IO_RELAX (1ULL << 36) | 451 | #define FUSE_DIRECT_IO_ALLOW_MMAP (1ULL << 36) |
| 452 | |||
| 453 | /* Obsolete alias for FUSE_DIRECT_IO_ALLOW_MMAP */ | ||
| 454 | #define FUSE_DIRECT_IO_RELAX FUSE_DIRECT_IO_ALLOW_MMAP | ||
| 453 | 455 | ||
| 454 | /** | 456 | /** |
| 455 | * CUSE INIT request/reply flags | 457 | * CUSE INIT request/reply flags |
| @@ -27,7 +27,7 @@ · 26 unmodified lines | |||
| 27 | union { \ | 27 | union { \ |
| 28 | struct { MEMBERS } ATTRS; \ | 28 | struct { MEMBERS } ATTRS; \ |
| 29 | struct TAG { MEMBERS } ATTRS NAME; \ | 29 | struct TAG { MEMBERS } ATTRS NAME; \ |
| 30 | } | 30 | } ATTRS |
| 31 | 31 | ||
| 32 | #ifdef __cplusplus | 32 | #ifdef __cplusplus |
| 33 | /* sizeof(struct{}) is 1 in C++, not 0, can't use C version of the macro. */ | 33 | /* sizeof(struct{}) is 1 in C++, not 0, can't use C version of the macro. */ |
| @@ -239,7 +239,7 @@ struct v4l2_subdev_routing { · 238 unmodified lines | |||
| 239 | * set (which is the default), the 'stream' fields will be forced to 0 by the | 239 | * set (which is the default), the 'stream' fields will be forced to 0 by the |
| 240 | * kernel. | 240 | * kernel. |
| 241 | */ | 241 | */ |
| 242 | #define V4L2_SUBDEV_CLIENT_CAP_STREAMS (1U << 0) | 242 | #define V4L2_SUBDEV_CLIENT_CAP_STREAMS (1ULL << 0) |
| 243 | 243 | ||
| 244 | /** | 244 | /** |
| 245 | * struct v4l2_subdev_client_capability - Capabilities of the client accessing | 245 | * struct v4l2_subdev_client_capability - Capabilities of the client accessing |
| @@ -166,6 +166,17 @@ struct virtio_pci_common_cfg { · 165 unmodified lines | |||
| 166 | __le32 queue_used_hi; /* read-write */ | 166 | __le32 queue_used_hi; /* read-write */ |
| 167 | }; | 167 | }; |
| 168 | 168 | ||
| 169 | /* | ||
| 170 | * Warning: do not use sizeof on this: use offsetofend for | ||
| 171 | * specific fields you need. | ||
| 172 | */ | ||
| 173 | struct virtio_pci_modern_common_cfg { | ||
| 174 | struct virtio_pci_common_cfg cfg; | ||
| 175 | |||
| 176 | __le16 queue_notify_data; /* read-write */ | ||
| 177 | __le16 queue_reset; /* read-write */ | ||
| 178 | }; | ||
| 179 | |||
| 169 | /* Fields in VIRTIO_PCI_CAP_PCI_CFG: */ | 180 | /* Fields in VIRTIO_PCI_CAP_PCI_CFG: */ |
| 170 | struct virtio_pci_cfg_cap { | 181 | struct virtio_pci_cfg_cap { |
| 171 | struct virtio_pci_cap cap; | 182 | struct virtio_pci_cap cap; |