On 2015-11-03 16:04, Ralf Ramsauer wrote:
> Hi,
>
> On 11/03/2015 03:49 PM, charles king wrote:
>> hi,
>> This day, I read the code of driver/main.c, and find this code :
>> > #ifdef CONFIG_X86
>> >bool jailhouse_use_vmcall;
>> >static void init_hypercall(void)
>> >...
>> >#endif
>> as I know, the jailhouse does not support the x86 now, why use this
>> macro? Or some day the jailhouse will support the x86?
> This #ifdef is necessary to differentiate between virtualization
> technologies for X86 platforms. Intel and AMD use vmcall resp. vmmcall
> but both are X86. init_hypercall initializes a boolean value which
> allows to differentiate between both.
>
> This differentiation is only necessary for X86 (and e.g. not for ARM)
> and does not imply, that jailhouse might be available for X86.
And Jailhouse does run on x86, of course. 64-bit only, but that's hardly
a restriction anymore.
Jan
PS: reply-to-all, Ralf - second warning ;)
--
Siemens AG, Corporate Technology, CT RTC ITP SES-DE
Corporate Competence Center Embedded Linux