~ubuntu-branches/ubuntu/wily/qemu-kvm-spice/wily

« back to all changes in this revision

Viewing changes to target-ia64/machine.c

  • Committer: Bazaar Package Importer
  • Author(s): Serge Hallyn
  • Date: 2011-10-19 10:44:56 UTC
  • Revision ID: james.westby@ubuntu.com-20111019104456-xgvskumk3sxi97f4
Tags: upstream-0.15.0+noroms
ImportĀ upstreamĀ versionĀ 0.15.0+noroms

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "hw/hw.h"
 
2
#include "hw/boards.h"
 
3
 
 
4
#include "exec-all.h"
 
5
#include "qemu-kvm.h"
 
6
 
 
7
void kvm_arch_save_mpstate(CPUState *env);
 
8
void kvm_arch_load_mpstate(CPUState *env);
 
9
 
 
10
void cpu_save(QEMUFile *f, void *opaque)
 
11
{
 
12
    CPUState *env = opaque;
 
13
 
 
14
    if (kvm_enabled()) {
 
15
        kvm_arch_save_mpstate(env);
 
16
    }
 
17
}
 
18
 
 
19
int cpu_load(QEMUFile *f, void *opaque, int version_id)
 
20
{
 
21
    CPUState *env = opaque;
 
22
 
 
23
    if (kvm_enabled()) {
 
24
        kvm_arch_load_mpstate(env);
 
25
    }
 
26
    return 0;
 
27
}
 
28
 
 
29
extern QEMUMachine ipf_machine;
 
30
 
 
31
static void ipf_machine_init(void)
 
32
{
 
33
    qemu_register_machine(&ipf_machine);
 
34
}
 
35
 
 
36
machine_init(ipf_machine_init);