qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: Bas van Sisseren <bas@quarantainenet.nl>
Cc: Qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] [slirp] add nextserver support in slirp's dhcp-server
Date: Tue, 02 Jul 2013 07:19:36 -0600	[thread overview]
Message-ID: <51D2D368.6040205@redhat.com> (raw)
In-Reply-To: <51D2CF8F.8080800@quarantainenet.nl>

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

On 07/02/2013 07:03 AM, Bas van Sisseren wrote:
>>> +# @nextserver: #optional IP address of BOOTP server
>>> +#
> 
>> Please mark this field as '(since 1.6)'.
> 
> Added in my local checkout. I now have to find out how to generate a new
> patch and post it into this thread. I'll try to post a new patch somewhere
> in the next days. (I'm new to git :-) )

Feel free to ask questions.  Also, see if the wiki page
http://wiki.qemu.org/Contribute/SubmitAPatch helps, or could be improved.

My typical workflow for amending a series to address review comments is
to 'git rebase -i', change the marker on patches I intend to modify from
'pick' to edit' on the screen it pulls up, then exit that editor.  From
there, git will apply patches in turn, halting on each patch I marked
for edit, where I can make the changes, 'git add' them, then 'git rebase
--continue' to merge them into the patch series in the right place.
Read 'git rebase --help' for a lot more hints on what it can do.

>> Does the field work for both IPv4 and IPv6 addresses?
> 
> This setting is IPv4 only. (btw, I think all slirp settings are IPv4 only)

Just making sure we are considering things if it matters; but it sounds
like it doesn't matter here.

>>>  # @dns: #optional guest-visible address of the virtual nameserver
>>>  #
>>>  # @dnssearch: #optional list of DNS suffixes to search, passed as DHCP option
>>> @@ -2563,6 +2565,7 @@
>>>      '*tftp':      'str',
>>>      '*bootfile':  'str',
>>>      '*dhcpstart': 'str',
>>> +    '*nextserver': 'str',
> 
>> This is a command addition that libvirt can't take advantage of unless
>> we get introspection working in a timely manner.
> 
> It would be a nice addition to libvirt, but is it a problem that libvirt
> doesn't support all new settings (yet)?

The problem is that libvirt supports multiple versions of qemu, but
wants to provide sane error messages to the user.  If we add a mapping
to libvirt to expose this new parameter, then libvirt would like to know
whether the qemu version on the user's machine is new enough to honor
that mapping, or old enough to need an upgrade.  A version number check
is not ideal, because distros like to backport features without bumping
the version number (for instance, RHEL 6 ships a qemu that calls itself
0.12.xx, yet behaves like 1.5 for certain features).  Creating a new
qemu command works (if the command exists or does not exist, libvirt
knows the answer without too much effort).  Introspection would let
libvirt do a query: "what fields does this command support"; and if
nextserver is in (or not in) the list, then libvirt knows the answer
without too much effort.  But introspection is not incorporated yet
(we're working on it, and still hopeful it will make 1.6); so that
leaves us with only one other option for discovering if an optional
parameter is supported - try the command and see if it fails.  This is
not as friendly, and depending on the command may have other negative
side effects from even attempting the command at all.

While that's the theory behind QMP additions, there's also the matter
that libvirt won't support the new option at all (whether via
introspection or try-and-fail probing) unless someone writes a patch for
libvirt.  On the other hand, the schedule at which libvirt adds support
for qemu features shouldn't hold up whether qemu adds the features,
since there are more users of qemu than just libvirt.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 621 bytes --]

      reply	other threads:[~2013-07-02 13:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-21 13:20 [Qemu-devel] [PATCH] [slirp] add nextserver support in slirp's dhcp-server Bas van Sisseren
2013-06-24  9:37 ` Stefan Hajnoczi
2013-07-01 20:51 ` Eric Blake
2013-07-02 13:03   ` Bas van Sisseren
2013-07-02 13:19     ` Eric Blake [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51D2D368.6040205@redhat.com \
    --to=eblake@redhat.com \
    --cc=bas@quarantainenet.nl \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).