Re: [PATCH 0/4] KVM: x86 emulator: Split decoder into separate functions

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

 



On Tue, 24 Apr 2012 17:11:54 +0300
Avi Kivity <avi@xxxxxxxxxx> wrote:

> On 04/23/2012 06:31 PM, Takuya Yoshikawa wrote:
> > Takuya Yoshikawa (4):
> >   KVM: x86 emulator: Introduce ctxt->op_prefix for 0x66 prefix
> >   KVM: x86 emulator: Make prefix decoding a separate function
> >   KVM: x86 emulator: Make opcode decoding a separate function
> >
> 
> I don't see the benefit for the first three patches.  They add more
> state, and don't encourage any reuse.  The current code is complicated,
> but just splitting it doesn't really fix that.

I thought up these when some people tried to use some opcode/prefix
bytes in wrong stages.

Although I personally like splitting a long function into named
sub-functions, it's just a matter of taste.

OK, then I will focus on modrm fetching.

Thanks,
	Takuya
--
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