libvirt/tests/qemucapabilitiesdata
Erik Skultety 77f51ab520 qemu: caps: Format SEV platform data into qemuCaps cache
Since we're not saving the platform-specific data into a cache, we're
not going to populate the structure, which in turn will cause a crash
upon calling virNodeGetSEVInfo because of a NULL pointer dereference.
Ultimately, we should start caching this data along with host-specific
capabilities like NUMA and SELinux stuff into a separate cache, but for
the time being, this is a semi-proper fix for a potential crash.

Backtrace (requires libvirtd restart to load qemu caps from cache):
    #0 qemuGetSEVInfoToParams
    #1 qemuNodeGetSEVInfo
    #2 virNodeGetSEVInfo
    #3 remoteDispatchNodeGetSevInfo
    #4 remoteDispatchNodeGetSevInfoHelper
    #5 virNetServerProgramDispatchCall
    #6 virNetServerProgramDispatch
    #7 virNetServerProcessMsg
    #8 virNetServerHandleJob
    #9 virThreadPoolWorker
    #10 virThreadHelper

https: //bugzilla.redhat.com/show_bug.cgi?id=1612009
Signed-off-by: Erik Skultety <eskultet@redhat.com>
Acked-by: Peter Krempa <pkrempa@redhat.com>
Tested-by: Brijesh Singh <brijesh.singh@amd.com>
2018-08-20 07:18:21 +02:00
..
caps_1.5.3.x86_64.replies tests: qemucapabilities: Test commands used to query capabilities 2018-06-12 10:27:50 +02:00
caps_1.5.3.x86_64.xml qemu: capabilities: Always assume QEMU_CAPS_BOOTINDEX 2018-08-09 17:00:54 +02:00
caps_1.6.0.x86_64.replies tests: qemucapabilities: Test commands used to query capabilities 2018-06-12 10:27:50 +02:00
caps_1.6.0.x86_64.xml qemu: capabilities: Always assume QEMU_CAPS_BOOTINDEX 2018-08-09 17:00:54 +02:00
caps_1.7.0.x86_64.replies tests: qemucapabilities: Test commands used to query capabilities 2018-06-12 10:27:50 +02:00
caps_1.7.0.x86_64.xml qemu: capabilities: Always assume QEMU_CAPS_BOOTINDEX 2018-08-09 17:00:54 +02:00
caps_2.1.1.x86_64.replies tests: qemucapabilities: Test commands used to query capabilities 2018-06-12 10:27:50 +02:00
caps_2.1.1.x86_64.xml qemu: capabilities: Always assume QEMU_CAPS_BOOTINDEX 2018-08-09 17:00:54 +02:00
caps_2.4.0.x86_64.replies tests: qemucapabilities: Test commands used to query capabilities 2018-06-12 10:27:50 +02:00
caps_2.4.0.x86_64.xml qemu: capabilities: Always assume QEMU_CAPS_BOOTINDEX 2018-08-09 17:00:54 +02:00
caps_2.5.0.x86_64.replies tests: qemucapabilities: Test commands used to query capabilities 2018-06-12 10:27:50 +02:00
caps_2.5.0.x86_64.xml qemu: capabilities: Always assume QEMU_CAPS_BOOTINDEX 2018-08-09 17:00:54 +02:00
caps_2.6.0.aarch64.replies tests: qemucapabilities: Test commands used to query capabilities 2018-06-12 10:27:50 +02:00
caps_2.6.0.aarch64.xml qemu: capabilities: Always assume QEMU_CAPS_BOOTINDEX 2018-08-09 17:00:54 +02:00
caps_2.6.0.ppc64.replies tests: qemucapabilities: Test commands used to query capabilities 2018-06-12 10:27:50 +02:00
caps_2.6.0.ppc64.xml qemu: capabilities: Always assume QEMU_CAPS_BOOTINDEX 2018-08-09 17:00:54 +02:00
caps_2.6.0.x86_64.replies tests: qemucapabilities: Test commands used to query capabilities 2018-06-12 10:27:50 +02:00
caps_2.6.0.x86_64.xml qemu: capabilities: Always assume QEMU_CAPS_BOOTINDEX 2018-08-09 17:00:54 +02:00
caps_2.7.0.s390x.replies tests: qemucapabilities: Test commands used to query capabilities 2018-06-12 10:27:50 +02:00
caps_2.7.0.s390x.xml qemu: capabilities: Always assume QEMU_CAPS_BOOTINDEX 2018-08-09 17:00:54 +02:00
caps_2.7.0.x86_64.replies tests: qemucapabilities: Test commands used to query capabilities 2018-06-12 10:27:50 +02:00
caps_2.7.0.x86_64.xml qemu: capabilities: Always assume QEMU_CAPS_BOOTINDEX 2018-08-09 17:00:54 +02:00
caps_2.8.0.s390x.replies tests: qemucapabilities: Test commands used to query capabilities 2018-06-12 10:27:50 +02:00
caps_2.8.0.s390x.xml qemu: capabilities: Always assume QEMU_CAPS_BOOTINDEX 2018-08-09 17:00:54 +02:00
caps_2.8.0.x86_64.replies tests: qemucapabilities: Test commands used to query capabilities 2018-06-12 10:27:50 +02:00
caps_2.8.0.x86_64.xml qemu: capabilities: Always assume QEMU_CAPS_BOOTINDEX 2018-08-09 17:00:54 +02:00
caps_2.9.0.ppc64.replies tests: qemucapabilities: Test commands used to query capabilities 2018-06-12 10:27:50 +02:00
caps_2.9.0.ppc64.xml qemu: capabilities: Always assume QEMU_CAPS_BOOTINDEX 2018-08-09 17:00:54 +02:00
caps_2.9.0.s390x.replies tests: qemucapabilities: Test commands used to query capabilities 2018-06-12 10:27:50 +02:00
caps_2.9.0.s390x.xml qemu: capabilities: Always assume QEMU_CAPS_BOOTINDEX 2018-08-09 17:00:54 +02:00
caps_2.9.0.x86_64.replies tests: qemucapabilities: Test commands used to query capabilities 2018-06-12 10:27:50 +02:00
caps_2.9.0.x86_64.xml qemu: capabilities: Always assume QEMU_CAPS_BOOTINDEX 2018-08-09 17:00:54 +02:00
caps_2.10.0.aarch64.replies tests: qemucapabilities: Test commands used to query capabilities 2018-06-12 10:27:50 +02:00
caps_2.10.0.aarch64.xml qemu: capabilities: Always assume QEMU_CAPS_BOOTINDEX 2018-08-09 17:00:54 +02:00
caps_2.10.0.ppc64.replies tests: qemucapabilities: Test commands used to query capabilities 2018-06-12 10:27:50 +02:00
caps_2.10.0.ppc64.xml qemu: capabilities: Always assume QEMU_CAPS_BOOTINDEX 2018-08-09 17:00:54 +02:00
caps_2.10.0.s390x.replies tests: qemucapabilities: Test commands used to query capabilities 2018-06-12 10:27:50 +02:00
caps_2.10.0.s390x.xml qemu: capabilities: Always assume QEMU_CAPS_BOOTINDEX 2018-08-09 17:00:54 +02:00
caps_2.10.0.x86_64.replies tests: qemucapabilities: Test commands used to query capabilities 2018-06-12 10:27:50 +02:00
caps_2.10.0.x86_64.xml qemu: capabilities: Always assume QEMU_CAPS_BOOTINDEX 2018-08-09 17:00:54 +02:00
caps_2.11.0.s390x.replies tests: qemucapabilities: Test commands used to query capabilities 2018-06-12 10:27:50 +02:00
caps_2.11.0.s390x.xml qemu: capabilities: Always assume QEMU_CAPS_BOOTINDEX 2018-08-09 17:00:54 +02:00
caps_2.11.0.x86_64.replies tests: Add capabilities data for QEMU 2.11 x86_64 2018-07-17 11:43:06 +02:00
caps_2.11.0.x86_64.xml qemu: capabilities: Always assume QEMU_CAPS_BOOTINDEX 2018-08-09 17:00:54 +02:00
caps_2.12.0.aarch64.replies qemu: Add capability for the HPT maxpagesize feature 2018-06-26 10:15:44 +02:00
caps_2.12.0.aarch64.xml qemu: capabilities: Always assume QEMU_CAPS_BOOTINDEX 2018-08-09 17:00:54 +02:00
caps_2.12.0.ppc64.replies qemu: Add capability for the HPT maxpagesize feature 2018-06-26 10:15:44 +02:00
caps_2.12.0.ppc64.xml qemu: capabilities: Always assume QEMU_CAPS_BOOTINDEX 2018-08-09 17:00:54 +02:00
caps_2.12.0.s390x.replies qemu: Add capability for the HPT maxpagesize feature 2018-06-26 10:15:44 +02:00
caps_2.12.0.s390x.xml qemu: capabilities: Always assume QEMU_CAPS_BOOTINDEX 2018-08-09 17:00:54 +02:00
caps_2.12.0.x86_64.replies qemu: Add capability for the HPT maxpagesize feature 2018-06-26 10:15:44 +02:00
caps_2.12.0.x86_64.xml qemu: caps: Format SEV platform data into qemuCaps cache 2018-08-20 07:18:21 +02:00
caps_3.0.0.ppc64.replies qemu: Add capability for the HPT maxpagesize feature 2018-06-26 10:15:44 +02:00
caps_3.0.0.ppc64.xml qemu: capabilities: Always assume QEMU_CAPS_BOOTINDEX 2018-08-09 17:00:54 +02:00
caps_3.0.0.x86_64.replies tests: qemucapabilities: Update capability data for qemu 3.0.0 2018-08-15 10:02:24 +02:00
caps_3.0.0.x86_64.xml qemu: Fix probing of AMD SEV support 2018-08-20 07:18:11 +02:00