GB2460280A - Using a memory-abort register in the emulation of memory access operations - Google Patents

Using a memory-abort register in the emulation of memory access operations Download PDF

Info

Publication number
GB2460280A
GB2460280A GB0809492A GB0809492A GB2460280A GB 2460280 A GB2460280 A GB 2460280A GB 0809492 A GB0809492 A GB 0809492A GB 0809492 A GB0809492 A GB 0809492A GB 2460280 A GB2460280 A GB 2460280A
Authority
GB
United Kingdom
Prior art keywords
memory
abort
data
instruction
access operation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
GB0809492A
Other versions
GB0809492D0 (en
Inventor
Stuart David Biles
David Hennah Mansell
Richard Roy Grisenthwaite
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ARM Ltd
Original Assignee
ARM Ltd
Advanced Risc Machines Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ARM Ltd, Advanced Risc Machines Ltd filed Critical ARM Ltd
Priority to GB0809492A priority Critical patent/GB2460280A/en
Publication of GB0809492D0 publication Critical patent/GB0809492D0/en
Priority to PCT/GB2009/000771 priority patent/WO2009141574A1/en
Priority to JP2011510036A priority patent/JP5318197B2/en
Priority to CN200980118763.3A priority patent/CN102037448B/en
Priority to AT09750052T priority patent/ATE523842T1/en
Priority to KR1020107028671A priority patent/KR101533224B1/en
Priority to MYPI20103029 priority patent/MY152358A/en
Priority to EP09750052A priority patent/EP2281237B1/en
Priority to TW098113237A priority patent/TWI437428B/en
Priority to US12/453,806 priority patent/US8180980B2/en
Publication of GB2460280A publication Critical patent/GB2460280A/en
Priority to IL206725A priority patent/IL206725A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45583Memory management, e.g. access or allocation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Executing Machine-Instructions (AREA)
  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)
  • Memory System Of A Hierarchy Structure (AREA)
  • Advance Control (AREA)
  • Storage Device Security (AREA)

Abstract

A data processing apparatus (Fig. 2: 12) is provided with a memory management unit (Fig. 2: 24) which triggers memory aborts. When a memory abort occurs e.g. when a virtual operation attempts to access a real device, data characterising the memory abort is written to a fault status register (Fig. 2: 28) (memory-abort register). The data characterising the memory abort includes data identifying a register number associated with the memory access which gave rise to the memory abort. This register identifying data is used to emulate the action of the memory access instruction without having to read the program instruction lead to the memory abort. This is useful in providing virtualization support for a virtual data processing apparatus and provides a more hardware efficient method of handling memory access requests.

Description

Intellectual Property Office mm For Creetity and Innovation Application No. GB0809492.2 RTM Date:16 September 2008 The following terms are registered trade marks and should be read as such wherever they occur in this document: JAVA, ARM UK Intellectual Property Office is an operating name of The Patent Office
DEVICE EMULATION SUPPORT WITHIN A HOST DATA PROCESSING
APPARATUS
This invention relates to data processing systems. More particularly, this invention relates to data processing systems supporting virtualisation of a data processing apparatus.
It is known to provide host data processing systems which support the virtualisation of a data processing system. The scale of the differences between the host data processing system and the virtual data processing system can vary considerably. In some examples the virtual data processing system may be a slightly different version or implementation of a data processing apparatus having the same basic processor architecture as the host data processing apparatus. In another example, the virtual data processing apparatus may be completely different from the host data processing apparatus, e.g. a stack based Java virtual machine emulated by a RISC or CISC host data processing apparatus.
Within this field of virtualisation, it is often necessary to support virtual devices to give the illusion of a real hardware device to a guest operating system or program. These virtual devices are really provided by hypervisor software. A convenient way to support devices (both real and virtual) is that they are memory mapped and accesses to the devices take the form of loads or stores to the memory mapped addresses. When supporting virtual devices of the virtual data processing apparatus it is necessary to route accesses to virtual devices at these memory mapped addresses to the hypervisor software for handling. A known technique is to trap accesses to these memory locations by setting the corresponding memory region containing the memory mapped virtual devices to "Invalid" or "No access" and to arrange for the resulting exceptions to be routed to the hypervisor program.
A problem with this approach is the need to decode the instruction which was seeking to access the virtual device in order to emulate that access. A memory management unit (MMU) that will typically trigger the exception will also normally provide (or trigger the provision of) the address and read/write information associated with the access which is subject to the exception. Within a real environment this is normally sufficient to provide for efficient processing of the exception associated with the memory access.
Viewed from one aspect the present invention provides a method of supporting virtualisation of a virtual data processing apparatus with a host data processing apparatus, said method comprising the steps of: executing a stream of program instructions with said host data processing apparatus to emulate processing by said virtual data processing apparatus; detecting with detection circuitry an attempted execution of a memory accessing instruction seeking to perform a memory access operation upon a memory address corresponding to a memory mapped device of said virtual data processing apparatus; writing with memory-abort circuitry to a memory-abort register memory-abort data characterising said memory access operation, said memory-abort data including data indicative of one or more registers accessed with said memory access operation; and triggering a memory-abort exception by execution of memory-abort handling program instructions by said host data processing apparatus to: (i) read said memory-abort data from said memory-abort register; (ii) emulate said memory access operation using said memory-abort data including said data indicative of one or more registers accessed with said memory access operation; and (iii) return to execution of said stream of program instructions.
The present technique recognises that when supporting virtualisation of a virtual data processing apparatus additional information concerning the memory access giving rise to the abort is necessary in order that the memory access can be emulated and that the obtaining of this additional information is disadvantageously slow. In particular, with known mechanisms the instruction giving rise to the memory abort needs to be identified and decoded to identify which CPU register is being loaded or stored in order that the emulation can proceed. This identification typically has many time consuming steps. Firstly, the instruction itself needs to be located; the address of the instruction provided when the abort occurs is often a virtual address in the guest operating system address space, which must be translated (normally via two or three translation steps) into a virtual address in the hypervisor address space which can then be read. Once the address of the aborting instruction has been determined, the instruction can be read. On a system with separate data and instruction caches (Harvard), this will usually cause a data miss and require many cycles for the data miss to be satisfied. The instruction then needs to be decoded. On many data processing apparatuses the instructions can access memory in a variety of different ways and there can be a considerable degree of complexity associated with decoding the instruction which has been received in order to identify the source/destination register and other characteristics of the memory access such that emulation can proceed.
The present technique both recognises and overcomes these difficulties in a hardware efficient manner. In a majority of cases the information needed for emulation of the access to the virtual device is an identification of one of more registers accessed with the memory access operation (whether they be source registers or destination registers) and the present technique extends the memory-abort circuitry to write this data into a memory-abort register. In practice, this register identifying data will normally already be present as it is needed for the normal operation of the memory access instruction and the additional mechanism required marshals this information toward a memory-abort register where it is stored upon the occurrence of the access to the memory mapped device of the virtual data processing apparatus.
Abort handling program instructions can then directly read this register identifying information from the memory-abort register and use it to emulate the memory access operation at relatively high speed and without requiring the reading of the instruction which gave rise to that memory access in order that the register(s) can be identified.
The technique thus provides hardware support for the virtualisation of a virtual data processing apparatus and a technique of using this hardware support to render the virtualisation of virtual devices more efficient.
It will be appreciated that the memory abort data can contain additional information beyond the data indicative of one or more registers accessed with the memory access operation. The data indicative of the one or more registers will allow most common case virtual device accesses to be readily supported and extension of the data stored within the memory-abort register will extend the types of accesses supported. The memory-abort data can be extended to include data indicative of a size of a data word subject to the memory access operation, data concerning whether or not the operation is a read operation or a write operation, data indicative of a source register or a destination register, data indicative of whether the data word is subject to sign extension as part of the memory access arid data indicative of an instruction size of the memory accessing instruction.
The memory-abort data can additionally, in some embodiments, include validity data indicative of whether or not the memory-abort data is valid for the memory access instruction that triggered the memory abort. If the memory-abort data is not valid, then the memory-abort handling program instructions can determine this from the validity data and revert to reading the memory access instruction which gave rise to the memory-abort from the memory and determining memory accessing instruction parameters directly from the instruction so read. In this way a hardware designer can choose which instructions are simple enough to provide the syndrome data for, and those which are more complex and are not worth the hardware overhead to add support for in hardware.
Some memory accessing instructions utilise a base register storing an address value indicative of a memory address to be accessed and the instruction specifies an update that is to be performed upon that value associated with execution of the memory access instruction (e.g. pre or post indexing). The validity data can be used in conjunction with such instructions to indicate that the data characterising the memory access is not valid for such instructions which update a base register value and in these circumstances the instruction itself can be read from memory and decoded in order to determine the nature of the updating to be performed.
Another class of instruction for which the validity data can be used to indicate that the data characterising the memory access is not valid are load/store multiple instructions such as those provided by ARM processors. It is expected that these types of instruction would rarely be used to access devices, and as such the considerable hardware overhead needed to provide a syndrome register for them would not yield sufficient advantage to be justified. The valid data can be used to indicate that data characterising memory accesses of this type is not validly provided.
In alternative embodiments, an update register can be provided and can be written with update data characterising an update to be performed upon an address value stored within a base register in association with execution of a memory access instruction which gives rise to a memory-abort. This update register can be read by the memory-abort handling program instructions and used to perform a required update upon an address value stored within a base register as part of the emulation of the access to the virtual device.
Whilst virtualisation can be supported in a variety of different ways, the present technique is well suited to embodiments in which the stream of program instructions which are executed, and which include the memory access instructions which can give rise the memory-abort, are under control of a guest operating system with the execution of that guest operating system by the virtual data processing apparatus itself being emulated by a host data processing apparatus under control of a Is hypervisor program. This layered form of virtualisation will be familiar to those in this field and is of a type which suffers from the problem of slow virtual device emulation which is addressed with the present techniques.
The detection circuitry which serves to detect a memory access to a memory mapped device of the virtual data processing apparatus can take the form of a memory management unit using page table data to control accesses to memory addresses within a memory. Such memory management units are typically provided for other reasons and can be reused to provide the trapping of memory accesses to virtual memory mapped devices. The page table data used by the memory mapped device can be programmed with values that trigger an abort when a memory accessing instruction seeks to perform a memory access operation to a virtual memory mapped device.
Viewed from another aspect the present invention provides apparatus for processing data providing support for virtualisation of a virtual data processing apparatus, said apparatus for processing data comprising: detection circuitry responsive to an attempted execution of a memory accessing instruction seeking to perform a memory access operation upon a memory address corresponding to a memory mapped device of said virtual data processing apparatus to trigger a memory abort; and memory-abort circuitry responsive to said memory abort to write to a memory-abort register memory-abort data said memory access operation, said memory-abort data including data indicative of one or more registers accessed with said memory access operation.
Viewed from a further aspect the present invention provides apparatus for processing data providing support for virtualisation of a virtual data processing apparatus, said apparatus for processing data comprising: detection means responsive to an attempted execution of a memory accessing instruction seeking to perform a memory access operation upon a memory address corresponding to a memory mapped device of said virtual data processing apparatus for triggering a memory abort; and memory-abort means responsive to said memory abort for writing to a memory-abort register memory-abort data said memory access operation, said memory-abort data including data indicative of one or more registers accessed with said memory access operation.
Embodiments of the invention will now be described, by way of example only, with reference to the accompanying drawings in which: Figure 1 schematically illustrates a virtual data processing apparatus including virtual memory-mapped devices; Figure 2 schematically illustrates a host data processing apparatus including hardware mechanisms for supporting virtualisation; Figure 3 schematically illustrates example contents of a memory-abort register and an update register which can be used to provide data characterising a memory access operation giving rise to a memory abort; and Figure 4 is a flow diagram schematically illustrating techniques for supporting emulation of a memory access operation to a virtual memory-mapped device.
Figure 1 illustrates a virtual data processing apparatus 2, which can be considered to provide a virtual core 4 executing a stream of program instructions stored within a memory 6. These instructions within the memory 6 are instructions native to the virtual data processing apparatus 2 arid will execute under control of a guest operating system (the execution of which is also emulated). The virtual data processing apparatus 2 includes virtual memory-mapped devices 8, 10, which are typically used to provide interfaces with devices attached to the virtual data processing apparatus 2. The virtual memory-mapped devices could be inputloutput ports, devices such as DMA engines and the like.
It is known within the field of virtualisation to support such memory-mapped devices 8, 10 by trapping memory accesses to the associated memory addresses and them emulating these memory accesses. Such operation normally requires the reading of the memory accessing program instruction that was being executed by the data processing apparatus 2 in order to identify sufficient information from that program instruction that the emulation can be accurately performed. This reading and decoding of the program instruction can be a slow and inefficient process significantly reducing the speed of the virtualised operation.
Figure 2 schematically illustrates a host data processing apparatus 12 which executes a hypervisor program 14, that itself emulates (or at least supports) execution of a guest operating system program 16 arid guest program instructions which give rise to the memory accesses discussed in relation to Figure 1. The architecture of the host data processing apparatus 12 may be similar to that of the virtual data processing apparatus 2 (in which case the virtualisation support will tend to be quick and efficient) or alternatively the virtual data processing apparatus 2 may have a very different architecture (in which case the virtualisation support needs to be more extensive and will tend to be slower and less efficient).
The host data processing apparatus 12 includes a processor core 18 for executing program instructions. A cache memory 20 (which could be unified or Harvard) is provided to store local copies of data and instructions from within a main memory 22 in a conventional manner. A memory management unit 24 responsive to page table data 26 monitors memory access operations performed by the processor core 18 to identify any which should give rise to memory aborts. The page table data 26 is programmed to mark as "Invalid" or "No access" memory address regions corresponding to the virtual memory-mapped devices 8, 10 within the memory address space of the virtual data processing apparatus 2 when emulation of that data processing apparatus 2 is being performed. Thus, the memory management unit 24 acts as detection circuitry serving to detect memory access operations to memory addresses corresponding to memory mapped devices of the virtual data processing apparatus that arise during execution of a stream of program instructions by the processor core 18 that emulate processing performed by the virtual data processing apparatus. The memory abort signal generated by the memory management unit 24 is supplied to a fault status register (memory-abort register) 28 which is responsive thereto to store abort information supplied to the fault status register 28 by the processor core 18. This abort information includes a variety of different pieces of information characterising the memory access operation which gave rise to the memory abort. The memory abort also triggers processing of an interrupt service routine which serves as memory-abort handling program instructions that read the fault status register 28 and then serve to emulate the memory access operation being performed to the virtual memory-mapped device. The memory-abort data written into the fault status register 28 includes the core register number(s) (e.g. one or more of R0 to R15 for an ARM architecture core) associated with the memory access giving rise to the abort. The memory access could be a read operation or a write operation and accordingly the register number may be a destination register number or a source register number.
Figure 3 schematically illustrates memory-abort data which may be written to the fault status register 28. This memory-abort data includes data identifying the abort type, a flag indicating whether the memory access was a read operation or a write operation, a flag indicating whether or not the memory-abort data should be considered valid by the memory-abort handling program instructions, data identifying the register number of the register associated with the memory access, data identifying the data access size associated with the memory access, data identifying an instruction size of the memory access instruction that is subject to the abort, and data identifying whether or not the data was to be sign extended. It will be appreciated that different types of memory-abort data may additionally or alternatively be provided. Also illustrated in Figure 3 is an update register 30 which may optionally be provided in some embodiments.
As will be appreciated by those in this technical field, some memory access instructions utilise a base register for storing an address value from which the memory address of the memory access is derived. The value stored within the base register may also be updated as part of the memory access operation. As an example, within the ARM architecture, pre and post indexing memory accessing instructions are supported in which an increment to a memory address value is applied either before or after the memory accessing program instruction concerned is executed. When such a memory access instruction aborts and is to be emulated, it is important that the side-effect upon the base register value is also reproduced by the emulation. Whilst such side-effects which update a base register value are not common within instructions which access virtual memory-mapped devices, they nevertheless do occur and accordingly need be supported. One way is that a valid flag can be supplied within the fault status register 28 and if this is not set to indicate that the memory-abort data is valid, then the program instruction which gave rise to the memory-abort can be read and the side-effect which updates the base register value can be determined from a decoding of that program instruction. The valid flag within the fault status register 28 would not be set by the processor core 18 for instructions where a side-effect upon the base register value was present when an abort was triggered on such an instruction.
Another example of instructions for which the valid flag is not set is loadlstore multiple instruction. The valid flag would be set for instructions in respect of which the memory-abort data is valid. As an alternative, an update register 30 may be provided into which data identifying any update needing to be performed upon a base register value may be written upon occurrence of the memory-abort. This update data can include an identification (e.g. register number) of the base register storing the base address value as well as data indicating the new value to be stored therein, or the change to be applied thereto. It will be appreciated that the provision of the update register 30 is optional and the use of the valid flag will allow a large majority of memory-aborts which arise during virtualisation support to be handled using valid data within the memory-abort register (FSR 28) with only rare cases being invalid.
The approach of allowing each particular implementation to decide which instructions to provide memory-abort data for, and which to just set the valid flag to zero for, allows each implementation to pick an appropriate set of instructions for that particular implementation -and the software will automatically be adjusted as well (i.e. it will only look up the instruction when the hardware doesn't provide the data).
This is a considerable advantage compared to the alternative of specifying the subset of instructions for which the data must be provided in the architecture and requiring all implementations to provide the data in those cases.
Figure 4 is a flow diagram schematically illustrating the above techniques. At steps 32 and 34 the processor core 18 executes a stream of program instructions for emulating a program executing upon a virtual data processing apparatus 2 under control of a guest operating program 16, which is itself emulated (or supported) by a hypervisor program 14. When a memory abort occurs, processing proceeds to step 36. At step 36 the memory-abort data is written into the fault status register 28 by the processor core 18. Step 38 starts execution of an interrupt service routine which serves as the memory-abort handling program instructions which emulate the memory access to the virtual memory-mapped device. Step 40 determines whether the valid flag is set within the memory-abort data stored within the fault status register 28. If the valid flag is not set, then processing proceeds to step 41 where the address of the instruction which gave rise to the memory abort is determined and then to step 42 where the instruction which gave rise to the memory abort is read from the main memory 22 via multiple levels of address translation and possible cache misses as previously described. Step 43 then decodes the instruction read from emmory and step 44 emulates the device access to the virtual memory-mapped device using the data derived from the reading of the program instruction at step 42.
If the valid flag indicates that the memory-abort data stored within the fault status register 28 is valid, then step 40 directs processing to step 46 where the memory-abort data is read from the fault status register 28 and used by step 44 to emulate the memory access to the virtual memory-mapped device. The memory-abort data includes data such as that illustrated in Figure 3 including a source/destination register number, a data access size, instruction size, sign extension infOrmation, readJwrite information and abort type as well as optionally updated address information which may be stored within an update register 30 and separately read as part of the execution of the memory-abort handling program instructions. The completion of the emulation of the memory access to the virtual memory-mapped device will normally finish with a return to the execution of the program stream in which the memory-abort arose.

Claims (23)

  1. CLAIMS1. A method of supporting virtualisation of a virtual data processing apparatus with a host data processing apparatus, said method comprising the steps of: executing a stream of program instructions with said host data processing apparatus to emulate processing by said virtual data processing apparatus; detecting with detection circuitry an attempted execution of a memory accessing instruction seeking to perform a memory access operation upon a memory address corresponding to a memory mapped device of said virtual data processing apparatus; writing with memory-abort circuitry to a memory-abort register memory-abort data characterising said memory access operation, said memory-abort data including data indicative of one or more registers accessed with said memory access operation; and triggering a memory-abort exception by execution of memory-abort handling program instructions by said host data processing apparatus to: (i) read said memory-abort data from said memory-abort register; (ii) emulate said memory access operation using said memory-abort data including said data indicative of one or more registers accessed with said memory access operation; and (iii) return to execution of said stream of program instructions.
  2. 2. A method as claimed in claim 1, wherein said memory-abort data comprises one or more of: data indicative of a size of a data word being subject to said memory access operation; data of whether said memory access operation is a read operation or a write operation; data indicative of one or more source registers for said memory access operation; said data indicative of one or more destination registers for said memory access operation; and data indicative of whether a data word being subject to said memory access operation is to be sign extended; and data indicative of an instruction size of said memory accessing instruction.
  3. 3. A method as claimed in any one of claims 1 and 2, wherein said memory-abort data comprises validity data indicative of whether or not said memory-abort data is valid for said memory accessing instruction that triggered said memory abort exception and, if said memory-abort handling program instructions determine from said validity data that said data characterising said memory-abort is not valid for said memory-abort exception, then said memory-abort handling program instructions read said memory accessing instruction from an instruction memory and determine from said memory accessing instruction one or more parameters for emulating said memory access operation.
  4. 4. A method as claimed in any one of the preceding claims, wherein when said memory accessing instruction specifies a base register storing an address value indicative of said memory address and an update to be performed upon said address value associated with said execution of said memory access instruction, said memory-abort handling program instructions read said memory accessing instruction from an instruction memory and determine from said memory accessing instruction one or more parameters for performing said update upon said address value within said base register.
  5. 5. A method as claimed in claims 3 and 4, wherein said validity data indicates said data characterising said memory abort is not valid for memory accessing instructions that update said address value stored in said base register.
  6. 6. A method as claimed in any one of claims 1, 2 and 3, wherein when said memory accessing instruction specifies a base register storing an address value indicative of said memory address and an update to be performed upon said address value associated with said execution of said memory access instruction, said method further comprising writing with said memory-abort circuitry to an update register update data characterising said update to be performed upon said address value.
  7. 7. A method as claimed in claim 6, wherein said memory-abort handling program instructions read said update data from said update register one or more parameters for performing said update upon said address value within said base register.
  8. 8. A method as claimed in any one of the preceding claims, wherein said stream of program instructions are executed under control of a guest operating system, execution of said guest operating system by said virtual data processing apparatus being emulated by said host data processing apparatus under control of a hypervisor program.
  9. 9. A method as claimed in claimed in any one of the preceding claims, wherein said detection circuitry is a memory management unit using page table data to control access to memory addresses within said memory.
  10. 10. A method as claimed in claim 9, wherein said page table data marks said memory address corresponding to said memory mapped device with a value that triggers an abort when said memory accessing instruction seeks to perform said memory access operation.
  11. 11. Apparatus for processing data providing support for virtualisation of a virtual data processing apparatus, said apparatus for processing data comprising: detection circuitry responsive to an attempted execution of a memory accessing instruction seeking to perform a memory access operation upon a memory address corresponding to a memory mapped device of said virtual data processing apparatus to trigger a memory abort; and memory-abort circuitry responsive to said memory abort to write to a memory-abort register memory-abort data said memory access operation, said memory-abort data including data indicative of one or more registers accessed with said memory access operation.
    *
  12. 12. Apparatus as claimed in claim 11, wherein said memory-abort data comprises one or more of: data indicative of a size of a data word being subject to said memory access operation; data of whether said memory access operation is a read operation or a write operation; data indicative of one or more source registers for said memory access operation; data indicative of one or more registers accessed with said memory access operation; and data indicative of whether a data word being subject to said memory access operation is to be sign extended; and data indicative of an instruction size of said memory accessing instruction.
  13. 13. Apparatus as claimed in any one of claims 11 and 12, wherein said memory-abort data comprises validity data indicative of whether or not said memory-abort data is valid for said memory accessing instruction that triggered said memory abort exception, said memory abort is handled by memory-abort handling program instructions executed by said apparatus for processing data, and, if said memory-abort handling program instructions determine from said validity data that said data characterising said memory-abort is not valid for said memory-abort exception, then said memory-abort handling program instructions read said memory accessing instruction from an instruction memory and determine from said memory accessing instruction one or more parameters for emulating said memory access operation.
  14. 14. Apparatus as claimed in any one of claims 11, 12 and 13, wherein when said memory accessing instruction specifies a base register storing an address value indicative of said memory address and an update to be performed upon said address value associated with said execution of said memory access instruction, memory-abort handling program instructions read said memory accessing instruction from an instruction memory and determine from said memory accessing instruction one or more parameters for performing said update upon said address value within said base register.
  15. 15. Apparatus as claimed in claims 13 and 14, wherein said validity data indicates said data characterising said memory abort is not valid for memory accessing instructions that update said address value stored within said base register.
  16. 16. A method as claimed in any one of claims 11, 12 and 13, wherein when said memory accessing instruction specifies a base register storing an address value indicative of said memory address and an update to be performed upon said address value associated with said execution of said memory access instruction, said memory-abort circuitry being responsive to said memory abort to write to an update register update data characterising said update to be performed upon said address value.
  17. 17. Apparatus as claimed in claim 16, wherein memory-abort handling program instructions read said update data from said update register one or more parameters for performing said update upon said address value within said base register.
  18. 18. Apparatus as claimed in any one of claims 7 to 11, wherein a stream of program instructions are executed under control of a guest operating system, execution of said guest operating system by said virtual data processing apparatus being emulated by said apparatus for processing data under control of a hypervisor program.
  19. 19. Apparatus as claimed in claimed in any one of claims 11 to 18, wherein said detection circuitry is a memory management unit using page table data to control access to memory addresses within said memory.
  20. 20. A method as claimed in claim 19, wherein said page table data marks said memory address corresponding to said memory mapped device with a value that triggers an abort when said memory accessing instruction seeks to perform said memory access operation.
  21. 21. Apparatus for processing data providing support for virtualisation of a virtual data processing apparatus, said apparatus for processing data comprising: detection means responsive to an attempted execution of a memory accessing instruction seeking to perform a memory access operation upon a memory address corresponding to a memory mapped device of said virtual data processing apparatus for triggering a memory abort; and memory-abort means responsive to said memory abort for writing to a memory-abort register memory-abort data said memory access operation, said memory-abort data including data indicative of one or more registers accessed with said memory access operation.I
  22. 22. A method of supporting virtualisation substantially as hereinbefore described with reference to the accompanying drawings.
  23. 23. Apparatus for processing data substantially as hereinbefore described with reference to the accompanying drawings.
GB0809492A 2008-05-23 2008-05-23 Using a memory-abort register in the emulation of memory access operations Withdrawn GB2460280A (en)

Priority Applications (11)

Application Number Priority Date Filing Date Title
GB0809492A GB2460280A (en) 2008-05-23 2008-05-23 Using a memory-abort register in the emulation of memory access operations
EP09750052A EP2281237B1 (en) 2008-05-23 2009-03-23 Device emulation support within a host data processing apparatus
AT09750052T ATE523842T1 (en) 2008-05-23 2009-03-23 DEVICE EMULATION SUPPORT IN A HOST DATA PROCESSING DEVICE
JP2011510036A JP5318197B2 (en) 2008-05-23 2009-03-23 Device emulation support in the host data processor
CN200980118763.3A CN102037448B (en) 2008-05-23 2009-03-23 Device emulation support within a host data processing apparatus
PCT/GB2009/000771 WO2009141574A1 (en) 2008-05-23 2009-03-23 Device emulation support within a host data processing apparatus
KR1020107028671A KR101533224B1 (en) 2008-05-23 2009-03-23 Device emulation support within a host data processing apparatus
MYPI20103029 MY152358A (en) 2008-05-23 2009-03-23 Device emulation support within a host data processing apparatus
TW098113237A TWI437428B (en) 2008-05-23 2009-04-21 Device emulation support within a host data processing apparatus
US12/453,806 US8180980B2 (en) 2008-05-23 2009-05-22 Device emulation support within a host data processing apparatus
IL206725A IL206725A (en) 2008-05-23 2010-06-30 Device emulation support within a host data processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
GB0809492A GB2460280A (en) 2008-05-23 2008-05-23 Using a memory-abort register in the emulation of memory access operations

Publications (2)

Publication Number Publication Date
GB0809492D0 GB0809492D0 (en) 2008-07-02
GB2460280A true GB2460280A (en) 2009-11-25

Family

ID=39616061

Family Applications (1)

Application Number Title Priority Date Filing Date
GB0809492A Withdrawn GB2460280A (en) 2008-05-23 2008-05-23 Using a memory-abort register in the emulation of memory access operations

Country Status (11)

Country Link
US (1) US8180980B2 (en)
EP (1) EP2281237B1 (en)
JP (1) JP5318197B2 (en)
KR (1) KR101533224B1 (en)
CN (1) CN102037448B (en)
AT (1) ATE523842T1 (en)
GB (1) GB2460280A (en)
IL (1) IL206725A (en)
MY (1) MY152358A (en)
TW (1) TWI437428B (en)
WO (1) WO2009141574A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017064453A1 (en) * 2015-10-14 2017-04-20 Arm Limited Exception handling

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8301849B2 (en) * 2009-12-23 2012-10-30 Intel Corporation Transactional memory in out-of-order processors with XABORT having immediate argument
US9619345B2 (en) 2012-09-13 2017-04-11 International Business Machines Corporation Apparatus for determining failure context in hardware transactional memories
US9268598B2 (en) 2012-09-13 2016-02-23 International Business Machines Corporation Recording and profiling transaction failure source addresses and states of validity indicator corresponding to addresses of aborted transaction in hardware transactional memories
EP3279796B1 (en) * 2016-08-02 2020-07-15 NXP USA, Inc. Resource access management component and method therefor
TWI666901B (en) * 2018-03-27 2019-07-21 緯穎科技服務股份有限公司 Data transmission method and host system using the same

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0817029A2 (en) * 1996-06-03 1998-01-07 Sun Microsystems, Inc. A system and method for facilitating avoidance of an exceptional condition of a predetermined type during execution of a program
US20050246453A1 (en) * 2004-04-30 2005-11-03 Microsoft Corporation Providing direct access to hardware from a virtual environment
US20060259292A1 (en) * 2005-05-12 2006-11-16 Microsoft Corporation Virtual operating system device communication relying on memory access violations
US7356456B1 (en) * 2004-11-12 2008-04-08 Paravirtual Corporation Computer storage exception handing apparatus and method for virtual hardware system

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS593642A (en) * 1982-06-30 1984-01-10 Fujitsu Ltd Control register processing system
US5968119A (en) 1996-12-09 1999-10-19 Wall Data Incorporated Method of accessing information of an SNA host computer from a client computer using a specific terminal emulation
US6081887A (en) * 1998-05-13 2000-06-27 Compaq Computer Corporation System for passing an index value with each prediction in forward direction to enable truth predictor to associate truth value with particular branch instruction
US20020004897A1 (en) 2000-07-05 2002-01-10 Min-Cheng Kao Data processing apparatus for executing multiple instruction sets
GB2367651B (en) * 2000-10-05 2004-12-29 Advanced Risc Mach Ltd Hardware instruction translation within a processor pipeline
US6732241B2 (en) * 2001-09-07 2004-05-04 Hewlett-Packard Development Company, L.P. Technique for migrating data between storage devices for reduced power consumption
US6952754B2 (en) 2003-01-03 2005-10-04 Intel Corporation Predecode apparatus, systems, and methods
US7146474B2 (en) * 2003-03-12 2006-12-05 International Business Machines Corporation System, method and computer program product to automatically select target volumes for a fast copy to optimize performance and availability
US20050076186A1 (en) * 2003-10-03 2005-04-07 Microsoft Corporation Systems and methods for improving the x86 architecture for processor virtualization, and software systems and methods for utilizing the improvements
US20060168485A1 (en) * 2005-01-26 2006-07-27 Via Technologies, Inc Updating instruction fault status register
US7769983B2 (en) 2005-05-18 2010-08-03 Qualcomm Incorporated Caching instructions for a multiple-state processor
US9354927B2 (en) * 2006-12-21 2016-05-31 Vmware, Inc. Securing virtual machine data
US7711927B2 (en) 2007-03-14 2010-05-04 Qualcomm Incorporated System, method and software to preload instructions from an instruction set other than one currently executing
US7886115B2 (en) * 2007-07-13 2011-02-08 Hitachi Global Storage Technologies Netherlands, B.V. Techniques for implementing virtual storage devices

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0817029A2 (en) * 1996-06-03 1998-01-07 Sun Microsystems, Inc. A system and method for facilitating avoidance of an exceptional condition of a predetermined type during execution of a program
US20050246453A1 (en) * 2004-04-30 2005-11-03 Microsoft Corporation Providing direct access to hardware from a virtual environment
US7356456B1 (en) * 2004-11-12 2008-04-08 Paravirtual Corporation Computer storage exception handing apparatus and method for virtual hardware system
US20060259292A1 (en) * 2005-05-12 2006-11-16 Microsoft Corporation Virtual operating system device communication relying on memory access violations

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017064453A1 (en) * 2015-10-14 2017-04-20 Arm Limited Exception handling
GB2543306B (en) * 2015-10-14 2019-05-01 Advanced Risc Mach Ltd Exception handling
US10649787B2 (en) 2015-10-14 2020-05-12 Arm Limited Exception handling involving emulation of exception triggering data transfer operation using syndrome data store that includes data value to be transferred

Also Published As

Publication number Publication date
KR20110019750A (en) 2011-02-28
TWI437428B (en) 2014-05-11
EP2281237B1 (en) 2011-09-07
JP2011523741A (en) 2011-08-18
IL206725A0 (en) 2010-12-30
ATE523842T1 (en) 2011-09-15
GB0809492D0 (en) 2008-07-02
CN102037448B (en) 2014-04-02
EP2281237A1 (en) 2011-02-09
US8180980B2 (en) 2012-05-15
KR101533224B1 (en) 2015-07-02
JP5318197B2 (en) 2013-10-16
WO2009141574A1 (en) 2009-11-26
MY152358A (en) 2014-09-15
IL206725A (en) 2014-04-30
CN102037448A (en) 2011-04-27
US20100094613A1 (en) 2010-04-15
TW200949535A (en) 2009-12-01

Similar Documents

Publication Publication Date Title
US8032897B2 (en) Placing virtual machine monitor (VMM) code in guest context to speed memory mapped input/output virtualization
US8127098B1 (en) Virtualization of real mode execution
US8166276B2 (en) Translate and verify instruction for a processor
US20180196759A1 (en) Synchronizing a translation lookaside buffer with an extended paging table
US8561060B2 (en) Processor and method configured to determine an exit mechanism using an intercept configuration for a virtual machine
US8352670B2 (en) Execute-only memory and mechanism enabling execution from execute-only memory for minivisor
US7748037B2 (en) Validating a memory type modification attempt
US7069413B1 (en) Method and system for performing virtual to physical address translations in a virtual machine monitor
US7370160B2 (en) Virtualizing memory type
CN110574009B (en) Apparatus and method for managing use of capabilities
EP2281237B1 (en) Device emulation support within a host data processing apparatus
US11138128B2 (en) Controlling guard tag checking in memory accesses
US8438340B2 (en) Executing atomic store disjoint instructions
US7685381B2 (en) Employing a data structure of readily accessible units of memory to facilitate memory access
US20070156386A1 (en) Linearization of page based memory for increased performance in a software emulated central processing unit
US11397541B2 (en) Controlling guard tag checking in memory accesses
US10496461B2 (en) Apparatus and method for hardware initiation of emulated instructions
US11216280B2 (en) Exception interception
US5822607A (en) Method for fast validation checking for code and data segment descriptor loads
US5815729A (en) Method and apparatus for on the fly descriptor validation
JP2980327B2 (en) Instruction processing unit

Legal Events

Date Code Title Description
WAP Application withdrawn, taken to be withdrawn or refused ** after publication under section 16(1)