Michal Privoznik
31daccf5a5
virNumaGetHugePageInfo: Return page_avail and page_free as ULL
...
https://bugzilla.redhat.com/show_bug.cgi?id=1569678
On some large systems (with ~400GB of RAM) it is possible for
unsigned int to overflow in which case we report invalid number
of 4K pages pool size. Switch to unsigned long long.
We hit overflow in virNumaGetPages when doing:
huge_page_sum += 1024 * page_size * page_avail;
because although 'huge_page_sum' is an unsigned long long, the
page_size and page_avail are both unsigned int, so the promotion
to unsigned long long doesn't happen until the sum has been
calculated, by which time we've already overflowed.
Turning page_avail into a unsigned long long is not strictly
needed until we need ability to represent more than 2^32
4k pages, which equates to 16 TB of RAM. That's not
outside the realm of possibility, so makes sense that we
change it to unsigned long long to avoid future problems.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
2018-04-24 11:02:28 +02:00
..
2017-02-11 06:51:28 +04:00
2017-08-06 09:24:26 +04:00
2017-08-06 09:24:26 +04:00
2017-04-11 14:06:47 +02:00
2017-11-20 13:22:48 +01:00
2018-04-18 11:39:53 +02:00
2018-03-23 20:27:52 +01:00
2017-04-11 14:06:47 +02:00
2017-11-07 14:58:04 +01:00
2018-03-13 13:54:06 +01:00
2017-01-18 06:31:54 -05:00
2018-02-02 14:51:32 +01:00
2018-02-02 14:51:32 +01:00
2018-04-17 21:15:27 -06:00
2016-05-24 15:21:05 -04:00
2017-07-11 10:41:24 +02:00
2017-03-21 11:25:59 -04:00
2017-03-21 11:25:59 -04:00
2017-03-21 11:25:59 -04:00
2017-09-18 08:32:24 -04:00
2016-12-06 13:34:00 +01:00
2017-12-07 09:21:04 +00:00
2017-12-07 09:21:04 +00:00
2017-12-05 14:52:49 +01:00
2018-01-31 11:32:04 -05:00
2018-04-19 11:20:34 +02:00
2016-05-16 10:30:38 -04:00
2017-11-30 16:49:05 +01:00
2017-10-27 14:43:21 +02:00
2018-03-19 21:22:43 +01:00
2017-07-15 14:50:42 +02:00
2018-04-17 10:46:23 +02:00
2018-04-17 12:45:26 -04:00
2018-04-19 17:57:54 +02:00
2018-04-23 15:20:54 +02:00
2018-04-03 15:48:38 +02:00
2018-04-23 15:20:54 +02:00
2016-09-09 08:20:05 -04:00
2018-04-20 10:41:07 -06:00
2017-03-29 10:36:55 +02:00
2017-03-29 10:36:55 +02:00
2018-04-11 10:15:58 +02:00
2017-03-08 13:22:33 -05:00
2017-03-08 13:22:33 -05:00
2018-03-14 17:43:40 +01:00
2018-01-25 17:16:08 +01:00
2017-07-13 09:37:52 +02:00
2017-10-16 10:22:34 +01:00
2017-07-26 15:33:45 +02:00
2018-01-11 14:23:09 +01:00
2017-07-11 14:24:17 +02:00
2017-08-03 09:54:36 +02:00
2018-02-02 13:00:48 +00:00
2018-01-25 17:16:08 +01:00
2017-04-04 16:36:15 +02:00
2018-04-20 09:09:29 +02:00
2018-04-17 21:15:27 -06:00
2018-04-20 10:41:07 -06:00
2018-04-09 11:33:30 -06:00
2018-04-20 09:11:01 +02:00
2017-02-14 10:54:29 +01:00
2018-02-19 13:15:00 -05:00
2017-11-03 13:24:12 +01:00
2018-02-22 13:52:45 +01:00
2018-02-22 13:52:45 +01:00
2018-03-13 15:32:31 +01:00
2017-09-19 16:04:53 +02:00
2018-04-19 14:24:12 -04:00
2017-11-20 13:22:48 +01:00
2018-04-18 11:39:53 +02:00
2016-07-01 12:20:54 +02:00
2018-03-23 20:27:52 +01:00
2017-11-03 13:24:12 +01:00
2018-03-13 13:54:06 +01:00
2017-11-03 13:24:12 +01:00
2017-04-27 14:13:19 +02:00
2017-04-11 13:23:01 +02:00
2017-04-28 14:17:10 +02:00
2016-05-14 09:46:44 +02:00
2018-03-13 13:54:11 +01:00
2017-11-03 13:24:12 +01:00
2016-04-23 15:41:40 -04:00
2016-04-23 15:41:40 -04:00
2018-04-17 21:15:27 -06:00
2017-11-03 13:24:12 +01:00
2018-03-13 13:54:11 +01:00
2018-04-18 10:02:14 +02:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2016-12-06 13:33:18 +01:00
2016-12-06 13:34:00 +01:00
2017-11-03 13:24:12 +01:00
2017-04-19 10:51:51 +01:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-09-20 11:52:56 +02:00
2017-09-19 16:04:53 +02:00
2017-11-03 13:24:12 +01:00
2017-12-05 14:52:49 +01:00
2017-12-05 14:52:49 +01:00
2018-04-03 13:34:33 +02:00
2018-04-10 15:16:44 +02:00
2017-11-03 13:24:12 +01:00
2018-03-01 19:04:19 +01:00
2018-04-10 15:16:23 +02:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-07-26 15:35:24 +02:00
2018-03-23 14:52:07 +01:00
2018-02-02 14:52:23 -05:00
2018-04-17 10:46:23 +02:00
2018-04-17 12:45:26 -04:00
2017-11-03 13:24:12 +01:00
2018-04-17 12:45:26 -04:00
2018-04-17 12:45:26 -04:00
2018-03-23 14:52:07 +01:00
2018-04-17 14:02:09 +02:00
2018-04-23 15:20:54 +02:00
2018-04-23 15:20:54 +02:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-11-03 13:24:12 +01:00
2016-05-14 09:22:12 +02:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2018-04-09 11:34:35 -06:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2018-01-31 18:34:48 +00:00
2017-11-03 13:24:12 +01:00
2018-03-12 20:04:08 +04:00
2016-05-02 07:18:25 +02:00
2017-05-15 12:34:19 +02:00
2018-04-19 17:57:52 +02:00
2018-04-19 17:57:52 +02:00
2017-07-26 15:35:02 +02:00
2018-04-19 17:57:52 +02:00
2018-04-19 11:20:34 +02:00
2018-03-23 14:52:07 +01:00
2018-03-23 14:52:07 +01:00
2018-04-09 11:37:15 -06:00
2018-04-09 11:37:15 -06:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-04-04 17:30:03 +02:00
2017-04-04 17:30:03 +02:00
2017-11-03 13:24:12 +01:00
2018-02-05 16:08:57 +01:00
2017-11-03 13:24:12 +01:00
2017-11-22 11:27:40 +01:00
2018-04-19 17:57:52 +02:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-11-09 08:04:26 -07:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-08-03 09:54:36 +02:00
2018-04-09 11:37:15 -06:00
2017-04-04 17:30:03 +02:00
2017-07-26 15:33:45 +02:00
2018-04-18 10:04:55 +02:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-05-09 13:12:40 +02:00
2017-11-03 13:24:12 +01:00
2018-04-11 11:18:37 +02:00
2017-04-27 14:13:19 +02:00
2018-01-10 17:34:37 -05:00
2017-11-24 11:47:26 -05:00
2017-04-04 17:30:03 +02:00
2017-11-03 13:24:12 +01:00
2018-04-04 15:08:32 +02:00
2018-03-12 16:30:49 +01:00
2017-04-04 17:30:03 +02:00
2017-11-03 13:24:12 +01:00
2017-04-04 17:30:03 +02:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2018-04-18 09:59:52 +02:00
2016-05-02 22:25:52 +02:00
2018-02-02 13:00:48 +00:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-04-04 17:30:03 +02:00
2018-04-19 15:03:57 -04:00
2017-08-30 10:50:17 +02:00
2018-03-06 10:09:44 +00:00
2017-11-03 13:24:12 +01:00
2016-06-08 13:48:45 +01:00
2018-03-06 10:09:44 +00:00
2018-04-24 11:02:28 +02:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2017-04-04 17:30:03 +02:00
2018-02-22 13:52:45 +01:00
2017-02-19 06:45:09 -05:00
2018-01-25 17:16:08 +01:00
2017-04-04 17:30:03 +02:00
2018-04-09 11:37:15 -06:00
2017-11-03 13:24:12 +01:00
2016-04-23 15:41:40 -04:00
2017-04-11 14:06:47 +02:00
2016-04-23 15:41:40 -04:00
2017-04-13 10:14:42 +02:00
2016-04-23 15:41:40 -04:00
2016-04-23 15:41:40 -04:00
2016-04-23 15:41:40 -04:00
2016-09-14 13:18:07 +02:00
2016-04-23 15:41:40 -04:00
2016-08-24 17:43:29 +02:00
2016-05-02 07:18:25 +02:00
2016-04-23 15:41:40 -04:00
2018-02-13 10:27:32 -05:00
2018-02-14 16:04:46 +01:00
2017-11-03 13:24:12 +01:00
2018-01-04 09:29:49 +01:00
2017-11-03 13:24:12 +01:00
2018-03-23 07:14:58 +01:00
2016-09-14 13:18:07 +02:00
2016-05-20 17:16:21 +02:00
2017-11-03 13:24:12 +01:00
2017-04-04 17:30:03 +02:00
2017-11-03 13:24:12 +01:00
2017-10-05 09:09:50 +02:00
2017-11-03 13:24:12 +01:00
2017-11-03 13:24:12 +01:00
2018-04-20 09:09:29 +02:00
2018-04-17 21:15:27 -06:00
2018-04-09 11:36:17 -06:00
2018-04-09 11:33:30 -06:00
2018-04-20 09:11:01 +02:00