x86/xstate: Rename _xstate_ctxt_size() to hw_uncompressed_size()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 30 Apr 2021 19:17:55 +0000 (20:17 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 4 May 2021 18:14:23 +0000 (19:14 +0100)
commit8cccd6438e86112ab383e41b433b5a7e73be9621
tree45a76f38ed836a69fcf8b62493238da4eae18d7b
parent9478ee4a1501c8899307eaa24585f8c6f8d23fa9
x86/xstate: Rename _xstate_ctxt_size() to hw_uncompressed_size()

The latter is a more descriptive name, as it explicitly highlights the query
from hardware.

Simplify the internal logic using cpuid_count_ebx(), and drop the curr/max
assertion as this property is guaranteed by the x86 ISA.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/xstate.c