Matt Coleman
c0939b4e56
hyperv: implement connectGetVersion
...
Hyper-V version numbers are not compatible with the encoding in
virParseVersionString():
https://gitlab.com/libvirt/libvirt/-/blob/master/src/util/virutil.c#L246
For example, the Windows Server 2016 Hyper-V version is 10.0.14393: its
micro is over 14 times larger than the encoding allows.
This commit repacks the Hyper-V version number in order to preserve all
of the digits. The major and minor are concatenated (with minor zero-
padded to two digits) to form the repacked major value. This works
because Microsoft's major and minor versions numbers are unlikely to
exceed 99. The repacked minor value is derived from the digits in the
thousands, ten-thousands, and hundred-thousands places of Hyper-V's
micro. The repacked micro is derived from the digits in the ones, tens,
and hundreds places of Hyper-V's micro.
Co-authored-by: Sri Ramanujam <sramanujam@datto.com>
Signed-off-by: Matt Coleman <matt@datto.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2020-10-09 09:27:20 +02:00
..
2020-08-03 09:27:06 +02:00
2020-09-25 16:00:06 +02:00
2020-08-03 09:27:06 +02:00
2020-09-01 21:58:45 +02:00
2020-08-03 09:27:06 +02:00
2020-10-05 10:28:37 +01:00
2020-10-05 10:28:37 +01:00
2020-10-07 11:26:27 +02:00
2020-10-08 10:15:31 +02:00
2017-10-16 10:22:34 +01:00
2020-09-01 21:58:46 +02:00
2020-09-01 21:58:46 +02:00
2020-09-23 11:30:05 +02:00
2017-08-02 17:00:11 +01:00
2017-08-02 17:00:11 +01:00
2020-08-17 08:42:47 +02:00
2020-09-01 21:58:46 +02:00
2017-08-02 17:00:11 +01:00
2020-09-01 21:58:46 +02:00
2018-04-09 11:38:47 -06:00
2020-07-10 16:07:02 +02:00
2020-01-17 16:44:31 +01:00
2020-10-05 10:28:37 +01:00
2020-09-01 21:58:46 +02:00
2020-09-01 21:58:46 +02:00
2017-08-02 17:00:11 +01:00
2020-09-01 21:58:46 +02:00
2019-11-15 15:45:20 +01:00
2020-07-03 11:00:51 +02:00
2020-09-15 15:20:23 +02:00
2020-08-03 09:27:09 +02:00
2020-09-10 09:13:52 +02:00
2020-09-01 21:58:46 +02:00
2020-09-10 09:13:52 +02:00
2020-09-01 21:58:46 +02:00
2020-10-05 10:28:37 +01:00
2020-06-03 13:38:33 +02:00
2020-04-08 09:32:35 +02:00
2018-03-21 14:48:01 +00:00
2020-09-01 21:58:46 +02:00
2020-09-01 21:58:46 +02:00
2020-01-27 11:04:29 +00:00
2020-10-08 15:52:57 +04:00
2020-10-05 10:28:37 +01:00
2020-10-09 09:27:20 +02:00
2020-09-01 21:58:46 +02:00
2020-09-17 18:19:26 +02:00
2020-09-01 21:58:46 +02:00
2020-06-26 15:38:34 +01:00
2017-08-02 17:00:11 +01:00
2020-01-27 17:36:05 +01:00
2017-08-02 17:00:11 +01:00
2020-09-01 21:58:46 +02:00
2017-08-02 17:00:11 +01:00
2020-09-01 21:58:46 +02:00
2020-10-05 10:28:37 +01:00
2018-05-03 12:40:37 +01:00
2017-08-02 17:00:11 +01:00
2017-08-02 17:00:11 +01:00
2017-08-02 17:00:11 +01:00
2020-09-01 21:58:46 +02:00
2020-10-05 10:28:37 +01:00
2020-07-08 08:40:30 +02:00
2020-01-16 15:11:42 +00:00
2020-07-07 12:58:19 +02:00
2020-10-05 10:07:29 -04:00
2020-10-05 10:28:37 +01:00
2020-10-05 10:28:37 +01:00
2020-02-26 11:48:23 -05:00
2020-10-05 10:28:37 +01:00
2018-12-17 17:52:46 +01:00
2020-01-28 18:10:36 +01:00
2019-07-29 08:22:29 -05:00
2020-10-05 10:28:37 +01:00
2020-10-05 10:28:37 +01:00
2018-06-26 14:02:43 -04:00
2020-08-03 18:41:11 +02:00
2020-10-02 14:10:44 +02:00
2017-08-02 17:00:11 +01:00
2019-01-25 14:04:20 +01:00
2020-10-02 14:10:40 +02:00
2020-10-05 10:28:37 +01:00
2020-09-01 21:58:46 +02:00
2017-08-02 17:00:11 +01:00
2020-09-01 21:58:46 +02:00
2020-08-27 16:28:02 +02:00
2020-07-10 16:07:02 +02:00
2020-07-10 16:07:02 +02:00
2020-07-07 14:07:33 +02:00
2020-07-07 14:07:33 +02:00
2020-07-10 16:07:02 +02:00
2020-07-10 16:07:02 +02:00
2020-08-03 18:41:11 +02:00
2020-09-01 21:58:46 +02:00
2017-08-07 14:44:40 +01:00
2017-08-02 15:00:28 -04:00
2020-10-02 14:10:44 +02:00
2020-07-10 16:07:02 +02:00
2020-07-10 16:07:02 +02:00
2020-07-10 16:07:02 +02:00
2020-07-10 16:07:02 +02:00
2020-07-10 16:07:02 +02:00
2020-09-05 07:55:45 +02:00
2019-04-11 15:20:17 +01:00
2017-08-02 17:00:11 +01:00
2020-08-04 17:06:33 +01:00
2020-06-11 12:03:41 +02:00
2020-07-10 16:07:02 +02:00
2020-09-01 21:58:46 +02:00
2020-09-01 21:58:46 +02:00
2020-04-24 09:55:29 +02:00
2020-09-01 21:58:46 +02:00
2020-09-01 21:58:46 +02:00
2020-07-14 18:04:13 +02:00
2020-04-08 09:32:32 +02:00
2020-04-20 14:06:25 +01:00
2020-09-01 21:58:46 +02:00
2020-10-05 10:28:37 +01:00
2020-08-04 17:06:33 +01:00
2020-09-01 21:58:46 +02:00
2020-10-05 10:28:37 +01:00
2020-07-10 16:07:02 +02:00
2020-05-11 13:55:27 +02:00
2020-10-09 09:12:39 +02:00
2020-08-04 17:06:33 +01:00
2018-05-03 12:40:37 +01:00
2020-06-03 13:38:33 +02:00
2020-09-01 21:58:46 +02:00
2020-09-01 21:58:46 +02:00
2020-09-01 21:58:46 +02:00
2020-10-05 10:28:37 +01:00
2020-09-01 21:58:46 +02:00
2020-09-01 21:58:46 +02:00