1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
// automatically generated by stateify.
//go:build amd64 && amd64 && amd64
// +build amd64,amd64,amd64
package arch
import (
"context"
"gvisor.dev/gvisor/pkg/state"
)
func (c *Context64) StateTypeName() string {
return "pkg/sentry/arch.Context64"
}
func (c *Context64) StateFields() []string {
return []string{
"State",
}
}
func (c *Context64) beforeSave() {}
// +checklocksignore
func (c *Context64) StateSave(stateSinkObject state.Sink) {
c.beforeSave()
stateSinkObject.Save(0, &c.State)
}
func (c *Context64) afterLoad(context.Context) {}
// +checklocksignore
func (c *Context64) StateLoad(ctx context.Context, stateSourceObject state.Source) {
stateSourceObject.Load(0, &c.State)
}
func init() {
state.Register((*Context64)(nil))
}
|