Pass memAccess attribute to <numa> memory backing definitions (#1049)

This can be used to set up shared memory backing e.g. for vhost-user.
This commit is contained in:
Haggai Eran 2021-11-29 15:44:42 +02:00 committed by GitHub
parent d87fabe777
commit a10351507e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@
<%- if @numa_nodes -%>
<numa>
<%- @numa_nodes.each_with_index do |node, index| -%>
<cell id='<%= index %>' cpus='<%= node[:cpus] %>' memory='<%= node[:memory] %>'/>
<cell id='<%= index %>' cpus='<%= node[:cpus] %>' memory='<%= node[:memory] %>'<% if node.key?(:memAccess) %> memAccess='<%= node[:memAccess] %>'<% end %>/>
<%- end -%>
</numa>
<%- end -%>