Linux PV guests will attempt to read the APIC_BASE MSR, so just report
a default value to make Linux happy.
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
switch ( reg )
{
+ case MSR_APIC_BASE:
+ /* Linux PV guests will attempt to read APIC_BASE. */
+ *val = APIC_BASE_ENABLE | APIC_DEFAULT_PHYS_BASE;
+ if ( !curr->vcpu_id )
+ *val |= APIC_BASE_BSP;
+ return X86EMUL_OKAY;
+
case MSR_FS_BASE:
if ( is_pv_32bit_domain(currd) )
break;