Permalink
Commits on Jul 9, 2013
  1. Fix VIRTIO_F_ANY_LAYOUT: 30 is used by qemu for bad feature negotiati…

    …on detect
    
    Thanks to MST for pointing this out.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    committed Jul 9, 2013
Commits on Jul 8, 2013
  1. Layout cleanups.

    After chopping and changing on the rules for descriptor layouts, we decided
    to add a new feature bit.  Hopefully this can be assumed for 1.0.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    committed Jul 8, 2013
Commits on Jun 19, 2013
  1. Make it clear that you can refuse VIRTIO_BALLOON_F_MUST_TELL_HOST.

    This was not the original intention, but no implementation requires the
    feature, and making it compulsory has unintended consequences (it is
    unlike any other feature).
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    committed Jun 19, 2013
Commits on Jun 3, 2013
  1. virtio-spec: small English/punctuation corrections

    1. s/These are devices are/These devices are
    2. s/Thefirst/The first
    3. s/, Guest should/. Guest should
    
    Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (minor mod)
    committed Jun 3, 2013
Commits on May 21, 2013
  1. virtio-spec: tweak wording for console control vq

    control vq is only used if feature bit is
    negotiated - it's not enough that device supports
    it. Clarify this in the spec.
    
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    mstsirkin committed with May 20, 2013
Commits on May 13, 2013
  1. Documentation: virtio: Add emergency write (emerg_wr) config register…

    … in virtio console.
    
    [ Enhanced and applied to Lyx not text version --RR ]
    
    Signed-off-by: Pranavkumar Sawargaonkar <pranavkumar@linaro.org>
    Signed-off-by: Anup Patel <anup.patel@linaro.org>
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    Pranavkumar Sawargaonkar committed with May 13, 2013
Commits on Apr 23, 2013
  1. Make references to "desciptor chains" explicit.

    Sometimes we refer to descriptors, where we really mean the heads of
    descriptor chains.  This can be confusing when busy people jump around
    the spec.  Which is everyone...
    
    Reported-by: Laszlo Ersek <lersek@redhat.com>
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    committed Apr 23, 2013
Commits on Apr 15, 2013
  1. virtio-spec: document virtio-9p

    Add basic documentation for virtio-9p. I can expand more on device operation,
    but I don't think there's anything significant enough for the spec to be
    mentioned there. Please let me know if I'm wrong.
    
    Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    sashalevin committed with Apr 15, 2013
  2. net: add note that you can defer rx queue init until mq enable.

    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    committed Apr 15, 2013
Commits on Apr 5, 2013
  1. virtio-spec: dynamic network offloads configuration

    Virtio-net driver currently negotiates network offloads
    on startup via features mechanism and have no ability to
    disable and re-enable offloads later.
    This patch introduced a new control command that allows
    to configure device network offloads state dynamically.
    The patch also introduces a new feature flag
    VIRTIO_NET_F_CTRL_GUEST_OFFLOADS.
    
    Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    dmitryfleytman committed with Apr 4, 2013
Commits on Mar 20, 2013
  1. Add ID 12 for CAIF.

    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    committed Mar 20, 2013
Commits on Mar 12, 2013
  1. virtio-ccw: document GPR4/GPR2 cookie values

    virtio-ccw on kvm can use a cookie value passed to guest
    to optimize channel/VQ lookups.
    Document this.
    
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (s/s390/ccw/)
    mstsirkin committed with Mar 7, 2013
Commits on Feb 15, 2013
  1. virtio-spec: Define virtio-mmio registers as LE

    To solve the never-ending confusions between hosts and guests
    of different endianess, define all virtio-mmio registers as LE.
    
    This change should be safe at this stage, because no known
    working mixed-endian system exists so there is virtually no
    risk of breaking compatibility.
    
    Signed-off-by: Pawel Moll <pawel.moll@arm.com>
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    pawelmoll committed with Feb 14, 2013
  2. Add missing ; in virtio_net_hdr.

    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    committed Feb 15, 2013
Commits on Jan 21, 2013
  1. virtio-spec: set mac address by a new vq command

    Virtio-net driver currently programs MAC address byte by byte,
    this means that we have an intermediate step where mac is wrong.
    This patch introduced a new control command to set MAC address
    in one time, and added a new feature flag VIRTIO_NET_F_MAC_ADDR
    for this feature.
    
    "mac" field will be set to read-only when VIRTIO_NET_F_CTRL_MAC_ADDR
     is acked.
    
    Signed-off-by: Amos Kong <akong@redhat.com>
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    amoskong committed with Jan 18, 2013
Commits on Jan 10, 2013
  1. virtio-spec: fix two typos

    VIRTIO_NET_F_VTRL_VQ -> VIRTIO_NET_F_CTRL_VQ
    VIRTIO_NET_CTRL_MQ is defined to 4 in kernel code
    
    Signed-off-by: Amos Kong <akong@redhat.com>
    Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    amoskong committed with Jan 9, 2013
Commits on Jan 3, 2013
  1. English fixes from Amos Kong.

    Change "is a number" to "is the number" for more precision.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    committed Jan 3, 2013
Commits on Dec 16, 2012
  1. Document VIRTIO_BLK_T_GET_ID

    Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>
    Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    xl0 committed with Dec 15, 2012
  2. Revert accidental cleanup.

    Alexey Zaytsev points out that lyx automatically changes some of the
    formatting when saving (perhaps a manual edit previously?).  Simply re-saving
    the file causes this to change; doing it now avoids pointless diffs.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    committed Dec 16, 2012
Commits on Dec 14, 2012
  1. virtio-spec: fix thinko in multiport documentation

    spec numbers ports port0, port 1 etc, then goes on to say
    "ports 2 onwards only if MULTIPORT is set".
    An obvious thinko, should be port 1 onwards.
    
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    Acked-by: Amit Shah <amit.shah@redhat.com>
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    mstsirkin committed with Sep 9, 2012
Commits on Dec 10, 2012
  1. virtio-spec: virtio network device multiqueue support

    Add multiqueue support to virtio network device.
    Add a new feature flag VIRTIO_NET_F_MQ for this feature, a new
    configuration field max_virtqueue_pairs to detect supported number of
    virtqueues as well as a new command VIRTIO_NET_CTRL_MQ to program
    packet steering for unidirectional protocols.
    
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    mstsirkin committed with Dec 10, 2012
Commits on Oct 31, 2012
  1. virtio-ccw: Clarifications.

    Clarify how indicator location is communicated and that the
    feature bits are little-endian.
    
    Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    cohuck committed with Oct 29, 2012
Commits on Oct 4, 2012
  1. No longer assume framing is independent of messages. *sniff*

    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    committed Oct 4, 2012
Commits on Sep 19, 2012
  1. There are only three independent features, not five.

    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    committed Sep 19, 2012
  2. Update virtio_ring.h: make sure it actually compiles!

    Also add inline helpers to find the avail and used rings.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    committed Sep 19, 2012
Commits on Sep 12, 2012
  1. virtio-ccw: Add secondary indicators.

    Add a ccw to specify the location of indicators for configuration
    changes and notice how they are to be used.
    
    Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
    cohuck committed with Sep 11, 2012
  2. Add RPROC_SERIAL reservation.

    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    committed Sep 12, 2012
Commits on Sep 6, 2012
  1. virtio-spec: Add virtio-ccw spec.

    Add specifications for the new s390 specific virtio-ccw transport.
    
    Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    cohuck committed with Sep 4, 2012
Commits on Jul 27, 2012
  1. Clarify vring_size() when VIRTIO_RING_F_EVENT_IDX.

    Reported-by: Stefan Fritsch <sf@sfritsch.de>
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    committed Jul 27, 2012
Commits on Jul 17, 2012
  1. virtio-scsi spec: add configuration change event

    This adds an event for changes to LUN parameters, for example capacity.  These
    are reported in virtio-blk via configuration changes, and we want a similar
    functionality in virtio-scsi too.
    
    There is no list of supported parameter changes, instead we just refer to
    the list of sense codes in the SCSI specification.
    
    This event will usually be serviced in one of three ways: 1) call an OS
    service to revalidate the disk, either always or only for some specific
    sense codes; 2) somehow pass the sense directly to the upper-level driver;
    3) inject a TEST UNIT READY command into the upper-level device, so that
    the OS will see the unit attention code and react.  Of course a mix of
    the three is also possible, depending on how the driver writer prefers
    to have his layering violations served.
    
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    bonzini committed with Jul 16, 2012
  2. virtio-scsi spec: unify event structs

    All currently defined event structs have the same fields.  Simplify the
    driver by enforcing this also for future structs.
    
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    bonzini committed with Jul 16, 2012
Commits on Jul 8, 2012
  1. virtio-blk spec: document topology fields

    This completes the changes from yesterday.
    
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    bonzini committed with Jul 4, 2012
Commits on Jul 4, 2012
  1. Add Makefile and README.

    committed Jul 4, 2012
  2. virtio-blk spec: writeback cache enable improvements

    This patch introduces two improvements to writeback cache handling
    in the virtio-blk spec.
    
    1) The VIRTIO_BLK_F_FLUSH feature is renamed to VIRTIO_BLK_F_WCE, and
    QEMU's behavior is documented explicitly as part of the spec: the host
    negotiates the feature only if its cache is writeback.  The obvious dual
    requirement is imposed on the guest: it should negotiate the feature
    only if it is able to send flushes.  And in order to protect against
    data loss, the spec now mandates that the host operates in writethrough
    mode if the guest does not negotiate VIRTIO_BLK_F_WCE (this behavior
    was already _allowed_ by the spec so far).  This can change with every
    reset of course; typically the BIOS will run as writethrough, while the
    "main" OS will run in writeback mode.  This is a backwards-compatible
    refinement geared towards old or limited guests, so there is no need
    for a new feature bit.
    
    2) a second feature is added, VIRTIO_BLK_F_CONFIG_WCE, that provides
    the same information in the configuration.  This will enable the driver
    to modify the write-cache setting at runtime (via sysfs for Linux, via
    MODE SELECT for Windows).
    
    Patches for QEMU and Linux will come soonish.
    
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    bonzini committed with Jul 3, 2012
  3. Current QEMU and Linux drivers can export queue parameters via the

    virtio-blk configuration space.  Document this, since the next patch
    will have to add another configuration field after these.
    
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    bonzini committed with Jul 4, 2012