summaryrefslogtreecommitdiff
path: root/src/test/test-tables.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2022-04-04 10:29:40 +0200
committerLennart Poettering <lennart@poettering.net>2022-04-04 11:28:56 +0200
commit0f534758d1d652824fb554e90bc2075218b9c884 (patch)
tree1cf981567cac27ccf6e0cd8438a1bbeeaa2adc72 /src/test/test-tables.c
parentfbe043001581df609eae40e0d2f2319d52b5237a (diff)
downloadsystemd-0f534758d1d652824fb554e90bc2075218b9c884.tar.gz
virt: rework kvm with hyperv enlightenment checks a bit
Let's avoid extending the virtualization with an "alias" entry that has the same string assigned as another. The only reason this was done was to make the patch small that added a second CPUID vendor string for kvm to the vm_table[] array. Let's instead rework the array to use struct elements that match up strings with ids. Given the array was previously mostly sparse this should be a general improvement. Fixes: #22950 Follow-up for: #22945
Diffstat (limited to 'src/test/test-tables.c')
-rw-r--r--src/test/test-tables.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test-tables.c b/src/test/test-tables.c
index 62b0ba9411..3e5df04590 100644
--- a/src/test/test-tables.c
+++ b/src/test/test-tables.c
@@ -121,6 +121,7 @@ int main(int argc, char **argv) {
test_table(unit_file_state, UNIT_FILE_STATE);
test_table(unit_load_state, UNIT_LOAD_STATE);
test_table(unit_type, UNIT_TYPE);
+ test_table(virtualization, VIRTUALIZATION);
test_table_sparse(object_compressed, OBJECT_COMPRESSED);