kvm: allow tpr patching to write to write-protected vapic option rom
commitc2333d898b52a9d64845522f18fd083534dc0a5b
authorAvi Kivity <avi@redhat.com>
Tue, 5 Oct 2010 13:02:34 +0000 (5 15:02 +0200)
committerAvi Kivity <avi@redhat.com>
Tue, 5 Oct 2010 13:02:34 +0000 (5 15:02 +0200)
tree8610fcdb7916e2450a2c037cb309810f2368ee00
parent74bcdb1c883012291e5c8faead5c6310a735e52d
kvm: allow tpr patching to write to write-protected vapic option rom

Now that we allow the bios to write protect option roms, we need to allow
the tpr patching code to write to this write protected memory.  This means
using cpu_physical_memory_write_rom() instead of the usual APIs.

Fixes Windows XP without flexpriority.

Signed-off-by: Avi Kivity <avi@redhat.com>
kvm-tpr-opt.c