Changeset 82681 in vbox
- Timestamp:
- Jan 9, 2020 4:31:04 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VBoxPktDmp.h
r76585 r82681 50 50 51 51 52 DECLHIDDEN(void) vboxEthPacketDump(const char *pcszInstance, const char *pcszText, const uint8_t *pcPacket, uint32_t cb) 52 //DECLHIDDEN(void) 53 DECLINLINE(void) vboxEthPacketDump(const char *pcszInstance, const char *pcszText, const uint8_t *pcPacket, uint32_t cb) 53 54 { 54 55 #if defined(LOG_ENABLED) && !defined(VBOX_DEVICE_STRUCT_TESTCASE) -
trunk/src/VBox/Devices/Makefile.kmk
r82561 r82681 476 476 VBoxDD_SOURCES += \ 477 477 VirtIO/Virtio.cpp \ 478 VirtIO/Virtio_1_0.cpp \ 478 479 Network/DevVirtioNet.cpp 479 480 endif 481 482 if defined(VBOX_WITH_VIRTIO) && defined(VBOX_WITH_VIRTIO_NET_1_0) 483 VBoxDD_DEFS += VBOX_WITH_VIRTIO_NET_1_0 484 VBoxDD_SOURCES += \ 485 Network/DevVirtioNet_1_0.cpp 486 endif 480 487 481 488 ifdef VBOX_WITH_UDPTUNNEL … … 525 532 endif 526 533 527 if def VBOX_WITH_VIRTIO_SCSI534 if defined(VBOX_WITH_VIRTIO) && defined(VBOX_WITH_VIRTIO_SCSI) 528 535 VBoxDD_DEFS += VBOX_WITH_VIRTIO_SCSI 529 536 VBoxDD_SOURCES += \ 530 VirtIO/Virtio_1_0.cpp \531 537 Storage/DevVirtioSCSI.cpp 532 538 endif … … 958 964 VBoxDDRC_SOURCES += \ 959 965 VirtIO/Virtio.cpp \ 966 VirtIO/Virtio_1_0.cpp \ 960 967 Network/DevVirtioNet.cpp 968 endif 969 970 ifdef defined(VBOX_WITH_VIRTIO) && defined(VBOX_WITH_VIRTIO_NET_1_0) 971 VBoxDDRC_DEFS += VBOX_WITH_VIRTIO_NET_1_0 972 VBoxDDRC_SOURCES += \ 973 Network/DevVirtioNet_1_0.cpp 961 974 endif 962 975 … … 1146 1159 VBoxDDR0_SOURCES += \ 1147 1160 VirtIO/Virtio.cpp \ 1161 VirtIO/Virtio_1_0.cpp \ 1148 1162 Network/DevVirtioNet.cpp 1163 endif 1164 1165 if defined(VBOX_WITH_VIRTIO) && defined(VBOX_WITH_VIRTIO_NET_1_0) 1166 VBoxDDR0_DEFS += VBOX_WITH_VIRTIO_NET_1_0 1167 VBoxDDR0_SOURCES += \ 1168 Network/DevVirtioNet_1_0.cpp 1149 1169 endif 1150 1170 … … 1217 1237 endif 1218 1238 1219 if defined (VBOX_WITH_VIRTIO_SCSI)1239 if defined (VBOX_WITH_VIRTIO) && defined(VBOX_WITH_VIRTIO_SCSI) 1220 1240 VBoxDDR0_DEFS += VBOX_WITH_VIRTIO_SCSI 1221 1241 VBoxDDR0_SOURCES += \ 1222 VirtIO/Virtio_1_0.cpp \1223 1242 Storage/DevVirtioSCSI.cpp 1224 1243 endif -
trunk/src/VBox/Devices/Storage/DevVirtioSCSI.cpp
r82571 r82681 382 382 /** Flag whether device is present. */ 383 383 bool fPresent; 384 384 385 /** Media port interface. */ 385 386 PDMIMEDIAPORT IMediaPort; … … 412 413 VIRTIOCORE Virtio; 413 414 415 /** VirtIO Host SCSI device runtime configuration parameters */ 416 VIRTIOSCSI_CONFIG_T virtioScsiConfig; 417 414 418 bool fBootable; 415 419 bool afPadding0[3]; … … 442 446 volatile uint32_t cActiveReqs; 443 447 444 /** VirtIO Host SCSI device runtime configuration parameters */445 VIRTIOSCSI_CONFIG_T virtioScsiConfig;446 448 447 449 /** True if the guest/driver and VirtIO framework are in the ready state */ … … 493 495 /** Status Target: LEDs port interface. */ 494 496 PDMILEDPORTS ILeds; 495 496 /** Status Target: Partner of ILeds. */497 R3PTRTYPE(PPDMILEDCONNECTORS) pLedsConnector;498 497 499 498 /** IMediaExPort: Media ejection notification */ … … 2550 2549 pTarget->pDevIns = pDevIns; 2551 2550 pTarget->uTarget = uTarget; 2552 pTarget->led.u32Magic = PDMLED_MAGIC;2553 2551 2554 2552 pTarget->IBase.pfnQueryInterface = virtioScsiR3TargetQueryInterface; -
trunk/src/VBox/Devices/VirtIO/Virtio_1_0.cpp
r82560 r82681 1722 1722 AssertReturn(pVirtioCC->pfnStatusChanged, VERR_INVALID_POINTER); 1723 1723 AssertReturn(pVirtioCC->pfnQueueNotified, VERR_INVALID_POINTER); 1724 AssertReturn(pVirtioCC->pfnDevCapRead, VERR_INVALID_POINTER);1725 AssertReturn(pVirtioCC->pfnDevCapWrite, VERR_INVALID_POINTER);1724 // AssertReturn(pVirtioCC->pfnDevCapRead, VERR_INVALID_POINTER); 1725 // AssertReturn(pVirtioCC->pfnDevCapWrite, VERR_INVALID_POINTER); 1726 1726 1727 1727 #if 0 /* Until pdmR3DvHlp_PCISetIrq() impl is fixed and Assert that limits vec to 0 is removed */ -
trunk/src/VBox/Devices/build/VBoxDD.cpp
r80531 r82681 117 117 return rc; 118 118 #endif 119 #ifdef VBOX_WITH_VIRTIO_NET_1_0 120 rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceVirtioNet_1_0); 121 if (RT_FAILURE(rc)) 122 return rc; 123 #endif 119 124 #ifdef VBOX_WITH_INIP 120 125 rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceINIP); -
trunk/src/VBox/Devices/build/VBoxDD.h
r78799 r82681 57 57 extern const PDMDEVREG g_DeviceVirtioNet; 58 58 #endif 59 #ifdef VBOX_WITH_VIRTIO_NET_1_0 60 extern const PDMDEVREG g_DeviceVirtioNet_1_0; 61 #endif 59 62 #ifdef VBOX_WITH_INIP 60 63 extern const PDMDEVREG g_DeviceINIP; -
trunk/src/VBox/Devices/build/VBoxDDR0.cpp
r81512 r82681 60 60 #ifdef VBOX_WITH_VIRTIO 61 61 &g_DeviceVirtioNet, 62 #endif 63 #ifdef VBOX_WITH_VIRTIO_NET_1_0 64 &g_DeviceVirtioNet_1_0, 62 65 #endif 63 66 &g_DeviceICHAC97, -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r81964 r82681 1457 1457 #ifdef VBOX_WITH_VIRTIO 1458 1458 case NetworkAdapterType_Virtio: pszNICType = "virtio"; break; 1459 1460 #endif 1461 #ifdef VBOX_WITH_VIRTIO_NET_1_0 1462 case NetworkAdapterType_Virtio_1_0: pszNICType = "virtio_1.0"; break; 1459 1463 #endif 1460 1464 default: AssertFailed(); pszNICType = "unknown"; break; -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r82442 r82681 1498 1498 } 1499 1499 #endif /* VBOX_WITH_VIRTIO */ 1500 #ifdef VBOX_WITH_VIRTIO_NET_1_0 1501 else if (!RTStrICmp(ValueUnion.psz, "virtio_1.0")) 1502 { 1503 CHECK_ERROR(nic, COMSETTER(AdapterType)(NetworkAdapterType_Virtio_1_0)); 1504 } 1505 #endif /* VBOX_WITH_VIRTIO_NET_1_0 */ 1500 1506 else 1501 1507 { -
trunk/src/VBox/Frontends/VBoxShell/vboxshell.py
r81964 r82681 1657 1657 elif (natype == ctx['global'].constants.NetworkAdapterType_Virtio): 1658 1658 return "virtio" 1659 elif (natype == ctx['global'].constants.NetworkAdapterType_Virtio_1_0): 1660 return "virtio_1.0" 1659 1661 elif (natype == ctx['global'].constants.NetworkAdapterType_Null): 1660 1662 return None -
trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendCOM.cpp
r82605 r82681 365 365 case KNetworkAdapterType_Virtio: return QApplication::translate("UICommon", "Paravirtualized Network (virtio-net)", "NetworkAdapterType"); 366 366 #endif /* VBOX_WITH_VIRTIO */ 367 case KNetworkAdapterType_Virtio_1_0: return QApplication::translate("UICommon", "Paravirtualized Network (virtio-net-1-dot-0)", "NetworkAdapterType"); 367 368 case KNetworkAdapterType_Am79C960: return QApplication::translate("UICommon", "PCnet-ISA (Am79C960)", "NetworkAdapterType"); 368 369 default: AssertMsgFailed(("No text for %d", type)); break; -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsNetwork.cpp
r82568 r82681 696 696 ++iAdapterTypeIndex; 697 697 } 698 #ifdef VBOX_WITH_VIRTIO_1_0 699 m_pAdapterTypeCombo->insertItem(iAdapterTypeIndex, gpConverter->toString(KNetworkAdapterType_Virtio_1_0)); 700 m_pAdapterTypeCombo->setItemData(iAdapterTypeIndex, KNetworkAdapterType_Virtio_1_0); 701 m_pAdapterTypeCombo->setItemData(iAdapterTypeIndex, m_pAdapterTypeCombo->itemText(iAdapterTypeIndex), Qt::ToolTipRole); 702 ++iAdapterTypeIndex; 703 #endif /* VBOX_WITH_VIRTIO_1_0 */ 698 704 699 705 /* Choose requested adapter type: */ -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIApplianceEditorWidget.cpp
r82570 r82681 841 841 } 842 842 /* Pass editor back: */ 843 #ifdef VBOX_WITH_VIRTIO_NET_1_0 844 pComboBox->addItem(gpConverter->toString(KNetworkAdapterType_Virtio_1_0), KNetworkAdapterType_Virtio_1_0); 845 #endif /* VBOX_WITH_VIRTIO */ 843 846 pEditor = pComboBox; 844 847 break; -
trunk/src/VBox/Main/Makefile.kmk
r82502 r82681 145 145 ifdef VBOX_WITH_VIRTIO 146 146 VBOX_MAIN_DEFS += VBOX_WITH_VIRTIO 147 endif 148 ifdef VBOX_WITH_VIRTIO_1_0 149 VBOX_MAIN_DEFS += VBOX_WITH_VIRTIO_1_0 150 endif 151 ifdef VBOX_WITH_VIRTIO_NET_1_0 152 VBOX_MAIN_DEFS += VBOX_WITH_VIRTIO_NET_1_0 147 153 endif 148 154 ifdef VBOX_WITH_VMSVGA -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r82619 r82681 19553 19553 <desc>AMD PCnet-ISA/NE2100 network card (Am79C960).</desc> 19554 19554 </const> 19555 <const name="Virtio_1_0" value="8"> 19556 <desc>Virtio 1.0 network device.</desc> 19557 </const> 19555 19558 </enum> 19556 19559 -
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r82502 r82681 1525 1525 return "virtio-net"; 1526 1526 #endif 1527 #ifdef VBOX_WITH_VIRTIO_NET_1_0 1528 case NetworkAdapterType_Virtio_1_0: 1529 return "virtio-net-1-dot-0"; 1530 #endif 1527 1531 default: 1528 1532 AssertFailed(); … … 4215 4219 notifyNatDnsChange(ptrVM.rawUVM(), "e1000", ulInstanceMax); 4216 4220 notifyNatDnsChange(ptrVM.rawUVM(), "virtio-net", ulInstanceMax); 4221 notifyNatDnsChange(ptrVM.rawUVM(), "virtio-net-1-dot-0", ulInstanceMax); 4217 4222 } 4218 4223 } … … 4893 4898 AssertMsg( ( !strcmp(pszDevice, "pcnet") 4894 4899 || !strcmp(pszDevice, "e1000") 4895 || !strcmp(pszDevice, "virtio-net")) 4900 || !strcmp(pszDevice, "virtio-net") 4901 || !strcmp(pszDevice, "virtio-net-1-dot-0")) 4896 4902 && uLun == 0 4897 4903 && uInstance < maxNetworkAdapters, -
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r82502 r82681 2481 2481 InsertConfigNode(pDevices, "virtio-net", &pDevVirtioNet); 2482 2482 #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 */ 2483 2487 std::list<BootNic> llBootNics; 2484 2488 for (ULONG uInstance = 0; uInstance < maxNetworkAdapters; ++uInstance) … … 2518 2522 break; 2519 2523 #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 */ 2520 2530 default: 2521 2531 AssertMsgFailed(("Invalid network adapter type '%d' for slot '%d'", adapterType, uInstance)); … … 2604 2614 break; 2605 2615 case NetworkAdapterType_Virtio: 2616 break; 2617 case NetworkAdapterType_Virtio_1_0: 2606 2618 break; 2607 2619 case NetworkAdapterType_Null: AssertFailedBreak(); /* (compiler warnings) */ -
trunk/src/VBox/Main/src-server/NetworkAdapterImpl.cpp
r81603 r82681 245 245 #ifdef VBOX_WITH_VIRTIO 246 246 case NetworkAdapterType_Virtio: 247 #endif 248 #ifdef VBOX_WITH_VIRTIO_NET_1_0 249 case NetworkAdapterType_Virtio_1_0: 247 250 #endif /* VBOX_WITH_VIRTIO */ 248 251 break; -
trunk/src/VBox/Main/src-server/SystemPropertiesImpl.cpp
r82569 r82681 1453 1453 NetworkAdapterType_I82545EM, 1454 1454 NetworkAdapterType_Virtio, 1455 NetworkAdapterType_Virtio_1_0, 1456 NetworkAdapterType_Am79C960, 1455 1457 }; 1456 1458 aSupportedNetworkAdapterTypes.assign(aNetworkAdapterTypes, -
trunk/src/VBox/Main/xml/Settings.cpp
r81964 r82681 3913 3913 else if (strTemp == "virtio") 3914 3914 nic.type = NetworkAdapterType_Virtio; 3915 else if (strTemp == "virtio_1.0") 3916 nic.type = NetworkAdapterType_Virtio_1_0; 3915 3917 else 3916 3918 throw ConfigFileError(this, pelmAdapter, N_("Invalid value '%s' in Adapter/@type attribute"), strTemp.c_str()); … … 6523 6525 case NetworkAdapterType_I82545EM: pcszType = "82545EM"; break; 6524 6526 case NetworkAdapterType_Virtio: pcszType = "virtio"; break; 6527 case NetworkAdapterType_Virtio_1_0: pcszType = "virtio_1.0"; break; 6525 6528 default: /*case NetworkAdapterType_Am79C970A:*/ pcszType = "Am79C970A"; break; 6526 6529 }
Note:
See TracChangeset
for help on using the changeset viewer.