Source
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) 2010 - 2015 UNISYS CORPORATION
* All rights reserved.
*/
/* {2B3C2D10-7EF5-4ad8-B966-3448B7386B3D} */
/*
* Must increment this whenever you insert or delete fields within this channel
* struct. Also increment whenever you change the meaning of fields within this
* channel struct so as to break pre-existing software. Note that you can
* usually add fields to the END of the channel struct withOUT needing to
* increment this.
*/
/* Defines for various channel queues */
/* Max num of messages stored during IOVM creation to be reused after crash */
/*
* struct visor_segment_state
* @enabled: May enter other states.
* @active: Assigned to active partition.
* @alive: Configure message sent to service/server.
* @revoked: Similar to partition state ShuttingDown.
* @allocated: Memory (device/port number) has been selected by Command.
* @known: Has been introduced to the service/guest partition.
* @ready: Service/Guest partition has responded to introduction.
* @operating: Resource is configured and operating.
* @reserved: Natural alignment.
*
* Note: Don't use high bit unless we need to switch to ushort which is
* non-compliant.
*/
struct visor_segment_state {
u16 enabled:1;
u16 active:1;
u16 alive:1;
u16 revoked:1;
u16 allocated:1;
u16 known:1;
u16 ready:1;
u16 operating:1;
u16 reserved:8;
} __packed;