aboutsummaryrefslogtreecommitdiff
path: root/linux-headers/asm-arm64/sve_context.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2024-04-23 11:46:47 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2024-04-23 17:35:25 +0200
commitab0c7fb22b56523f24d6e127cd4d10ecff67bf85 (patch)
tree2b54fcbdc5b5b5457cbd764b29ad924d34437992 /linux-headers/asm-arm64/sve_context.h
parentb40b8eb609d3549ac14aab43849b20f5cba951c9 (diff)
downloadqemu-ab0c7fb22b56523f24d6e127cd4d10ecff67bf85.zip
qemu-ab0c7fb22b56523f24d6e127cd4d10ecff67bf85.tar.gz
qemu-ab0c7fb22b56523f24d6e127cd4d10ecff67bf85.tar.bz2
linux-headers: update to current kvm/next
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'linux-headers/asm-arm64/sve_context.h')
-rw-r--r--linux-headers/asm-arm64/sve_context.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/linux-headers/asm-arm64/sve_context.h b/linux-headers/asm-arm64/sve_context.h
index 1d0e3e1..d1b1ec8 100644
--- a/linux-headers/asm-arm64/sve_context.h
+++ b/linux-headers/asm-arm64/sve_context.h
@@ -13,6 +13,17 @@
#define __SVE_VQ_BYTES 16 /* number of bytes per quadword */
+/*
+ * Yes, __SVE_VQ_MAX is 512 QUADWORDS.
+ *
+ * To help ensure forward portability, this is much larger than the
+ * current maximum value defined by the SVE architecture. While arrays
+ * or static allocations can be sized based on this value, watch out!
+ * It will waste a surprisingly large amount of memory.
+ *
+ * Dynamic sizing based on the actual runtime vector length is likely to
+ * be preferable for most purposes.
+ */
#define __SVE_VQ_MIN 1
#define __SVE_VQ_MAX 512