All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chenxu Wang <irakatz51@gmail.com>
To: kvmarm@lists.cs.columbia.edu
Subject: Execute "SMC" instruction in Guest OS
Date: Sat, 25 Sep 2021 14:45:44 +0800	[thread overview]
Message-ID: <CAFLP=uCvQ=xLaMmaSReWWYHC_EBf_k5tf1akp4GLOym9RVRCkw@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 557 bytes --]

Hi all,

I want the Guest OS to use the Arm-TF service in Host OS (It is the same as
using Trusted Application in OP-TEE). So I should provide some parameters
and call SMC instruction.

But it returns an "Undefined Instruction" in my Linux v4.9.51.
I find that KVM calls a " kvm_inject_undefined(vcpu);" when handling the
SMC instruction.

So, if I want the Guest OS to use the "Arm-TF service" or "TA", should I
simply change the kvm_inject_undefined() as "SMC #0", and carefully handle
the input parameters? What else should I do?

Sincerely,
Wang Chenxu

[-- Attachment #1.2: Type: text/html, Size: 751 bytes --]

[-- Attachment #2: Type: text/plain, Size: 151 bytes --]

_______________________________________________
kvmarm mailing list
kvmarm@lists.cs.columbia.edu
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm

             reply	other threads:[~2021-09-25  6:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-25  6:45 Chenxu Wang [this message]
2021-09-25 12:00 ` Execute "SMC" instruction in Guest OS Marc Zyngier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFLP=uCvQ=xLaMmaSReWWYHC_EBf_k5tf1akp4GLOym9RVRCkw@mail.gmail.com' \
    --to=irakatz51@gmail.com \
    --cc=kvmarm@lists.cs.columbia.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.