diff options
author | Xiantao Zhang <xiantao.zhang@intel.com> | 2009-01-20 22:21:27 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-03-24 05:03:06 -0400 |
commit | 7d656bd996b68737d5d07643bc57311059038d67 (patch) | |
tree | 674c9d3910547c1185785a7c827e54e2425f9fd8 /arch/ia64/kvm/process.c | |
parent | 4b7bb626e3133eab131328a0770864b322c1bfe6 (diff) |
KVM: ia64: Implement some pal calls needed for windows 2008
For windows 2008, it needs more pal calls to implement for booting.
In addition, also changes the name of set_{sal, pal}_call_result to
get_{sal,pal}_call_result for readability.
Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/ia64/kvm/process.c')
-rw-r--r-- | arch/ia64/kvm/process.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/ia64/kvm/process.c b/arch/ia64/kvm/process.c index 0e727ce0d55c..b1dc80952d91 100644 --- a/arch/ia64/kvm/process.c +++ b/arch/ia64/kvm/process.c | |||
@@ -607,7 +607,7 @@ static void set_pal_call_data(struct kvm_vcpu *vcpu) | |||
607 | p->exit_reason = EXIT_REASON_PAL_CALL; | 607 | p->exit_reason = EXIT_REASON_PAL_CALL; |
608 | } | 608 | } |
609 | 609 | ||
610 | static void set_pal_call_result(struct kvm_vcpu *vcpu) | 610 | static void get_pal_call_result(struct kvm_vcpu *vcpu) |
611 | { | 611 | { |
612 | struct exit_ctl_data *p = &vcpu->arch.exit_data; | 612 | struct exit_ctl_data *p = &vcpu->arch.exit_data; |
613 | 613 | ||
@@ -635,7 +635,7 @@ static void set_sal_call_data(struct kvm_vcpu *vcpu) | |||
635 | p->exit_reason = EXIT_REASON_SAL_CALL; | 635 | p->exit_reason = EXIT_REASON_SAL_CALL; |
636 | } | 636 | } |
637 | 637 | ||
638 | static void set_sal_call_result(struct kvm_vcpu *vcpu) | 638 | static void get_sal_call_result(struct kvm_vcpu *vcpu) |
639 | { | 639 | { |
640 | struct exit_ctl_data *p = &vcpu->arch.exit_data; | 640 | struct exit_ctl_data *p = &vcpu->arch.exit_data; |
641 | 641 | ||
@@ -658,13 +658,13 @@ void kvm_ia64_handle_break(unsigned long ifa, struct kvm_pt_regs *regs, | |||
658 | if (iim == DOMN_PAL_REQUEST) { | 658 | if (iim == DOMN_PAL_REQUEST) { |
659 | set_pal_call_data(v); | 659 | set_pal_call_data(v); |
660 | vmm_transition(v); | 660 | vmm_transition(v); |
661 | set_pal_call_result(v); | 661 | get_pal_call_result(v); |
662 | vcpu_increment_iip(v); | 662 | vcpu_increment_iip(v); |
663 | return; | 663 | return; |
664 | } else if (iim == DOMN_SAL_REQUEST) { | 664 | } else if (iim == DOMN_SAL_REQUEST) { |
665 | set_sal_call_data(v); | 665 | set_sal_call_data(v); |
666 | vmm_transition(v); | 666 | vmm_transition(v); |
667 | set_sal_call_result(v); | 667 | get_sal_call_result(v); |
668 | vcpu_increment_iip(v); | 668 | vcpu_increment_iip(v); |
669 | return; | 669 | return; |
670 | } | 670 | } |