On 5/21/19 5:09 PM, Jan Kiszka wrote:
> On 21.05.19 15:45, Ralf Ramsauer wrote:
>> Hi,
>>
>> we have some issues enabling Jailhouse on a Intel with a pretty new CPU
>> (Xeon Gold 5118).
>>
>> First, the CPU supports PKE and Linux will enable it (CR4, Bit 22).
>> Jailhouse won't start, as this bit is marked in X86_CR4_RESERVED. Didn't
>> have a deeper look into this on how it affects the hypervisor or
>> allowing it needs some special treatment, so adding nopku to the
>> commandline will keep the feature disabled and suffices for the moment.
>>
> 
> Known issue, see https://github.com/siemens/jailhouse/pull/23

Aah, I remember that discussion a month ago...

So I guess it is okay to allow this feature.

What would you say, is it better to use a configuration parameter that
indicates the existence of PKE (as noted in the github discussion, we
should only respect that bit if available), or online cpuid discovery?

I guess the latter one is a bit against the philosophy, but much simpler
to implement.

> 
>>
>> Anyway, after enabling Jailhouse, our system freezes and we have some
>> IOMMU faults on a Broadcom ethernet card (04:00.0). Find the error
>> message below.
>>
>> We have fault reason 0x22. But according to Intel documentation (latest
>> version from 2018)… There is no 0x22. :-) I already checked if decoding
>> of the fault register is correct -- nothing suspicious.
> 
> Table 13, 22h: "The Present (P) field in the IRTE entry corresponding to
> the interrupt_index of the interrupt request is Clear."

Ah okay, the manual is a bit confusing. If you look at the description
of the fault register, it won't point you to the table of interrupt
related fault codes.

> 
> Wrong IOMMU unit set for that device?

Let me check. We just used the config generator.

Thanks
  Ralf

> 
> Jan
> 
>>
>> Any ideas?
>>
>> Thanks
>>    Ralf
>>
>> Page pool usage after late setup: mem 704/975, remap 65560/131072
>> Activating hypervisor
>> VT-d fault event reported by IOMMU 3:
>>   Source Identifier (bus:dev.func): 04:00.0
>>   Fault Reason: 0x22 Fault Info: 19000000000 Type 0
>> VT-d fault event reported by IOMMU 3:
>>   Source Identifier (bus:dev.func): 04:00.0
>>   Fault Reason: 0x22 Fault Info: 18000000000 Type 0
>>
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/db894a08-8c3a-cb64-2c84-ac595f02b6e0%40oth-regensburg.de.
For more options, visit https://groups.google.com/d/optout.

Reply via email to