VirtualBox

Changeset 82681 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Jan 9, 2020 4:31:04 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
135597
Message:

Network/DevVirtioNet_1_0.cpp: Ported skeletal framwork from VirtIO 0.9 to VirtIO 1.0 semantics. Builds but not working. See BugRef(8561) Comment #49 for details

Location:
trunk/src/VBox/Main/src-client
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl.cpp

    r82502 r82681  
    15251525            return "virtio-net";
    15261526#endif
     1527#ifdef VBOX_WITH_VIRTIO_NET_1_0
     1528        case NetworkAdapterType_Virtio_1_0:
     1529            return "virtio-net-1-dot-0";
     1530#endif
    15271531        default:
    15281532            AssertFailed();
     
    42154219            notifyNatDnsChange(ptrVM.rawUVM(), "e1000", ulInstanceMax);
    42164220            notifyNatDnsChange(ptrVM.rawUVM(), "virtio-net", ulInstanceMax);
     4221            notifyNatDnsChange(ptrVM.rawUVM(), "virtio-net-1-dot-0", ulInstanceMax);
    42174222        }
    42184223    }
     
    48934898    AssertMsg(   (   !strcmp(pszDevice, "pcnet")
    48944899                  || !strcmp(pszDevice, "e1000")
    4895                   || !strcmp(pszDevice, "virtio-net"))
     4900                  || !strcmp(pszDevice, "virtio-net")
     4901                  || !strcmp(pszDevice, "virtio-net-1-dot-0"))
    48964902              && uLun == 0
    48974903              && uInstance < maxNetworkAdapters,
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r82502 r82681  
    24812481        InsertConfigNode(pDevices, "virtio-net", &pDevVirtioNet);
    24822482#endif /* VBOX_WITH_VIRTIO */
     2483#ifdef VBOX_WITH_VIRTIO_NET_1_0
     2484        PCFGMNODE pDevVirtioNet1_0 = NULL;          /* Virtio network devices */
     2485        InsertConfigNode(pDevices, "virtio-net-1-dot-0", &pDevVirtioNet1_0);
     2486#endif /* VBOX_WITH_VIRTIO_NET_1_0 */
    24832487        std::list<BootNic> llBootNics;
    24842488        for (ULONG uInstance = 0; uInstance < maxNetworkAdapters; ++uInstance)
     
    25182522                    break;
    25192523#endif /* VBOX_WITH_VIRTIO */
     2524#ifdef VBOX_WITH_VIRTIO_NET_1_0
     2525                case NetworkAdapterType_Virtio_1_0:
     2526                    pDev = pDevVirtioNet1_0;
     2527                    pszAdapterName = "virtio-net-1-dot-0";
     2528                    break;
     2529#endif /* VBOX_WITH_VIRTIO_NET_1_0 */
    25202530                default:
    25212531                    AssertMsgFailed(("Invalid network adapter type '%d' for slot '%d'", adapterType, uInstance));
     
    26042614                    break;
    26052615                case NetworkAdapterType_Virtio:
     2616                    break;
     2617                case NetworkAdapterType_Virtio_1_0:
    26062618                    break;
    26072619                case NetworkAdapterType_Null:      AssertFailedBreak(); /* (compiler warnings) */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette