|
@@ -2307,7 +2307,7 @@ static const VMStateDescription vmxstate_vmxnet3_mcast_list = {
|
|
|
.minimum_version_id = 1,
|
|
|
.pre_load = vmxnet3_mcast_list_pre_load,
|
|
|
.needed = vmxnet3_mc_list_needed,
|
|
|
- .fields = (VMStateField[]) {
|
|
|
+ .fields = (const VMStateField[]) {
|
|
|
VMSTATE_VBUFFER_UINT32(mcast_list, VMXNET3State, 0, NULL,
|
|
|
mcast_list_buff_size),
|
|
|
VMSTATE_END_OF_LIST()
|
|
@@ -2317,7 +2317,7 @@ static const VMStateDescription vmxstate_vmxnet3_mcast_list = {
|
|
|
static const VMStateDescription vmstate_vmxnet3_ring = {
|
|
|
.name = "vmxnet3-ring",
|
|
|
.version_id = 0,
|
|
|
- .fields = (VMStateField[]) {
|
|
|
+ .fields = (const VMStateField[]) {
|
|
|
VMSTATE_UINT64(pa, Vmxnet3Ring),
|
|
|
VMSTATE_UINT32(size, Vmxnet3Ring),
|
|
|
VMSTATE_UINT32(cell_size, Vmxnet3Ring),
|
|
@@ -2330,7 +2330,7 @@ static const VMStateDescription vmstate_vmxnet3_ring = {
|
|
|
static const VMStateDescription vmstate_vmxnet3_tx_stats = {
|
|
|
.name = "vmxnet3-tx-stats",
|
|
|
.version_id = 0,
|
|
|
- .fields = (VMStateField[]) {
|
|
|
+ .fields = (const VMStateField[]) {
|
|
|
VMSTATE_UINT64(TSOPktsTxOK, struct UPT1_TxStats),
|
|
|
VMSTATE_UINT64(TSOBytesTxOK, struct UPT1_TxStats),
|
|
|
VMSTATE_UINT64(ucastPktsTxOK, struct UPT1_TxStats),
|
|
@@ -2348,7 +2348,7 @@ static const VMStateDescription vmstate_vmxnet3_tx_stats = {
|
|
|
static const VMStateDescription vmstate_vmxnet3_txq_descr = {
|
|
|
.name = "vmxnet3-txq-descr",
|
|
|
.version_id = 0,
|
|
|
- .fields = (VMStateField[]) {
|
|
|
+ .fields = (const VMStateField[]) {
|
|
|
VMSTATE_STRUCT(tx_ring, Vmxnet3TxqDescr, 0, vmstate_vmxnet3_ring,
|
|
|
Vmxnet3Ring),
|
|
|
VMSTATE_STRUCT(comp_ring, Vmxnet3TxqDescr, 0, vmstate_vmxnet3_ring,
|
|
@@ -2364,7 +2364,7 @@ static const VMStateDescription vmstate_vmxnet3_txq_descr = {
|
|
|
static const VMStateDescription vmstate_vmxnet3_rx_stats = {
|
|
|
.name = "vmxnet3-rx-stats",
|
|
|
.version_id = 0,
|
|
|
- .fields = (VMStateField[]) {
|
|
|
+ .fields = (const VMStateField[]) {
|
|
|
VMSTATE_UINT64(LROPktsRxOK, struct UPT1_RxStats),
|
|
|
VMSTATE_UINT64(LROBytesRxOK, struct UPT1_RxStats),
|
|
|
VMSTATE_UINT64(ucastPktsRxOK, struct UPT1_RxStats),
|
|
@@ -2382,7 +2382,7 @@ static const VMStateDescription vmstate_vmxnet3_rx_stats = {
|
|
|
static const VMStateDescription vmstate_vmxnet3_rxq_descr = {
|
|
|
.name = "vmxnet3-rxq-descr",
|
|
|
.version_id = 0,
|
|
|
- .fields = (VMStateField[]) {
|
|
|
+ .fields = (const VMStateField[]) {
|
|
|
VMSTATE_STRUCT_ARRAY(rx_ring, Vmxnet3RxqDescr,
|
|
|
VMXNET3_RX_RINGS_PER_QUEUE, 0,
|
|
|
vmstate_vmxnet3_ring, Vmxnet3Ring),
|
|
@@ -2418,7 +2418,7 @@ static int vmxnet3_post_load(void *opaque, int version_id)
|
|
|
static const VMStateDescription vmstate_vmxnet3_int_state = {
|
|
|
.name = "vmxnet3-int-state",
|
|
|
.version_id = 0,
|
|
|
- .fields = (VMStateField[]) {
|
|
|
+ .fields = (const VMStateField[]) {
|
|
|
VMSTATE_BOOL(is_masked, Vmxnet3IntState),
|
|
|
VMSTATE_BOOL(is_pending, Vmxnet3IntState),
|
|
|
VMSTATE_BOOL(is_asserted, Vmxnet3IntState),
|
|
@@ -2432,7 +2432,7 @@ static const VMStateDescription vmstate_vmxnet3 = {
|
|
|
.minimum_version_id = 1,
|
|
|
.pre_save = vmxnet3_pre_save,
|
|
|
.post_load = vmxnet3_post_load,
|
|
|
- .fields = (VMStateField[]) {
|
|
|
+ .fields = (const VMStateField[]) {
|
|
|
VMSTATE_PCI_DEVICE(parent_obj, VMXNET3State),
|
|
|
VMSTATE_MSIX(parent_obj, VMXNET3State),
|
|
|
VMSTATE_BOOL(rx_packets_compound, VMXNET3State),
|
|
@@ -2468,7 +2468,7 @@ static const VMStateDescription vmstate_vmxnet3 = {
|
|
|
|
|
|
VMSTATE_END_OF_LIST()
|
|
|
},
|
|
|
- .subsections = (const VMStateDescription*[]) {
|
|
|
+ .subsections = (const VMStateDescription * const []) {
|
|
|
&vmxstate_vmxnet3_mcast_list,
|
|
|
NULL
|
|
|
}
|