On 2018-08-27 22:39, [email protected] wrote:
On Monday, August 20, 2018 at 11:36:47 PM UTC-6, J. Kiszka wrote:
On 2018-08-21 02:53, [email protected] wrote:
When I try to create a root config for my Ubuntu 18.04 Intel x86 machine, I get 
the following error:

hintron@bazooka:~/code/jailhouse$ sudo jailhouse config create bazooka.c
Traceback (most recent call last):
    File "/usr/local/sbin/jailhouse-config-create", line 1185, in <module>
      dmar_regions)
    File "/usr/local/sbin/jailhouse-config-create", line 762, in parse_dmar
      f = input_open('/sys/firmware/acpi/tables/DMAR', 'rb')
    File "/usr/local/sbin/jailhouse-config-create", line 160, in input_open
      raise e
IOError: [Errno 2] No such file or directory: '//sys/firmware/acpi/tables/DMAR'

Any ideas as to what am I doing wrong? Why would /sys/firmware/acpi/tables/DMAR 
be missing?

Your hardware might be lacking VT-d support, or it is just disabled in
the BIOS. Check the latter, and then maybe also check your CPU against
ark.intel.com (cat /proc/cpuinfo lists the exact model).

Jan

--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux

Thanks for the response. My hardware supports it (it's a new Intel i7-8700K).

When I pass `intel_iommu=on` to the kernel, reboot, and grep dmesg for DMAR, 
this is what I get:
hintron@bazooka:/etc/default$ dmesg | grep DMAR
[    0.000000] DMAR: IOMMU enabled

This blog post 
(http://vfio.blogspot.com/2016/09/intel-iommu-enabled-it-doesnt-mean-what.html) indicates 
that I should also see a "DMAR: Intel(R) Virtualization Technology for Directed 
I/O" message if it is actually enabled. But I don't. Passing `intel_iommu=off` to 
the kernel gives the same result.

Any ideas as to what I'm doing wrong?

Maybe nothing, but let's gather more facts first: Is there anything under /sys/firmware/acpi/tables at all, or does that folder not even exist in the first place? If it does, please send us the full dmesg output. If it does not, please share the kernel config you are using.


Thanks,
Michael

P.S. The reason I want to get this config generator working is that I am unsure 
how to create a root cell config by hand (even after basing off of a template 
file). I'm just not sure how the IO device addresses, memory regions, and other 
options are determined or anything like that. Plus it seems like it would be 
easy for me to make a mistake.

I'm pretty new at all this, so I'm currently trying to find Linux documentation 
that explains this stuff more detail.


Yes, writing that config by hand is not an optimal beginners task. A lot of information is tickled out of the deep of Linux sysfs or even those ACPI tables - if they can be found. If not, you would actually be as clueless as the tool itself.

Jan

--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux

--
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to