summary refs log tree commit diff
path: root/plugin_proto/protos/plugin.proto
diff options
context:
space:
mode:
Diffstat (limited to 'plugin_proto/protos/plugin.proto')
-rw-r--r--plugin_proto/protos/plugin.proto40
1 files changed, 26 insertions, 14 deletions
diff --git a/plugin_proto/protos/plugin.proto b/plugin_proto/protos/plugin.proto
index 0e6f883..c67872c 100644
--- a/plugin_proto/protos/plugin.proto
+++ b/plugin_proto/protos/plugin.proto
@@ -75,6 +75,8 @@ message MainRequest {
     message CpuidRequest {
     }
 
+    message GetNetConfig {}
+
     message ReserveRange {
         AddressSpace space = 1;
         uint64 start = 2;
@@ -136,13 +138,14 @@ message MainRequest {
         CheckExtension check_extension = 5;
         CpuidRequest get_supported_cpuid = 6;
         CpuidRequest get_emulated_cpuid = 7;
-        ReserveRange reserve_range = 8;
-        SetIrq set_irq = 9;
-        SetIrqRouting set_irq_routing = 10;
-        SetIdentityMapAddr set_identity_map_addr = 11;
-        PauseVcpus pause_vcpus = 12;
-        GetVcpus get_vcpus = 13;
-        Start start = 14;
+        GetNetConfig get_net_config = 8;
+        ReserveRange reserve_range = 9;
+        SetIrq set_irq = 10;
+        SetIrqRouting set_irq_routing = 11;
+        SetIdentityMapAddr set_identity_map_addr = 12;
+        PauseVcpus pause_vcpus = 13;
+        GetVcpus get_vcpus = 14;
+        Start start = 15;
         // Method for a Memory type object for retrieving the dirty bitmap. Only valid if the memory
         // object was created with dirty_log set.
         MemoryDirtyLog dirty_log = 101;
@@ -164,6 +167,14 @@ message MainResponse {
     message CpuidResponse {
         repeated CpuidEntry entries = 1;
     }
+
+    // GetNetConfig messages also return a file descriptor for the tap device.
+    message GetNetConfig {
+        bytes host_mac_address = 1;
+        fixed32 host_ipv4_address = 2;
+        fixed32 netmask = 3;
+    }
+
     message ReserveRange {}
     message SetIrq {}
     message SetIrqRouting {}
@@ -189,13 +200,14 @@ message MainResponse {
         CheckExtension check_extension = 6;
         CpuidResponse get_supported_cpuid = 7;
         CpuidResponse get_emulated_cpuid = 8;
-        ReserveRange reserve_range = 9;
-        SetIrq set_irq = 10;
-        SetIrqRouting set_irq_routing = 11;
-        SetIdentityMapAddr set_identity_map_addr = 12;
-        PauseVcpus pause_vcpus = 13;
-        GetVcpus get_vcpus = 14;
-        Start start = 15;
+        GetNetConfig get_net_config = 9;
+        ReserveRange reserve_range = 10;
+        SetIrq set_irq = 11;
+        SetIrqRouting set_irq_routing = 12;
+        SetIdentityMapAddr set_identity_map_addr = 13;
+        PauseVcpus pause_vcpus = 14;
+        GetVcpus get_vcpus = 15;
+        Start start = 16;
         MemoryDirtyLog dirty_log = 101;
     }
 }