Daniel Henrique Barboza
2ba0b7497c
virhostcpu.c: skip non x86 hosts in virHostCPUGetMicrocodeVersion()
...
Non-x86 archs does not have a 'microcode' version like x86. This is
covered already inside the function - just return 0 if no microcode
is found. Regardless of that, a read of /proc/cpuinfo is always made.
Each read will invoke the kernel to fill in the CPU details every time.
Now let's consider a non-x86 host, like a Power 9 server with 128 CPUs.
Each /proc/cpuinfo read will need to fetch data for each CPU and it
won't even matter because we know beforehand that PowerPC chips don't
have microcode information.
We can do better for non-x86 hosts by skipping this process entirely.
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2020-08-25 19:44:39 +02:00
..
2020-01-07 14:42:26 +00:00
2020-01-07 14:42:26 +00:00
2020-02-24 23:15:49 +01:00
2020-08-03 09:27:05 +02:00
2020-03-05 16:22:27 +01:00
2020-03-05 16:22:27 +01:00
2020-01-29 14:51:39 +00:00
2020-01-30 12:32:03 +01:00
2020-01-29 14:51:40 +00:00
2019-06-19 17:12:33 +02:00
2020-03-13 17:26:55 +01:00
2019-10-15 16:14:18 +02:00
2020-06-16 15:01:05 +02:00
2019-06-19 17:12:33 +02:00
2020-06-16 15:01:05 +02:00
2020-06-16 15:01:05 +02:00
2020-07-08 16:34:26 -04:00
2019-10-16 12:06:44 +02:00
2020-03-10 17:10:57 +01:00
2019-11-15 12:58:00 +01:00
2020-02-03 19:44:38 +01:00
2020-07-09 10:01:41 +02:00
2020-08-03 15:37:36 +02:00
2020-02-24 23:15:49 +01:00
2019-04-11 12:47:23 -04:00
2020-08-25 19:03:12 +02:00
2019-11-15 12:58:05 +01:00
2020-02-24 23:15:49 +01:00
2019-06-19 17:12:32 +02:00
2020-08-03 15:52:09 +02:00
2019-06-19 17:12:32 +02:00
2020-08-11 15:11:15 +02:00
2020-01-06 17:30:17 +01:00
2020-08-03 15:19:29 +02:00
2020-06-09 11:39:07 +02:00
2019-06-19 17:12:32 +02:00
2020-08-03 15:37:36 +02:00
2020-02-24 23:15:50 +01:00
2020-01-17 10:02:01 +00:00
2019-10-15 11:25:22 +02:00
2020-08-25 19:03:11 +02:00
2020-03-27 16:22:49 +01:00
2020-08-25 19:03:11 +02:00
2019-09-10 09:47:13 +02:00
2019-06-19 17:12:32 +02:00
2020-08-19 17:54:04 +02:00
2020-06-15 14:50:46 +02:00
2020-07-09 10:01:41 +02:00
2020-07-20 19:08:07 -04:00
2020-07-08 16:36:22 -04:00
2019-06-19 17:12:33 +02:00
2019-06-19 17:12:33 +02:00
2019-04-11 12:47:23 -04:00
2020-01-17 10:02:01 +00:00
2020-08-25 19:03:11 +02:00
2020-03-13 17:26:55 +01:00
2019-06-19 17:12:32 +02:00
2020-02-07 15:03:53 +00:00
2019-12-18 14:04:59 +00:00
2020-08-07 12:43:59 +01:00
2020-02-07 15:03:53 +00:00
2020-08-07 12:43:56 +01:00
2020-08-07 12:43:56 +01:00
2020-08-07 12:44:05 +01:00
2020-03-11 14:44:04 +00:00
2019-10-21 12:51:59 +02:00
2019-06-19 17:12:33 +02:00
2020-08-24 13:40:06 +02:00
2019-06-19 17:12:33 +02:00
2020-08-25 19:03:11 +02:00
2020-08-03 10:57:47 +02:00
2020-07-08 16:34:26 -04:00
2020-06-23 17:33:30 +01:00
2020-08-25 19:03:11 +02:00
2019-10-16 12:06:44 +02:00
2019-10-16 12:06:43 +02:00
2019-06-19 17:12:32 +02:00
2019-06-19 17:12:32 +02:00
2019-06-19 17:12:32 +02:00
2020-08-03 15:37:36 +02:00
2019-10-16 12:06:43 +02:00
2020-02-04 14:00:45 +00:00
2019-06-19 17:12:33 +02:00
2020-02-24 23:15:49 +01:00
2020-02-24 23:15:50 +01:00
2020-02-04 13:45:33 +01:00
2020-02-04 13:45:33 +01:00
2019-10-15 16:14:19 +02:00
2019-10-15 16:14:18 +02:00
2020-07-09 17:49:27 +02:00
2020-02-24 17:25:07 +00:00
2020-08-25 19:44:39 +02:00
2020-08-25 19:44:39 +02:00
2020-05-25 16:09:41 +02:00
2020-08-25 19:03:11 +02:00
2019-06-19 17:12:32 +02:00
2020-01-07 17:00:10 +01:00
2020-01-07 17:00:10 +01:00
2020-07-15 14:31:07 +02:00
2019-10-14 10:54:42 +01:00
2020-01-17 10:02:01 +00:00
2019-06-19 17:12:33 +02:00
2020-07-08 16:36:22 -04:00
2019-10-18 18:49:54 +01:00
2019-12-12 14:24:35 +01:00
2019-10-15 11:25:22 +02:00
2020-05-20 09:41:57 +02:00
2020-05-20 09:41:57 +02:00
2020-08-25 19:03:11 +02:00
2020-02-24 23:15:50 +01:00
2020-06-26 15:39:33 +01:00
2020-06-26 15:39:33 +01:00
2020-08-03 15:19:28 +02:00
2019-06-19 17:12:33 +02:00
2020-03-13 17:26:55 +01:00
2019-06-19 17:12:33 +02:00
2020-08-03 15:37:36 +02:00
2020-08-03 15:30:40 +02:00
2020-02-24 20:25:48 +01:00
2020-01-17 10:02:01 +00:00
2020-08-03 15:37:36 +02:00
2019-06-19 17:12:32 +02:00
2020-08-04 14:03:54 +02:00
2020-06-19 10:39:54 +02:00
2020-02-24 23:15:50 +01:00
2019-06-19 17:12:33 +02:00
2020-08-03 07:23:45 +02:00
2020-07-20 09:41:23 +00:00
2020-02-25 10:02:15 +00:00
2019-11-25 15:29:51 -05:00
2020-08-25 19:03:12 +02:00
2020-02-20 23:07:53 -05:00
2020-08-25 19:03:11 +02:00
2019-10-16 12:06:44 +02:00
2020-01-29 14:51:40 +00:00
2019-11-25 15:29:56 -05:00
2020-07-10 09:40:45 +02:00
2019-11-25 15:29:56 -05:00
2020-07-10 09:40:45 +02:00
2019-11-25 15:29:56 -05:00
2020-07-09 10:01:41 +02:00
2020-02-20 23:13:15 -05:00
2020-02-24 23:15:49 +01:00
2019-10-15 11:25:22 +02:00
2019-04-10 09:12:04 +02:00
2020-02-24 23:15:50 +01:00
2020-08-03 07:23:45 +02:00
2020-02-24 23:15:50 +01:00
2020-08-25 19:03:11 +02:00
2019-10-23 14:30:47 +02:00
2020-03-05 12:23:04 +00:00
2019-06-19 17:12:33 +02:00
2020-08-21 18:47:41 +02:00
2020-02-24 23:15:50 +01:00
2019-12-17 10:04:43 +01:00
2019-12-17 10:04:43 +01:00
2020-08-25 19:03:11 +02:00
2020-06-03 10:20:17 +01:00
2020-06-26 18:53:51 +02:00
2020-06-26 18:53:51 +02:00
2020-02-24 23:15:50 +01:00
2020-02-24 23:15:50 +01:00
2020-07-08 16:34:26 -04:00
2019-10-15 11:25:22 +02:00
2020-02-24 23:15:50 +01:00
2019-06-19 17:12:33 +02:00
2020-02-24 23:15:49 +01:00
2019-06-19 17:12:33 +02:00
2019-06-19 17:12:32 +02:00
2020-08-25 19:03:11 +02:00
2020-02-24 23:15:50 +01:00
2020-08-25 19:03:11 +02:00
2020-08-24 18:12:44 +02:00
2020-08-25 19:03:11 +02:00
2019-10-15 16:14:18 +02:00
2020-08-03 15:37:36 +02:00
2020-08-03 15:19:29 +02:00
2019-06-19 17:12:33 +02:00
2019-11-12 16:15:58 +01:00
2019-06-19 17:12:33 +02:00
2020-02-24 23:15:49 +01:00
2019-10-16 12:06:44 +02:00
2019-11-12 16:15:58 +01:00
2019-06-19 17:12:33 +02:00
2019-11-12 16:15:58 +01:00
2020-02-24 23:15:50 +01:00
2020-03-30 16:14:23 +02:00
2019-06-19 17:12:33 +02:00
2020-03-20 09:47:16 +01:00
2020-03-20 09:47:16 +01:00
2020-01-29 14:51:39 +00:00
2020-02-07 15:03:54 +00:00
2020-07-08 16:35:48 -04:00
2020-08-03 15:19:29 +02:00
2020-08-25 19:03:12 +02:00
2020-02-24 23:15:50 +01:00
2020-08-25 19:03:12 +02:00
2020-07-21 09:52:46 +02:00
2020-08-03 09:27:00 +02:00
2019-06-19 17:12:31 +02:00
2020-08-03 15:37:36 +02:00
2020-08-03 15:37:36 +02:00
2020-07-09 10:01:41 +02:00
2020-06-10 14:00:38 +02:00
2020-06-10 14:00:38 +02:00
2020-07-09 10:01:41 +02:00
2019-10-16 12:06:44 +02:00
2019-08-14 16:22:13 +02:00
2020-03-06 16:47:20 +01:00
2020-03-05 12:23:02 +00:00
2019-02-03 17:46:29 -05:00
2019-06-19 17:12:31 +02:00
2020-03-05 12:23:04 +00:00
2020-03-05 12:23:04 +00:00
2020-05-05 13:08:57 +02:00
2019-10-15 11:25:22 +02:00
2020-07-09 10:01:41 +02:00
2019-10-15 16:14:18 +02:00
2019-10-21 12:51:59 +02:00
2020-02-24 23:15:49 +01:00
2020-02-24 23:15:50 +01:00
2020-08-03 15:37:36 +02:00
2020-08-03 15:30:40 +02:00
2020-02-24 23:15:49 +01:00
2019-10-16 12:06:44 +02:00
2020-08-25 19:03:11 +02:00
2020-06-16 09:43:34 +02:00
2020-02-24 20:25:48 +01:00
2019-10-15 16:14:18 +02:00
2019-11-12 16:15:58 +01:00
2019-06-19 17:12:33 +02:00
2020-01-17 13:16:58 +00:00
2019-06-19 17:12:33 +02:00
2020-01-29 14:51:40 +00:00
2020-08-05 00:04:48 -04:00
2020-08-25 19:03:12 +02:00