booke.c (f1e89028f020ca982bf51be6eaba0d462ba0f7fa) booke.c (7c11c0ccc7ba186433b2102cf3775ce6b2445453)
1/*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License, version 2, as
4 * published by the Free Software Foundation.
5 *
6 * This program is distributed in the hope that it will be useful,
7 * but WITHOUT ANY WARRANTY; without even the implied warranty of
8 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the

--- 820 unchanged lines hidden (view full) ---

829 */
830int kvmppc_handle_exit(struct kvm_run *run, struct kvm_vcpu *vcpu,
831 unsigned int exit_nr)
832{
833 int r = RESUME_HOST;
834 int s;
835 int idx;
836
1/*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License, version 2, as
4 * published by the Free Software Foundation.
5 *
6 * This program is distributed in the hope that it will be useful,
7 * but WITHOUT ANY WARRANTY; without even the implied warranty of
8 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the

--- 820 unchanged lines hidden (view full) ---

829 */
830int kvmppc_handle_exit(struct kvm_run *run, struct kvm_vcpu *vcpu,
831 unsigned int exit_nr)
832{
833 int r = RESUME_HOST;
834 int s;
835 int idx;
836
837#ifdef CONFIG_PPC64
838 WARN_ON(local_paca->irq_happened != 0);
839#endif
840
841 /*
842 * We enter with interrupts disabled in hardware, but
843 * we need to call hard_irq_disable anyway to ensure that
844 * the software state is kept in sync.
845 */
846 hard_irq_disable();
847
837 /* update before a new last_exit_type is rewritten */
838 kvmppc_update_timing_stats(vcpu);
839
840 /* restart interrupts if they were meant for the host */
841 kvmppc_restart_interrupt(vcpu, exit_nr);
842
843 local_irq_enable();
844

--- 889 unchanged lines hidden ---
848 /* update before a new last_exit_type is rewritten */
849 kvmppc_update_timing_stats(vcpu);
850
851 /* restart interrupts if they were meant for the host */
852 kvmppc_restart_interrupt(vcpu, exit_nr);
853
854 local_irq_enable();
855

--- 889 unchanged lines hidden ---