Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153741317
D25131.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1020 B
Referenced Files
None
Subscribers
None
D25131.diff
View Options
Index: head/sys/dev/virtio/mmio/virtio_mmio.c
===================================================================
--- head/sys/dev/virtio/mmio/virtio_mmio.c
+++ head/sys/dev/virtio/mmio/virtio_mmio.c
@@ -390,7 +390,13 @@
sc = device_get_softc(dev);
+ vtmmio_write_config_4(sc, VIRTIO_MMIO_HOST_FEATURES_SEL, 1);
host_features = vtmmio_read_config_4(sc, VIRTIO_MMIO_HOST_FEATURES);
+ host_features <<= 32;
+
+ vtmmio_write_config_4(sc, VIRTIO_MMIO_HOST_FEATURES_SEL, 0);
+ host_features |= vtmmio_read_config_4(sc, VIRTIO_MMIO_HOST_FEATURES);
+
vtmmio_describe_features(sc, "host", host_features);
/*
@@ -402,6 +408,11 @@
sc->vtmmio_features = features;
vtmmio_describe_features(sc, "negotiated", features);
+
+ vtmmio_write_config_4(sc, VIRTIO_MMIO_HOST_FEATURES_SEL, 1);
+ vtmmio_write_config_4(sc, VIRTIO_MMIO_GUEST_FEATURES, features >> 32);
+
+ vtmmio_write_config_4(sc, VIRTIO_MMIO_HOST_FEATURES_SEL, 0);
vtmmio_write_config_4(sc, VIRTIO_MMIO_GUEST_FEATURES, features);
return (features);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 24, 8:50 AM (3 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32069640
Default Alt Text
D25131.diff (1020 B)
Attached To
Mode
D25131: virtio_mmio: Negotiate the upper half of the feature bits too
Attached
Detach File
Event Timeline
Log In to Comment