]> git.ipfire.org Git - thirdparty/libvirt.git/commit
hyperv: introduce hypervWmiClassInfo struct.
authorDawid Zamirski <dzamirski@datto.com>
Tue, 4 Apr 2017 22:26:06 +0000 (18:26 -0400)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Sat, 8 Apr 2017 12:14:18 +0000 (14:14 +0200)
commita5689ad2dc5e139da5696cdd6c1c558f7772cf01
treeb139f5d3ac216a664d38c5dc83c32caef9662f68
parenta993f1b404f3e6de0dd31010df30f475b6c61323
hyperv: introduce hypervWmiClassInfo struct.

This struct is to be used to carry all the information necessary to
issue wsman requests for given WMI class. Those will be defined by the
generator code (as lists) so that they are handy for the driver code to
"extract" needed info depending on which hyper-v we're connected to.
For example:

hypervWmiClassInfoListPtr Msvm_ComputerSystem_WmiInfo = {
    .count = 2
    {
        {
            .name = "Msvm_ComputerSystem",
            .version = "v1",
            .rootUri = "http://asdf.com",
            ...
        },
        {
            .name = "Msvm_ComputerSystem",
            .version = "v2",
            .rootUri = "http://asdf.com/v2",
            ...
        },
    }
};

Then the driver code will grab either "v1" or "v2" to pass info wsman
API, depending on hypervPrivate->wmiVersion value.
src/hyperv/hyperv_wmi_classes.h