RE: KVM: PIT: fix pit_state copy in set_pit2/get_pit2

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

 



On Tuesday, August 25, 2009 8:33 PM Avi Kivity wrote:

> On 08/25/2009 03:29 PM, Marcelo Tosatti wrote:
>> The kvm_pit_state2 structure contains extra space, so the memcpy
>> in kvm_vm_ioctl_set_pit2 corrupts kvm->arch.vpit->pit_state.
>> 
>> Fix it by memcpy'ing the channel information and assigning flags
>> manually. 
>> 
> 
> Good catch; applied.

I verified with kvm commit: 323d3b06db8bf2d8e4c5ed1a390668ae7b1b84bf, the issue has gone with the fix.


Best Regards
Jiajun--
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