Re: [PATCH v2 21/24] KVM: x86: drop picdev_in_range()

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

 




On 29/03/2017 02:28, Steve Rutherford wrote:
> Not sure this matters, but this changes behavior slightly. This reorders
> validation of the length and and validation of the operation.

This would change behavior if for example:

- KVM registered port 0x22

- the guest wrote 4 bytes to port 0x1f

Before, picdev_write would return -EOPNOTSUPP and KVM would invoke the
handler for port 0x22; now it would return 0.

Since the PIT ports are far from anything else registered by the kernel,
this should not matter.

Paolo



[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