virtio-net: remove layout assumptions for ctrl vq
Virtio-net code makes assumption about virtqueue descriptor layout(e.g. sg0 is the header, sg1 is the data buffer).
This patch makes code not rely on the layout of descriptors.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>...
virtio-net: introduce a new macaddr control
In virtio-net guest driver, currently we write MAC address topci config space byte by byte, this means that we have anintermediate step where mac is wrong. This patch introduceda new control command to set MAC address, it's atomic....
e1000: document ICS read behaviour
Add code comment to clarify the reason we set ICS with ICR:the reason was previously undocumented and gitlog confused rather than clarified the comments.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
virtio-net: revert mac on reset
Once guest overrides virtio net primary mac,it retains the value set until qemu exit.This is inconsistent with standard nic behaviour.To fix, revert the mac to the original value on reset.
Merge remote-tracking branch 'afaerber/qom-cpu' into staging
Merge remote-tracking branch 'kwolf/for-anthony' into staging
Merge remote-tracking branch 'luiz/queue/qmp' into staging
fw_cfg: Remove FW_CFG_MAX_CPUS from fw_cfg_init()
PC will not use max_cpus for that field, so move it outside the commoncode so it can use a different value on PC.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>Signed-off-by: Andreas Färber <afaerber@suse.de>
pc: Set fw_cfg data based on APIC ID calculation
This changes FW_CFG_MAX_CPUS and FW_CFG_NUMA to use apic_id_for_cpu(),so the NUMA table can be based on the APIC IDs, instead of CPU index(SeaBIOS knows nothing about CPU indexes, just APIC IDs).
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>...
pc: Generate APIC IDs according to CPU topology
This keeps compatibility on machine-types pc-1.2 and older, and prints awarning in case the requested configuration won't get the correcttopology.
I couldn't think of a better way to warn about broken topology when in...
View revisions
Also available in: Atom