Re: [PATCH v2] KVM: Refactor and simplify kvm_dev_ioctl_get_supported_cpuid

2011-11-28 Thread Avi Kivity
On 11/28/2011 11:52 AM, Avi Kivity wrote: > On 11/28/2011 11:20 AM, Sasha Levin wrote: > > This patch cleans and simplifies kvm_dev_ioctl_get_supported_cpuid by using > > a table > > instead of duplicating code as Avi suggested. > > > > This patch also fixes a bug where kvm_dev_ioctl_get_supported

Re: [PATCH v2] KVM: Refactor and simplify kvm_dev_ioctl_get_supported_cpuid

2011-11-28 Thread Avi Kivity
On 11/28/2011 11:20 AM, Sasha Levin wrote: > This patch cleans and simplifies kvm_dev_ioctl_get_supported_cpuid by using a > table > instead of duplicating code as Avi suggested. > > This patch also fixes a bug where kvm_dev_ioctl_get_supported_cpuid would > return > -E2BIG when amount of entries