Login

Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.

ARM Community: ARM trustZone - ARM Community

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

ARM trustZone TrustZone queries Rate Topic: -----

#1 User is offline   Josua 

  • Member
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 21-June 12

Posted 21 June 2012 - 02:47 PM

I am a student from kuwait and very much interested in trusted computing. I have few doubts in basic understanding of trusted computing.
1) What was the need for Trustzone when TPM itself could perform trusted computing ? Is it just because of space contraints due to extra chip?2) Why cannot the secure OS in trustzone be modified? is it because it is smaller trust base one can make it bug free?3) What is the basic difference between Intel TXT and Trustzone ?
I tried searching in internet about Intel TXT and I am totally confused. Thanks a lot in advance for your help.
0

#2 User is offline   isogen74 

  • Super Contributor
  • PipPipPipPip
  • Group: Members
  • Posts: 1098
  • Joined: 20-March 07

Posted 22 June 2012 - 08:40 AM

1) A TPM has no compute capability, it is simply a secure storage device with attestation capability, but it relies on the outside (untrusted) system to do most of the calculations.

2) Why cannot the secure OS in trustzone be modified?


I'm not sure what you are asking here. As a technology from ARM TrustZone provides hardware building blocks to build a secure environment. Any system developer can write their own secure OS to run in this environment. In a running system then yes, you want to prevent modification (security risk), and as always smaller is better (less bugs -> less security risk).
When optimizing software, consider that the quickest code to run is the bit you removed from the call path.
0

#3 User is offline   Josua 

  • Member
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 21-June 12

Posted 25 June 2012 - 08:29 AM

Thanks for the reply. It was really helpful. I have one more fundamental question. Can I assume that both OS run concurrently? or the processor can only be in one mode at a time ( either secure or non-secure)?
0

#4 User is offline   ttfn 

  • Super Contributor
  • PipPipPipPip
  • Group: Members
  • Posts: 576
  • Joined: 29-September 06

Posted 25 June 2012 - 10:00 AM

At any one time the core is either in the secure world or the normal world. So the OSs do not truly run concurrently.
0

#5 User is offline   isogen74 

  • Super Contributor
  • PipPipPipPip
  • Group: Members
  • Posts: 1098
  • Joined: 20-March 07

Posted 25 June 2012 - 12:04 PM

Worth noting that in an SMP system with multiple physical cores you could have one core in "secure" and a second in "non-secure", so you can get some parallel processing working. A single core is only ever in one world at a time though ...

Iso
When optimizing software, consider that the quickest code to run is the bit you removed from the call path.
0

#6 User is offline   Josua 

  • Member
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 21-June 12

Posted 27 June 2012 - 07:06 PM

So i can think of TrustZone as separate OS rite? ..Whenever normal OS wants a secure action to be taken , it reboots or calls the other secure OS and does the action securely. So TrustZone is like an extra OS in which one can perform safely all sensitive operations !
0

#7 User is offline   GopuSierra 

  • Member
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 21-March 12

Posted 28 June 2012 - 12:48 AM

瀏覽文章引用框(Josua @ 27 June 2012 - 07:06 PM)

So i can think of TrustZone as separate OS rite? ..Whenever normal OS wants a secure action to be taken , it reboots or calls the other secure OS and does the action securely. So TrustZone is like an extra OS in which one can perform safely all sensitive operations !


Please check www.openvirtualization.org for trustzone implementation.
0

#8 User is offline   Josua 

  • Member
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 21-June 12

Posted 28 June 2012 - 07:46 PM

This website that GopuSierra posted says" To improve security, these ARM processors can run a secure operating system (secure OS) and a normal operating system (normal OS) at the same time from a single core "...But people here in forum say both OS do not run concurrently..Who is right? PLEASE DO NOT CONFUSE ME MORE ..
0

#9 User is offline   GopuSierra 

  • Member
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 21-March 12

Posted 29 June 2012 - 12:33 AM

瀏覽文章引用框(Josua @ 28 June 2012 - 07:46 PM)

This website that GopuSierra posted says" To improve security, these ARM processors can run a secure operating system (secure OS) and a normal operating system (normal OS) at the same time from a single core "...But people here in forum say both OS do not run concurrently..Who is right? PLEASE DO NOT CONFUSE ME MORE ..


It will not run concurrently.
0

#10 User is offline   Coco 

  • Member
  • Pip
  • Group: Members.
  • Posts: 6
  • Joined: 23-November 10

Posted 29 June 2012 - 09:48 AM

瀏覽文章引用框(GopuSierra @ 29 June 2012 - 12:33 AM)

It will not run concurrently.


Well, it depends what you mean by "concurrently". Two processes inside an OS appear to run concurrently, but often they are time-division-multiplexed and only one is running at any one time. That is, there are context switches between the processes such that both get some processing time. Sometimes the context switches are cooperative (one process yields to another), and sometimes the context switch is in response to an interrupt.

It can be the same in TrustZone. Each world can choose to pass control to the other (the SMC instruction), or an interrupt can cause the switch. How the two OSes are actually set up using TrustZone will depend on the system design.

So, a given processor is only running one instruction at a time (not concurrent), and, at a lower time resolution, both OSes are running at the same time and may be getting a percentage of the processing time (concurrent).

I suggest reading this http://infocenter.ar...492c/index.html to understand these kinds of issues.
1

#11 User is offline   Josua 

  • Member
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 21-June 12

Posted 08 July 2012 - 05:56 AM

Thanks a lot.But the more documents I read , I am more unclear on fundamental concept . If anyone can please explain what is 'virtualisation' and what does ARM mean by saying they provide a hardware enforced virtualisation ?

So far, What I understood is only one processor which has two OSes ( just like Linux + Windows) , but one OS has previlage to secure regions and written bug-free so we name it TrustZone. Ofcourse to enable this privilage we modify the hardware of SoC and also give a mechanism that this secure OS cannot be re-written.
0

#12 User is offline   isogen74 

  • Super Contributor
  • PipPipPipPip
  • Group: Members
  • Posts: 1098
  • Joined: 20-March 07

Posted 08 July 2012 - 01:23 PM

Quote

anyone can please explain what is 'virtualisation'

http://en.wikipedia..../Virtualization

Quote

what does ARM mean by saying they provide a hardware enforced virtualisation ?



The split between the resources of the two "virtual" systems is enforced by hardware, not software.
When optimizing software, consider that the quickest code to run is the bit you removed from the call path.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic