Re: [PATCH 3/3] KVM: x86 emulator: get rid of "restart" in emulation context.

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

 



 On 08/24/2010 05:06 PM, Gleb Natapov wrote:
On Tue, Aug 24, 2010 at 05:01:10PM +0300, Avi Kivity wrote:
  On 08/24/2010 04:52 PM, Gleb Natapov wrote:
We can, of course. But for me it looks as arbitrary as -1/0/1 since not
all enum values have meanings to the caller.
Yeah.  -1/0/1's problem is that between reading the callee code and
caller code, I manage to forget what the values mean.

Luckily we have only one caller of x86_emulate_insn(), so documenting
return values right where function is called should help. :)

Please use #define instead of /* */.

--
error compiling committee.c: too many arguments to function

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