mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
qemu: test CAPS_HDA_MICRO
This commit is contained in:
parent
9c484e3dc5
commit
0aaebd7abc
@ -162,6 +162,9 @@ VIR_ENUM_IMPL(qemuCaps, QEMU_CAPS_LAST,
|
||||
"scsi-cd",
|
||||
"ide-cd",
|
||||
"no-user-config",
|
||||
|
||||
"hda-micro", /* 95 */
|
||||
|
||||
);
|
||||
|
||||
struct qemu_feature_flags {
|
||||
@ -1397,6 +1400,8 @@ qemuCapsParseDeviceStr(const char *str, virBitmapPtr flags)
|
||||
/* Which devices exist. */
|
||||
if (strstr(str, "name \"hda-duplex\""))
|
||||
qemuCapsSet(flags, QEMU_CAPS_HDA_DUPLEX);
|
||||
if (strstr(str, "name \"hda-micro\""))
|
||||
qemuCapsSet(flags, QEMU_CAPS_HDA_MICRO);
|
||||
if (strstr(str, "name \"ccid-card-emulated\""))
|
||||
qemuCapsSet(flags, QEMU_CAPS_CCID_EMULATED);
|
||||
if (strstr(str, "name \"ccid-card-passthru\""))
|
||||
|
@ -130,6 +130,7 @@ enum qemuCapsFlags {
|
||||
QEMU_CAPS_SCSI_CD = 92, /* -device scsi-cd */
|
||||
QEMU_CAPS_IDE_CD = 93, /* -device ide-cd */
|
||||
QEMU_CAPS_NO_USER_CONFIG = 94, /* -no-user-config */
|
||||
QEMU_CAPS_HDA_MICRO = 95, /* -device hda-micro */
|
||||
|
||||
QEMU_CAPS_LAST, /* this must always be the last item */
|
||||
};
|
||||
|
@ -752,7 +752,8 @@ mymain(void)
|
||||
QEMU_CAPS_SCSI_BLOCK,
|
||||
QEMU_CAPS_SCSI_CD,
|
||||
QEMU_CAPS_IDE_CD,
|
||||
QEMU_CAPS_NO_USER_CONFIG);
|
||||
QEMU_CAPS_NO_USER_CONFIG,
|
||||
QEMU_CAPS_HDA_MICRO);
|
||||
|
||||
return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user