How does OpenSPARC translate Virtual Address to Physical Address or Vice V

The i386 page address system has three levels: dir, page, offset. The 32 bits virtual address consists of dir, page, offset. When the process releases a virtual address to read a memory content, the MMU of i386 will translate the virtual address to physical address as follows:1,Based on the value of CR3 register and dir of virtual address, MMU returns the base address of page.2, Based on the the base address of page and value of page of virtual address, MMU returns the base address of physical page.3, Based on the base address of physical page and value of offset of virtual address, MMU returns physical memory address. 4, Read the content of physical memory address.
However, when I read the source code of the bw_r_tlb of OpenSPARC�s MMU, I am puzzled. I am not clear how is the page address system of OpenSPARC implement.
Will you offer me some hints about it ? And are there any documents about it?
Thanks a lot!

It would be good to add the definition of Hypervisor in the wikipedia.
Thanks
[email protected] wrote:
> I have downloaded the source code of linux-2.6.17.9 version. In the arch directory of linux-2.6.17.9, I
find the Hypervisor API (such as sun4v_intr_setstate, sun4v_intr_gettarget) has been
integrated with Linux kernel. In other words, it is implemented in Linux kernel. All the time, I think
Hypervisor API is an independent layer which provides an easy way to switch among all kinds of OS. But now,
I find it is a part of Linux. If so, what a role does Hypervisor API take? Why do we name it Hypervisor API
rather than a part of Linux? It do puzzle me, am I wrong?
The Hypervisor API ("application programming interface") is fully described in the UltraSPARC T1 Hypervisor API Specification, which is downloadable from page http://opensparc-t1.sunsource.net/index.html .
As a brief digression ... the term "Hypervisor API" has always seemed a bit oxymoronic to me -- given the historic equivalency of "application" to "nonprivileged". After all, isn't it more of an "SPI" (supervisor programming interface) because it services privileged supervisor (operating system) software, not nonprivileged (application) software? But if you think of a guest OS as an "application" (in the general sense of the word) supported by the Hypervisor, then "Hypervisor API" makes some sense.
Now, regarding Hypervisor API and Linux. If you read the UltraSPARC T1 Hypervisor API Specification, you'll find that Hypervisor API calls are defined (appropriately enough) in terms of native SPARC assembly language. I haven't looked at the Linux source code, but I'd bet a considerable sum of money that the Linux sun4v_intr_gettarget() function is a C-language wrapper around a SPARC assemly-language routine that sets up arguments, performs a trap to the Hypervisor intr_gettarget function, and returns the result(s) to the caller.
In any case, all actual Hypervisor code is fully implemented in the Hypervisor, not in Linux or Solaris or FreeBSD or Wind River Linux or any other OS running on top of the Hypervisor. Each OS may implement some "wrapper" code around Hypervisor calls, but no actual Hypervisor functionality actually resides in a guest OS. In fact, it can't reside in a guest OS because it must run in hyperprivileged mode and guest operating systems run in "merely" Privileged mode.
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
Shrenik Mehta               Tel: 408-774-8580
Sr. Director, Frontend Technologies & OpenSPARC Program
System Group               Fax: 408-774-8154
Sun Microsystems          http://www.opensparc.net
NOTICE: This email message is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy
all copies of the original message.
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Similar Messages

  • Virtual address to physical address

    Hi,
    How do i convert kernel virtual address to physical address.... do we have
    any DDI function for this.?.. i am writing a driver for a pci card... my
    card needs the physical address of the memory location so that it can dump
    data to this location..
    OS: SOlaris 7 on intel pc..
    gurus any idea how to do this stuff???....
    TIA
    azad

    The recommended way to do this is by using the ddi_dma* functions. I would suggest reading the entire "Writing Device Drivers", but pay particular attention to the chapters on DMA and the section in the chapter on character drivers that deals with DMA.

  • How to find system MAC id  or physical address

    hi,
    anybody know
    How to find system MAC id  or physical address in flash?
    Thanks in advance
    ayathas

    no way to ffind this
    Have you tried with  AUT10  ??
    thanks
    G. Lakshmipathi

  • How to move a virtual disk's physical allocation within a Storage Pool

    I have a pool of 3x500GB where one the physical drives is having intermittent issues. Currently, there is only one parity Virtual Disk of 300GB Fixed across 3 columns. I want to replace the bad drive with a good one. The old way (pre-2012) was replace the
    disk, repair the RAID 5, resync and done. These basic steps are not working.
    So far I have added a 4th 500GB drive to the pool. After searching and failing to find a way to move the data non-destructively, I decided to just pull the data cable on the disk I wanted to replace. After refresh/rescan, the disconnected drive shows "lost
    communication" and the virtual disk (after trying to repair) shows "unknown" (but the volume on that disk is accessible in Explorer).  When I try to remove the physical disk in Server Manager, I get "The selected physical disk cannot
    be removed". Reading the error message, I see that the replacement disk cannot contain any part of a virtual disk. The replacement disk that I just added appears to have some space allocated (possibly because I have tried this same procedure a couple
    of times already?). When I look at the parity disk properties/health, it shows all four physical disks under "physical disks in use".
    I have deleted and recreated a lot of storage pools lately while trying to understand how they work but I would like to avoid that this time. The data on the virtual disk in question is highly deduplicated and it took quite a while to get it that way. Since
    I can't find a way to copy/mirror the disk while keeping it fully deduplicated, I would need 3x the space to copy it all off, or a lot of time to load up and deduplicate a new virtual disk.
    I have several questions:
    1. How can a 3 column parity disk use parts of four physical disks? And can that be fixed without recreating the virtual disk?
    2. When creating a virtual disk (for example a 3 column disk in a pool that has four or more physical drives), is there a way to specify which physical disks to use?
    3. I understand that after a physical disk failure, the recovery process will move a virtual disk's allocation to a replacement disk, but can a virtual disk's allocation be moved manually among physical disks within the same storage pool
    using a PS script?
    4. Can a deduplicated virtual disk be moved/mirrored/backed up without expanding the data?
    Any help is appreciated.

    Im still fighting with storage pools and need more tests to be done and have a lot of questions my self but ther goes what I understood so far.
    You may define physical disks used for virtual disk by Powershell ,
    for list of all commands follow this:
    http://technet.microsoft.com/en-us/library/hh848705(v=wps.620).aspx ,
    specific command defining physical disks to be used on already existing virtual disk:
    Example 4: Manually assigning physical disks to a virtual disk
    This example gets two physical disks that have already been added to the storage pool and designated as ManualSelect disks,
    PhysicalDisk3 and PhysicalDisk4, and assigns them to the virtual disk
    UserData.
    PS C:\> Add-PhysicalDisk –VirtualDiskFriendlyName UserData –PhysicalDisks (Get-PhysicalDisk -FriendlyName PhysicalDisk3, PhysicalDisk4)
    http://technet.microsoft.com/en-us/library/hh848702(v=wps.620).aspx
    If You haven't seen this yet You may check it out http://blogs.technet.com/b/yungchou/archive/2011/12/06/free-ebooks.aspx

  • Ipad: how does mail decide what the "reply to" address is?

    I have a weird problem.  Any mail I send from my iPad has the "wrong" reply-to address.  That is, when I send email from one account, it applies a different account address in the "from" field.
    Here is the problem (all addresses are fake)
    I have two email accounts on my ipad:  [email protected],  [email protected]  I specify "[email protected]" as the Default Account in Mail, Contacts, Calendars
    I also have an old account ([email protected]).  This account was my AppleID, etc but I want to get away from that account and move completely to gmail.  Again [email protected] is NOT registered (installed?  what is the term) on the iPad.
    Now, I would expect that when I send email, that "[email protected]" would be the "From:" address and that this would also be the reply-to address.
    Indeed, when I make a New Message, the "From:" field DOES have [email protected]  I can also tap the From: field and it gives my two choices: [email protected] and [email protected]  However, when it arrives at the recipient, it says "From [email protected]".
    Here is the header in Thunderbird when I send a test email from iPad to [email protected] (when I receive it), the header is really strange (again, edited to obfuscate my email):
    From: Joe Blow <[email protected]>
    Mime-Version: 1.0 (1.0)
    Reply-To: [email protected]
    Date: Tue, 12 Feb 2013 13:57:10 -0600
    Delivered-To: [email protected]
    Message-ID: <-2305465076252779989@unknownmsgid>
    Subject: test of return address
    To: Joe Blow <[email protected]>
    Content-Type: text/plain; charset=ISO-8859-1
    Sent from my iPad
    Now this is a strange header.  It is missing all kinds of fields, (such as "Received:, Retur Path, etc) but it is clear that the iPad sen the mail with incorrect From and Reply-To fields.  I dont even have [email protected] as an account on the iPad.
    So the question is:  where did it get and how do I fix it?
    Any takers?
    BTW, this is with iOS 5.1 (why, because every time I try to update, it says "An error occurred".

    You don´t have to insert your e-mail adress in this field, if you don´t want to have the e-mail back to some other adress (that is the only purpose of this setting - just like in Outlook)
    The views I present are my OWN and not of any organisation I may belong too.

  • How does the ping command get the IP address?

    I am running Windows 7 and when I do a ping command using a host name, the ping command works fine and returns the correct IPV4 address and is able to send and receive data using that address.
    On the other hand, if I write my own program and use either GetAddrInfo or GetAddrInfoEx. neither of them give me the result I expect. GetAddrInfo fails with a host not found error and GetAddrInfoEx gives me back a return code of zero, but the ai_addr field
    of the returned structure is garbage.
    Do any of you out there know how ping does it? Because if ping can do it, I should be able to also.
    Sid Schipper GA/RSG/Network Engineering Software Developer

    Never mind! The question came about because of my stupidity. GetAddrInfoEx was returning the correct IP address, but it was being returned as a double-byte character string and I was interpreting it as a single-byte character string, Oops!, my bad!, sorry
    to bother all of you and Thank you for your responses.
    Sid Schipper GA/RSG/Network Engineering Software Developer

  • I have the License Number for CS6 Creative Suite How does this translate for "Creative Cloud"

    I have the License Number for CS6 Creative Suite, but when I downloaded Creative Suite and tried to license the product, it keeps coming up with an error, "The Serial Number is not valid for Adobe Photoshop CC." How do I register my product?

    Photoshop CC is the equivalent of CS7... and it is available ONLY by paying for a monthly subscription... your CS6 serial number does not work for CC
    -http://forums.adobe.com/community/download_install_setup/creative_cloud_faq
    --has a link to manage your membership which may help

  • How does JVM (Java Virtual Machine) relate to XI?

    Can somebody describe to me exactly what JVM (Java Virtual Machine) is and how it is related/associated to XI?  Responses are appreciated, thanks in advance!

    HI,
    A Java Virtual Machine (JVM), is a virtual machine that interprets and executes Java bytecode. This code is most often generated by Java language compilers, although the JVM can also be targeted by compilers of other languages. JVMs may be developed by other companies as long as they adhere to the JVM standard published by Sun.
    The JVM is a crucial component of the Java Platform. Because JVMs are available for many hardware and software platforms, Java can be both middleware and a platform in its own right - hence the expression "Write once, run anywhere." The use of the same bytecode for all platforms allows Java to be described as "Compile once, run anywhere", as opposed to "Write once, compile anywhere", which describes cross-platform compiled languages.
    Starting with J2SE 5.0, changes to the JVM specification have been developed under the Java Community Process as JSR 924[1]. As of 2006, changes to specification to support changes proposed to the class file format (JSR 202[2]) are being done as a maintenance release of JSR 924. The specification for the JVM is published in book form[3], known as "blue book". The preface states:
    We intend that this specification should sufficiently document the Java Virtual Machine to make possible compatible clean-room implementations. Sun provides tests which verify the proper operation of implementations of the Java Virtual Machine.
    Sun's JVM is called HotSpot. Clean-room Java implementations include Kaffe and IBM's. Sun retains control over the Java trademark, which it uses to certify implementation suites as fully compatible with Sun's specification
    we have two caches JAVA,ABAP.
    i mean all objects which will execute in JAVA Cache those need the JVM.
    Regards
    Chilla

  • How does LR3 handle virtual copies and xmp files?

    Hi,
    I see only 1 xmp file and yet I have several virtual copies of that same photograph... where are the corresponding xmp files? I am using exiftool to place some info in the CR2 files and then need to update the corresponding xmp file...
    Thanks,
    Juan

    Hi Juan,
    Virtual copies are only stored in the LR catalog, never in the XMP sidecars. If you update the XMP using exiftool and update the metadata in LR, both the original and the virtual copy will be updated with the XMP data.
    Marc

  • MappedByteBuffer - How does it handle the physical memory?

    Hello!
    I have some question regarding the java.nio.MappedByteBuffer class. I am wondering how does it exactly handle the physical memory.
    As first, I guess when I map a file into the the memory it does not mean that the whole file is being read into the physical memory. Am I right?
    My second question is, if I map more files into the memory, is there a real danger that I will get an out-of-memory exception? Is available any official resource about the memory management of this class?
    And my third question is, what is more efficient way at all, to use the MappedByteBuffer class or to use a FileChannel?
    I am looking forward to your replies!

    Tomi1226 wrote:
    I have some question regarding the java.nio.MappedByteBuffer class. I am wondering how does it exactly handle the physical memory.Java maps the file into virtual memory, the OS determines how to translate virtual memory into physical memory. Java has no control over how the OS does this, nor should it need to.
    As first, I guess when I map a file into the the memory it does not mean that the whole file is being read into the physical memory. Am I right?True, map != read or what would be the point.
    My second question is, if I map more files into the memory, is there a real danger that I will get an out-of-memory exception? An out of memory ERROR occurs when you run out of heap space. If you create enough file maps you are likely to run out of file handles or some other resourfe before you run out of heap.
    Exception != Error.
    Is available any official resource about the memory management of this class?Which class?
    And my third question is, what is more efficient way at all, to use the MappedByteBuffer class or to use a FileChannel?It depends on what you are doing.

  • Virtual to physical address mapping

    Is there a way to determine the physical address(es) of a pinned-down kernel buffer from it's virtual address and size, either in a device driver or user program? I'd like to use the physical address(es) to access the buffer via /dev/mem or some other method from a user level program.
    I've seen references to "vtop" in examples on docs.sun.com, but don't find any documentation about that routine, and don't find it in include files on Solaris 7. Thanks in advance!

    I think that in a device driver you can use hat_getkpfnum(9F) to get the physical page number from a virtual address.
    In crash(1m) the vtop command will translate a virtual to a physical address.
    I would have thought you could also just use the virtual address against /dev/kmem, as opposed to using a physical address against /dev/mem?
    Hope that helps.
    Ralph
    SUN DTS

  • Find out virtual nic to physical nic mapping

    any command in hyper-v / scvmm to find out virtual nic to physical nic mapping. In vmware we can get the same by esxtop N view shows VMname and the physical NIC used, simlarly any in hyper-v

    I think that in a device driver you can use hat_getkpfnum(9F) to get the physical page number from a virtual address.
    In crash(1m) the vtop command will translate a virtual to a physical address.
    I would have thought you could also just use the virtual address against /dev/kmem, as opposed to using a physical address against /dev/mem?
    Hope that helps.
    Ralph
    SUN DTS

  • How to configure Apache Virtual Hosts?

    Hi, I was wondering, how does configure Apache virtual hosts for Mac OS X Client 10.4.5? At this time, I have added
    NameVirtualHost *:80
    <VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot /Library/WebServer/Documents/janus
    ServerName janus.php.test
    ErrorLog /private/var/log/httpd/janus.php.com-error_log
    CustomLog /private/var/log/httpd/janus.php.com-access_log common
    </VirtualHost>
    Finally, when I try to use the name in the browser, I get the following error message:
    Safari can’t find the server.
    Safari can’t open the page “http://janus.php.test/” because it can’t find the server “janus.php.test”.
    Well, I must go and thanks in advance.
    Peace,
    -Conrad

    If you want to use the fqdn you defined and can/do not want to register it as a Internet Domain you can add it to the hosts file in /etc/hosts if you are comfortable using terminal and the shell
    open a terminal
    and use the following commands
    cd /etc
    sudo vim hosts
    (you will be prompted for your password here, enter it and hit return)
    in vim scroll to the last line which will look like
    ::1 localhost
    type
    i
    (you are now in insert mode)
    type the following line
    192.168.0.15 janus.php.test
    (replace the ip address with the ip address of the host in question)
    hit Control-C
    type
    :w (vim will confirm in the last line)
    type
    :q
    you are back at the terminal
    test your new hosts file by typing
    ping janus.php.test
    Hope this helps
    Mike

  • Can sites know about my computers physical address or mac address when I use firefox 4

    I want to know that does firefox expose my computers mac address or physical address to any site if that tries??

    You have quite a few outdated plugins installed which potentially exposes your system to exploits.
    So the first thing to do is to visit the [http://www.mozilla.com/en-US/plugincheck/ Plugins Check] page and update where necessary.
    That IP address belongs to Comcast. Does that ring any bells?

  • To overwrite drive partition physical address.

    How to overwrite the particular drive starting physical address or replace the 0 on drive partition binary address?

    Hi,
     I’m afraid that it is not the correct forum about this issue, since this forum is to discuss Visual C#. I am moving your question to the moderator forum ("Where is the forum for..?"). The owner of the forum will direct you to a right forum. Thanks
    for your understanding.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Cant restore my macbook with Disk utility and my .dmg image

    My macbook would not boot anymore. Stuck on gray screen with apple logo, spinning wheel and a loading bar for a while after shutting off. I was able to get to Disk Utility in the recovery mode and, after a while, was able to make an image of my files

  • Error when creating new users

    My OBIEE enviroment is working fine except for the user and group creation process. I create a new user by going into the WebLogic Server Administration Console > Security Realms > myrealm I then click the Users and Groups tab, then Users tab. The UR

  • OWA_COOKIE package problems

    Hello! I'm new to this forum and I have subscribed because I started working in an Oracle partner in Portugal. I am programming a dynamic menu and I have a problem using cookies (I need them to transmit menu selections informations between different

  • Agent is ShutDown

    Hi... I have seen a few message about the Agent is shutdown. Why this is happened ?. Is it the ODI was down ? How to check this ? The log as below:- SnpsConnection.disconnet : Unable to close connection oracle.jdbc.driver.T4CConnection@ee0da83 SnpsCo

  • Ports for LOM and Server Monitor?

    I have an Xserve setup behind a firewall (local IP), and I'm trying to access LOM and Server Monitor from outside of the network .... which ports should I forward to the Xserve? google comes up semi-empty :P Thanks!