diff options
author | Alexandru Elisei <alexandru.elisei@arm.com> | 2022-06-16 14:48:20 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2022-07-01 16:08:06 +0100 |
commit | abe3f28a9c0700837aca75887f0cd65c6371e2e4 (patch) | |
tree | 606513ebdeecc3f6f13f739a7403a1cf5d34b205 /include | |
parent | 28b96259fbdf602178d209fe93a0eddd3eec07d8 (diff) | |
download | kvmtool-abe3f28a9c0700837aca75887f0cd65c6371e2e4.tar.gz |
builtin-run: Add arch hook to validate VM configuration
Architectures are free to set their own command line options. Add an
architecture specific hook to validate these options.
For now, the hook does nothing, but it will be used in later patches.
Signed-off-by: Alexandru Elisei <alexandru.elisei@arm.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-and-Tested-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20220616134828.129006-5-alexandru.elisei@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/kvm/kvm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/kvm/kvm.h b/include/kvm/kvm.h index 7b14b33b..9f7b2fb2 100644 --- a/include/kvm/kvm.h +++ b/include/kvm/kvm.h @@ -187,6 +187,7 @@ int kvm__get_sock_by_instance(const char *name); int kvm__enumerate_instances(int (*callback)(const char *name, int pid)); void kvm__remove_socket(const char *name); +void kvm__arch_validate_cfg(struct kvm *kvm); void kvm__arch_set_cmdline(char *cmdline, bool video); void kvm__arch_init(struct kvm *kvm, const char *hugetlbfs_path, u64 ram_size); void kvm__arch_delete_ram(struct kvm *kvm); |