Changeset 107267 in vbox
- Timestamp:
- Dec 10, 2024 7:37:35 AM (7 weeks ago)
- Location:
- trunk
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/manual/en_US/dita/topics/nichardware.dita
r105941 r107267 3 3 <topic xml:lang="en-us" id="nichardware"> 4 4 <title>Virtual Networking Hardware</title> 5 5 6 6 <body> 7 7 <p>For each card, you can individually select what kind of <i>hardware</i> will be presented to the virtual machine. … … 25 25 <li> 26 26 <p>Paravirtualized network adapter (virtio-net) </p> 27 </li> 28 <li> 29 <p>Ethernet over USB network adapter (usbnet) </p> 27 30 </li> 28 31 </ul> … … 61 64 be explicitly enabled. </p> 62 65 </body> 63 66 64 67 </topic> -
trunk/doc/manual/en_US/man_VBoxManage-modifyvm.xml
r106061 r107267 311 311 <arg choice="plain">82545EM</arg> 312 312 <arg choice="plain">virtio</arg> 313 <arg choice="plain">usbnet</arg> 313 314 </group></arg> 314 315 <arg>--cable-connected<replaceable>N</replaceable>=<group choice="plain"> … … 1467 1468 </varlistentry> 1468 1469 <varlistentry> 1469 <term><option>--nic-type<replaceable>N</replaceable>=Am79C970A | Am79C973 | 82540EM | 82543GC | 82545EM | virtio </option></term>1470 <term><option>--nic-type<replaceable>N</replaceable>=Am79C970A | Am79C973 | 82540EM | 82543GC | 82545EM | virtio | usbnet</option></term> 1470 1471 <listitem><para> 1471 1472 Identifies the type of networking hardware that … … 1498 1499 <literal>virtio</literal> represents a paravirtualized 1499 1500 network adapter. 1501 </para></listitem> 1502 <listitem><para> 1503 <literal>usbnet</literal> represents an Ethernet over 1504 USB network adapter. 1500 1505 </para></listitem> 1501 1506 </itemizedlist></listitem> -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r106209 r107267 1952 1952 case NetworkAdapterType_ELNK2: pszNICType = "3C503"; break; 1953 1953 case NetworkAdapterType_ELNK1: pszNICType = "3C501"; break; 1954 case NetworkAdapterType_UsbNet: pszNICType = "usbnet"; break; 1954 1955 default: 1955 1956 AssertFailed(); -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r106384 r107267 1740 1740 CHECK_ERROR(nic, COMSETTER(AdapterType)(NetworkAdapterType_ELNK1)); 1741 1741 } 1742 else if (!RTStrICmp(ValueUnion.psz, "usbnet")) 1743 { 1744 CHECK_ERROR(nic, COMSETTER(AdapterType)(NetworkAdapterType_UsbNet)); 1745 } 1742 1746 else 1743 1747 { -
trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendCOM.cpp
r106061 r107267 432 432 case KNetworkAdapterType_ELNK2: return QApplication::translate("UICommon", "3Com EtherLink II (3C503)", "NetworkAdapterType"); 433 433 case KNetworkAdapterType_ELNK1: return QApplication::translate("UICommon", "3Com EtherLink (3C501)", "NetworkAdapterType"); 434 case KNetworkAdapterType_UsbNet: return QApplication::translate("UICommon", "Ethernet over USB (usbnet)", "NetworkAdapterType"); 434 435 default: AssertMsgFailed(("No text for %d", type)); break; 435 436 } -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r107239 r107267 22448 22448 <desc>3Com EtherLink network card (3C501/3C500).</desc> 22449 22449 </const> 22450 <const name="UsbNet" value="14"> 22451 <desc>Ethernet over USB device (usbnet).</desc> 22452 </const> 22450 22453 </enum> 22451 22454 -
trunk/src/VBox/Main/include/ConsoleImpl.h
r106960 r107267 877 877 int i_configNetworkCtrls(ComPtr<IMachine> pMachine, ComPtr<IPlatformProperties> pPlatformProperties, 878 878 ChipsetType_T enmChipset, BusAssignmentManager *pBusMgr, PCVMMR3VTABLE pVMM, PUVM pUVM, 879 PCFGMNODE pDevices, std::list<BootNic> &llBootNics);879 PCFGMNODE pDevices, PCFGMNODE pUsbDevices, std::list<BootNic> &llBootNics); 880 880 #if defined(VBOX_WITH_TPM) 881 881 int i_configTpm(ComPtr<ITrustedPlatformModule> pTpm, TpmType_T enmTpmType, PCFGMNODE pDevices, -
trunk/src/VBox/Main/src-all/PlatformPropertiesImpl.cpp
r107017 r107267 781 781 , NetworkAdapterType_Virtio 782 782 #endif 783 , NetworkAdapterType_UsbNet 783 784 }; 784 785 aSupportedNetworkAdapterTypes.assign(aNetworkAdapterTypes + 1 /* Don't include _Null */, … … 800 801 , NetworkAdapterType_Virtio 801 802 #endif 803 , NetworkAdapterType_UsbNet 802 804 }; 803 805 aSupportedNetworkAdapterTypes.assign(aNetworkAdapterTypes + 1 /* Don't include _Null */, -
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r107116 r107267 1698 1698 case NetworkAdapterType_ELNK1: 1699 1699 return "3c501"; 1700 case NetworkAdapterType_UsbNet: 1701 return "usbnet"; 1700 1702 default: 1701 1703 AssertFailed(); … … 4353 4355 4354 4356 PPDMIBASE pBase = NULL; 4355 int vrc = ptrVM.vtable()->pfnPDMR3QueryDeviceLun(ptrVM.rawUVM(), pszAdapterName, ulInstance, 0, &pBase); 4357 int vrc = VINF_SUCCESS; 4358 if (adapterType == NetworkAdapterType_UsbNet) 4359 vrc = ptrVM.vtable()->pfnPDMR3UsbQueryLun(ptrVM.rawUVM(), pszAdapterName, ulInstance, 0, &pBase); 4360 else 4361 vrc = ptrVM.vtable()->pfnPDMR3QueryDeviceLun(ptrVM.rawUVM(), pszAdapterName, ulInstance, 0, &pBase); 4362 if (RT_FAILURE(vrc)) 4356 4363 if (RT_SUCCESS(vrc)) 4357 4364 { -
trunk/src/VBox/Main/src-client/ConsoleImplConfigArmV8.cpp
r107168 r107267 919 919 std::list<BootNic> llBootNics; 920 920 vrc = i_configNetworkCtrls(pMachine, pPlatformProperties, chipsetType, pBusMgr, 921 pVMM, pUVM, pDevices, llBootNics);VRC();921 pVMM, pUVM, pDevices, pUsbDevices, llBootNics); VRC(); 922 922 923 923 /* -
trunk/src/VBox/Main/src-client/ConsoleImplConfigCommon.cpp
r106960 r107267 4646 4646 int Console::i_configNetworkCtrls(ComPtr<IMachine> pMachine, ComPtr<IPlatformProperties> pPlatformProperties, 4647 4647 ChipsetType_T enmChipset, BusAssignmentManager *pBusMgr, PCVMMR3VTABLE pVMM, PUVM pUVM, 4648 PCFGMNODE pDevices, std::list<BootNic> &llBootNics)4648 PCFGMNODE pDevices, PCFGMNODE pUsbDevices, std::list<BootNic> &llBootNics) 4649 4649 { 4650 4650 /* Comment out the following line to remove VMWare compatibility hack. */ … … 4676 4676 PCFGMNODE pDev3C501 = NULL; /* EtherLink-type devices */ 4677 4677 InsertConfigNode(pDevices, "3c501", &pDev3C501); 4678 PCFGMNODE pUsbNet = NULL; /* USB NCM Ethernet devices */ 4678 4679 4679 4680 for (ULONG uInstance = 0; uInstance < maxNetworkAdapters; ++uInstance) … … 4723 4724 pDev = pDev3C501; 4724 4725 break; 4726 case NetworkAdapterType_UsbNet: 4727 if (!pUsbNet) 4728 InsertConfigNode(pUsbDevices, "UsbNet", &pUsbNet); 4729 pDev = pUsbNet; 4730 pszAdapterName = "UsbNet"; 4731 break; 4725 4732 default: 4726 4733 AssertMsgFailed(("Invalid network adapter type '%d' for slot '%d'", adapterType, uInstance)); … … 4730 4737 4731 4738 InsertConfigNode(pDev, Utf8StrFmt("%u", uInstance).c_str(), &pInst); 4739 /* USB Ethernet is not attached to PCI bus, skip irrelevant bits. */ 4740 if (adapterType != NetworkAdapterType_UsbNet) 4741 { 4732 4742 InsertConfigInteger(pInst, "Trusted", 1); /* boolean */ 4733 4743 … … 4834 4844 case NetworkAdapterType_ELNK1: 4835 4845 break; 4846 case NetworkAdapterType_UsbNet: /* fall through */ 4836 4847 case NetworkAdapterType_Null: AssertFailedBreak(); /* (compiler warnings) */ 4837 4848 #ifdef VBOX_WITH_XPCOM_CPP_ENUM_HACK … … 4839 4850 #endif 4840 4851 } 4852 } 4853 else 4854 InsertConfigNode(pInst, "Config", &pCfg); 4841 4855 4842 4856 /* … … 4884 4898 InsertConfigInteger(pCfg, "CableConnected", fCableConnected ? 1 : 0); 4885 4899 4900 /* No line speed for USB Ethernet. */ 4901 if (adapterType != NetworkAdapterType_UsbNet) 4902 { 4886 4903 /* 4887 4904 * Line speed to report from custom drivers … … 4890 4907 hrc = networkAdapter->COMGETTER(LineSpeed)(&ulLineSpeed); H(); 4891 4908 InsertConfigInteger(pCfg, "LineSpeed", ulLineSpeed); 4909 } 4892 4910 4893 4911 /* -
trunk/src/VBox/Main/src-client/ConsoleImplConfigX86.cpp
r107139 r107267 1694 1694 std::list<BootNic> llBootNics; 1695 1695 vrc = i_configNetworkCtrls(pMachine, platformProperties, chipsetType, pBusMgr, 1696 pVMM, pUVM, pDevices, llBootNics);VRC();1696 pVMM, pUVM, pDevices, pUsbDevices, llBootNics); VRC(); 1697 1697 1698 1698 /* -
trunk/src/VBox/Main/src-server/NetworkAdapterImpl.cpp
r106061 r107267 268 268 case NetworkAdapterType_ELNK2: 269 269 case NetworkAdapterType_ELNK1: 270 case NetworkAdapterType_UsbNet: 270 271 break; 271 272 default: -
trunk/src/VBox/Main/xml/Settings.cpp
r106384 r107267 4691 4691 else if (strTemp == "3C501") 4692 4692 nic.type = NetworkAdapterType_ELNK1; 4693 else if (strTemp == "usbnet") 4694 nic.type = NetworkAdapterType_UsbNet; 4693 4695 else 4694 4696 throw ConfigFileError(this, pelmAdapter, N_("Invalid value '%s' in Adapter/@type attribute"), strTemp.c_str()); … … 8106 8108 case NetworkAdapterType_ELNK2: pcszType = "3C503"; break; 8107 8109 case NetworkAdapterType_ELNK1: pcszType = "3C501"; break; 8110 case NetworkAdapterType_UsbNet: pcszType = "usbnet"; break; 8108 8111 default: /*case NetworkAdapterType_Am79C970A:*/ pcszType = "Am79C970A"; break; 8109 8112 }
Note:
See TracChangeset
for help on using the changeset viewer.