qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [qemu devel] disable shared memory is not available with this QEMU binary
@ 2015-03-31 14:21 Tony Krowiak
  2015-04-01  6:54 ` Marcel Apfelbaum
  0 siblings, 1 reply; 16+ messages in thread
From: Tony Krowiak @ 2015-03-31 14:21 UTC (permalink / raw)
  To: qemu-devel; +Cc: marcel.apfelbaum

[-- Attachment #1: Type: text/plain, Size: 1874 bytes --]

Commit 49d2e648e8087d154d8bf8b91f27c8e05e79d5a6 removed the QemuOptDesc 
elements from the
*desc* field of the *qemu_machine_opts *array defined in vl.c.  Since 
applying that patch to qemu
on my system, I can not start a guest from libvirt when certain machine 
options are configured
for the guest domain.  For example, if I configure the following for my 
guest domain:

     <memoryBacking>
         ...
         <nosharepages>
         ...
     </memoryBacking>

I get the following libvirt error when I try to start the guest:

     error: unsupported configuration: disable shared memory is not 
available with this QEMU binary

The *nosharepages *element generates the *-machine* option 
*mem-merge=off* on the QEMU command line.  The error is
thrown by libvirt because the QMP *query-command-line-options* command 
does not return *mem-merge* in the machine
options parameter list.  In fact, if I issue the 
*query-command-line-options* command via virsh as follows:

     virsh qemu-monitor-command guest_c2aa '{ "execute": 
"query-command-line-options", "arguments": { "option": "machine" } }'

No machine option parameters are returned:

{"return":[{"parameters":[],"option":"machine"}],"id":"libvirt-11"}


I took a look at the *qmp_query_command_line_options* function in 
*util/qemu-config.c*.  The function derives the
option parameters to return with the the query response from the 
QemuOptDesc elements contained in the
*desc* field of the *qemu_machine_opts *array defined in vl.c.  It 
appears that removing the
QemuOptDesc elements broke the *qmp_query_command_line_options* 
function.  If I restore the QemuOptDesc
elements removed by commit 49d2e648e8087d154d8bf8b91f27c8e05e79d5a6, I 
can start the guest with
*nosharepages* configured.

It would appear that a bug was introduced with commit 
49d2e648e8087d154d8bf8b91f27c8e05e79d5a6,
what say you?

[-- Attachment #2: Type: text/html, Size: 2764 bytes --]

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2015-04-01 16:31 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-31 14:21 [Qemu-devel] [qemu devel] disable shared memory is not available with this QEMU binary Tony Krowiak
2015-04-01  6:54 ` Marcel Apfelbaum
2015-04-01  8:01   ` Paolo Bonzini
2015-04-01  8:06     ` Marcel Apfelbaum
2015-04-01  8:20       ` Paolo Bonzini
2015-04-01  8:42     ` Markus Armbruster
2015-04-01  9:07       ` Paolo Bonzini
2015-04-01  9:14         ` Marcel Apfelbaum
2015-04-01  9:23           ` Paolo Bonzini
2015-04-01  9:27             ` Marcel Apfelbaum
2015-04-01  8:28   ` Markus Armbruster
2015-04-01 14:51     ` Marcel Apfelbaum
2015-04-01 15:53       ` Markus Armbruster
2015-04-01 16:11         ` Marcel Apfelbaum
2015-04-01 16:20           ` Eric Blake
2015-04-01 16:31             ` Marcel Apfelbaum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).