Skip to content
Snippets Groups Projects
Select Git revision
  • e8c2d99f8277d68d28a9f99d16289712bc2aee7f
  • vme-testing default
  • ci-test
  • master
  • remoteproc
  • am625-sk-ov5640
  • pcal6534-upstreaming
  • lps22df-upstreaming
  • msc-upstreaming
  • imx8mp
  • iio/noa1305
  • vme-next
  • vme-next-4.14-rc4
  • v4.14-rc4
  • v4.14-rc3
  • v4.14-rc2
  • v4.14-rc1
  • v4.13
  • vme-next-4.13-rc7
  • v4.13-rc7
  • v4.13-rc6
  • v4.13-rc5
  • v4.13-rc4
  • v4.13-rc3
  • v4.13-rc2
  • v4.13-rc1
  • v4.12
  • v4.12-rc7
  • v4.12-rc6
  • v4.12-rc5
  • v4.12-rc4
  • v4.12-rc3
32 results

coproc.c

Blame
  • coproc.c 32.35 KiB
    /*
     * Copyright (C) 2012 - Virtual Open Systems and Columbia University
     * Authors: Rusty Russell <rusty@rustcorp.com.au>
     *          Christoffer Dall <c.dall@virtualopensystems.com>
     *
     * This program is free software; you can redistribute it and/or modify
     * it under the terms of the GNU General Public License, version 2, as
     * published by the Free Software Foundation.
     *
     * This program is distributed in the hope that it will be useful,
     * but WITHOUT ANY WARRANTY; without even the implied warranty of
     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     * GNU General Public License for more details.
     *
     * You should have received a copy of the GNU General Public License
     * along with this program; if not, write to the Free Software
     * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
     */
    #include <linux/mm.h>
    #include <linux/kvm_host.h>
    #include <linux/uaccess.h>
    #include <asm/kvm_arm.h>
    #include <asm/kvm_host.h>
    #include <asm/kvm_emulate.h>
    #include <asm/kvm_coproc.h>
    #include <asm/cacheflush.h>
    #include <asm/cputype.h>
    #include <trace/events/kvm.h>
    #include <asm/vfp.h>
    #include "../vfp/vfpinstr.h"
    
    #include "trace.h"
    #include "coproc.h"
    
    
    /******************************************************************************
     * Co-processor emulation
     *****************************************************************************/
    
    /* 3 bits per cache level, as per CLIDR, but non-existent caches always 0 */
    static u32 cache_levels;
    
    /* CSSELR values; used to index KVM_REG_ARM_DEMUX_ID_CCSIDR */
    #define CSSELR_MAX 12
    
    int kvm_handle_cp10_id(struct kvm_vcpu *vcpu, struct kvm_run *run)
    {
    	kvm_inject_undefined(vcpu);
    	return 1;
    }
    
    int kvm_handle_cp_0_13_access(struct kvm_vcpu *vcpu, struct kvm_run *run)
    {
    	/*
    	 * We can get here, if the host has been built without VFPv3 support,
    	 * but the guest attempted a floating point operation.
    	 */
    	kvm_inject_undefined(vcpu);
    	return 1;
    }
    
    int kvm_handle_cp14_load_store(struct kvm_vcpu *vcpu, struct kvm_run *run)
    {
    	kvm_inject_undefined(vcpu);
    	return 1;
    }
    
    int kvm_handle_cp14_access(struct kvm_vcpu *vcpu, struct kvm_run *run)
    {
    	kvm_inject_undefined(vcpu);