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

Re: [Xen-devel] [PATCH 2/5] x86emul: consolidate segment register handling



On 30/09/16 13:15, Jan Beulich wrote:
>>>> On 30.09.16 at 12:39, <andrew.cooper3@xxxxxxxxxx> wrote:
>> On 08/09/16 14:43, Jan Beulich wrote:
>>> @@ -2861,21 +2860,20 @@ x86_emulate(
>>>          dst.val = src.val;
>>>          break;
>>>  
>>> -    case 0x8c: /* mov Sreg,r/m */ {
>>> -        struct segment_register reg;
>>> -        enum x86_segment seg = decode_segment(modrm_reg);
>>> +    case 0x8c: /* mov Sreg,r/m */
>>> +        seg = decode_segment(modrm_reg);
>>>          generate_exception_if(seg == decode_segment_failed, EXC_UD, -1);
>>> +    store_seg:
>> store_seg is easy to confuse with load_seg.  How about read_selector
>> instead?
> Well - it was specifically meant to match up with load_seg. I dislike
> read_selector (specifically because the read part of the operation
> was done by the time we get here), but if you like store_selector
> better than store_seg, I could use that one.

Fine by me.

~Andrew

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.