VirtualBox

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


Ignore:
Timestamp:
Dec 17, 2021 8:18:43 AM (3 years ago)
Author:
vboxsync
Message:

virtio-net works on linux in local testing, and virtio-scsi works on windows. Integrating the switchover to make DevVirtioNet_1_0.cpp the 'virtio-net' option in the Virtual Network Controller list.

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

Legend:

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

    r91718 r92996  
    15581558            return "virtio-net";
    15591559#endif
    1560 #ifdef VBOX_WITH_VIRTIO_NET_1_0
    1561         case NetworkAdapterType_Virtio_1_0:
    1562             return "virtio-net-1-dot-0";
    1563 #endif
    15641560        default:
    15651561            AssertFailed();
     
    42524248            notifyNatDnsChange(ptrVM.rawUVM(), "e1000", ulInstanceMax);
    42534249            notifyNatDnsChange(ptrVM.rawUVM(), "virtio-net", ulInstanceMax);
    4254             notifyNatDnsChange(ptrVM.rawUVM(), "virtio-net-1-dot-0", ulInstanceMax);
    42554250        }
    42564251    }
     
    49314926    AssertMsg(   (   !strcmp(pszDevice, "pcnet")
    49324927                  || !strcmp(pszDevice, "e1000")
    4933                   || !strcmp(pszDevice, "virtio-net")
    4934                   || !strcmp(pszDevice, "virtio-net-1-dot-0"))
     4928                  || !strcmp(pszDevice, "virtio-net"))
    49354929              && uLun == 0
    49364930              && uInstance < maxNetworkAdapters,
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r92366 r92996  
    26122612        InsertConfigNode(pDevices, "virtio-net", &pDevVirtioNet);
    26132613#endif /* VBOX_WITH_VIRTIO */
    2614 #ifdef VBOX_WITH_VIRTIO_NET_1_0
    2615         PCFGMNODE pDevVirtioNet1_0 = NULL;          /* Virtio network devices */
    2616         InsertConfigNode(pDevices, "virtio-net-1-dot-0", &pDevVirtioNet1_0);
    2617 #endif /* VBOX_WITH_VIRTIO_NET_1_0 */
    26182614        std::list<BootNic> llBootNics;
    26192615        for (ULONG uInstance = 0; uInstance < maxNetworkAdapters; ++uInstance)
     
    26532649                    break;
    26542650#endif /* VBOX_WITH_VIRTIO */
    2655 #ifdef VBOX_WITH_VIRTIO_NET_1_0
    2656                 case NetworkAdapterType_Virtio_1_0:
    2657                     pDev = pDevVirtioNet1_0;
    2658                     pszAdapterName = "virtio-net-1-dot-0";
    2659                     break;
    2660 #endif /* VBOX_WITH_VIRTIO_NET_1_0 */
    26612651                default:
    26622652                    AssertMsgFailed(("Invalid network adapter type '%d' for slot '%d'", adapterType, uInstance));
     
    27212711
    27222712            /*
    2723              * The virtual hardware type. PCNet supports two types, E1000 three,
     2713             * The virtual hardware type. PCNet supports three types, E1000 three,
    27242714             * but VirtIO only one.
    27252715             */
     
    27452735                    break;
    27462736                case NetworkAdapterType_Virtio:
    2747                     break;
    2748                 case NetworkAdapterType_Virtio_1_0:
    27492737                    break;
    27502738                case NetworkAdapterType_Null:      AssertFailedBreak(); /* (compiler warnings) */
Note: See TracChangeset for help on using the changeset viewer.

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