]> xenbits.xensource.com Git - xen.git/commit
x86/pv: Use DIV_ROUND_UP() when converting between GDT entries and frames
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 3 Oct 2017 15:30:54 +0000 (15:30 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 1 Dec 2017 19:03:27 +0000 (19:03 +0000)
commitffc4a3cf4fe6945a4998075e2c4435d1da281909
tree7a0b829d327464fcb45ef51e20e5304d6df2f8cd
parent58a5ee51ed1832e96c217b11568ac4b279c2e70d
x86/pv: Use DIV_ROUND_UP() when converting between GDT entries and frames

Also consistently use use nr_frames, rather than mixing nr_pages with a
frames[] array.

No functional change.

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