Changeset 92996 in vbox for trunk/src/VBox/Main/src-client
- Timestamp:
- Dec 17, 2021 8:18:43 AM (3 years ago)
- Location:
- trunk/src/VBox/Main/src-client
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r91718 r92996 1558 1558 return "virtio-net"; 1559 1559 #endif 1560 #ifdef VBOX_WITH_VIRTIO_NET_1_01561 case NetworkAdapterType_Virtio_1_0:1562 return "virtio-net-1-dot-0";1563 #endif1564 1560 default: 1565 1561 AssertFailed(); … … 4252 4248 notifyNatDnsChange(ptrVM.rawUVM(), "e1000", ulInstanceMax); 4253 4249 notifyNatDnsChange(ptrVM.rawUVM(), "virtio-net", ulInstanceMax); 4254 notifyNatDnsChange(ptrVM.rawUVM(), "virtio-net-1-dot-0", ulInstanceMax);4255 4250 } 4256 4251 } … … 4931 4926 AssertMsg( ( !strcmp(pszDevice, "pcnet") 4932 4927 || !strcmp(pszDevice, "e1000") 4933 || !strcmp(pszDevice, "virtio-net") 4934 || !strcmp(pszDevice, "virtio-net-1-dot-0")) 4928 || !strcmp(pszDevice, "virtio-net")) 4935 4929 && uLun == 0 4936 4930 && uInstance < maxNetworkAdapters, -
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r92366 r92996 2612 2612 InsertConfigNode(pDevices, "virtio-net", &pDevVirtioNet); 2613 2613 #endif /* VBOX_WITH_VIRTIO */ 2614 #ifdef VBOX_WITH_VIRTIO_NET_1_02615 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 */2618 2614 std::list<BootNic> llBootNics; 2619 2615 for (ULONG uInstance = 0; uInstance < maxNetworkAdapters; ++uInstance) … … 2653 2649 break; 2654 2650 #endif /* VBOX_WITH_VIRTIO */ 2655 #ifdef VBOX_WITH_VIRTIO_NET_1_02656 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 */2661 2651 default: 2662 2652 AssertMsgFailed(("Invalid network adapter type '%d' for slot '%d'", adapterType, uInstance)); … … 2721 2711 2722 2712 /* 2723 * The virtual hardware type. PCNet supports t wotypes, E1000 three,2713 * The virtual hardware type. PCNet supports three types, E1000 three, 2724 2714 * but VirtIO only one. 2725 2715 */ … … 2745 2735 break; 2746 2736 case NetworkAdapterType_Virtio: 2747 break;2748 case NetworkAdapterType_Virtio_1_0:2749 2737 break; 2750 2738 case NetworkAdapterType_Null: AssertFailedBreak(); /* (compiler warnings) */
Note:
See TracChangeset
for help on using the changeset viewer.