Radim Krčmář writes:
> 2016-10-26 20:17-0400, Bandan Das:
>> Radim Krčmář writes:
>> ...
>>> +static int check_fxsr(struct x86_emulate_ctxt *ctxt)
>>> +{
>>> + u32 eax = 1, ebx, ecx = 0, edx;
>>> +
>>> + ctxt->ops->get_cpuid(ctxt, , , , );
>>> + if
Radim Krčmář writes:
> 2016-10-26 20:17-0400, Bandan Das:
>> Radim Krčmář writes:
>> ...
>>> +static int check_fxsr(struct x86_emulate_ctxt *ctxt)
>>> +{
>>> + u32 eax = 1, ebx, ecx = 0, edx;
>>> +
>>> + ctxt->ops->get_cpuid(ctxt, , , , );
>>> + if (!(edx & FFL(FXSR)))
>>> +
2016-10-26 20:17-0400, Bandan Das:
> Radim Krčmář writes:
> ...
>> +static int check_fxsr(struct x86_emulate_ctxt *ctxt)
>> +{
>> +u32 eax = 1, ebx, ecx = 0, edx;
>> +
>> +ctxt->ops->get_cpuid(ctxt, , , , );
>> +if (!(edx & FFL(FXSR)))
>> +return
2016-10-26 20:17-0400, Bandan Das:
> Radim Krčmář writes:
> ...
>> +static int check_fxsr(struct x86_emulate_ctxt *ctxt)
>> +{
>> +u32 eax = 1, ebx, ecx = 0, edx;
>> +
>> +ctxt->ops->get_cpuid(ctxt, , , , );
>> +if (!(edx & FFL(FXSR)))
>> +return emulate_ud(ctxt);
>> +
>>
Hi Radim,
Radim Krčmář writes:
...
> static __always_inline int __linearize(struct x86_emulate_ctxt *ctxt,
> @@ -704,7 +708,7 @@ static __always_inline int __linearize(struct
> x86_emulate_ctxt *ctxt,
> }
> break;
> }
> - if
Hi Radim,
Radim Krčmář writes:
...
> static __always_inline int __linearize(struct x86_emulate_ctxt *ctxt,
> @@ -704,7 +708,7 @@ static __always_inline int __linearize(struct
> x86_emulate_ctxt *ctxt,
> }
> break;
> }
> - if (insn_aligned(ctxt, size) &&
Internal errors were reported on 16 bit fxsave and fxrstor with iPXE.
Old Intels don't have unrestricted_guest, so we have to emulate them.
The patch takes advantage of the hardware implementation. There should
be no problem as long as the buffer is aligned.
Signed-off-by: Radim Krčmář
Internal errors were reported on 16 bit fxsave and fxrstor with iPXE.
Old Intels don't have unrestricted_guest, so we have to emulate them.
The patch takes advantage of the hardware implementation. There should
be no problem as long as the buffer is aligned.
Signed-off-by: Radim Krčmář
---
8 matches
Mail list logo