Re: Guest handling of IA32_DEBUGCTL MSR

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 28/04/2015 14:00, Jan Kiszka wrote:
> > > It seems strange that the guest is allowed to set IA32_DEBUGCTL MSR for the
> > > nested VM and get this value to the physical IA32_DEBUGCTL (see
> > > prepare_vmcs02), while it cannot set IA32_DEBUGCTL for itself (see
> > > kvm_set_msr_common).
> > >
> > > Am I missing something?
> > 
> > No, it makes no sense.
> 
> Are you sure that vmx is not allowing direct access to that MSR while in
> guest mode? We do save/restore it on all Intel CPUs, see
> setup_vmcs_config. Not sure about the AMD situation, though.

Right now, L1 could for example enable LBR for the L2 guest, but it
wouldn't make sense since the L1 guest cannot then read the last branch
MSRs.

Paolo
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux