Re: [PATCH v11 2/3] x86, apicv: add virtual x2apic support

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

 



On Mon, Jan 21, 2013 at 10:21:14PM +0200, Gleb Natapov wrote:
> > >  	}
> > > +
> > > +	vcpu->arch.apic_base = value;
> > 
> > Simpler to have
> > 
> > if (apic_x2apic_mode(apic)) {
> > 	...
> > 	kvm_x86_ops->set_virtual_x2apic_mode(vcpu, true);
> > } else {
> > 	kvm_x86_ops->set_virtual_x2apic_mode(vcpu, false);
> > }
> > 
> This will not work during cpu init. That was discussed on one of
> the previous iterations of the patch. When this code is called during
> vcpu init vmcs is not loaded yet so set_virtual_x2apic_mode() cannot
> write into it.

Are you saying that the logic to write on bit value change is due to 
ordering with cpu init or that the callback is at the wrong place?

> > 
> > Why not disable write intercept for all MSRs which represent APIC registers
> > that are virtualized? Why TPR is special?
> > 
> This patch goes before vid is enabled. At this point only TPR is
> vitalized. If APIC_WRITE exit will be generated on unhandled MSR write
> then we can disable intercept for all x2apic MSRs here.

-ENOPARSE, please be more verbose. "unhandled MSR write" ?

--
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