x86: Use common variable range MTRR counts
commitd8b5c67b05420d966664664ff287af05b884bdd1
authorAlex Williamson <alex.williamson@redhat.com>
Thu, 14 Aug 2014 21:39:27 +0000 (14 15:39 -0600)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 25 Aug 2014 16:53:42 +0000 (25 18:53 +0200)
tree34e114d63470e627d2f00051a1150d01823b69fc
parent1844e68ecabbdfdf0228774bcd5cf0f63ffc2e57
x86: Use common variable range MTRR counts

We currently define the number of variable range MTRR registers as 8
in the CPUX86State structure and vmstate, but use MSR_MTRRcap_VCNT
(also 8) to report to guests the number available.  Change this to
use MSR_MTRRcap_VCNT consistently.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target-i386/cpu.h
target-i386/machine.c