Method and apparatus for managing the execution of a broadcast instruction on a guest processor
    40.
    发明授权
    Method and apparatus for managing the execution of a broadcast instruction on a guest processor 失效
    用于管理客机处理器上的广播指令的执行的方法和装置

    公开(公告)号:US07197585B2

    公开(公告)日:2007-03-27

    申请号:US10262311

    申请日:2002-09-30

    IPC分类号: G06F12/00

    摘要: A method and apparatus for managing the execution on guest processors of a broadcast instruction requiring a corresponding operation on other processors of a guest machine. Each of a plurality of processors on an information handling system is operable either as a host processor under the control of a host program executing on a host machine or as a guest processor under the control of a guest program executing on a guest machine. The guest machine is defined by the host program executing on the host machine and contains a plurality of such guest processors forming a guest multiprocessing configuration. A lock is defined for the guest machine containing an indication of whether it is being held by a host lock holder from the host program and a count of the number of processors holding the lock as guest lock holders. Upon decoding a broadcast instruction executing on a processor operating as a guest processor, the lock is tested to determine whether it is being held by a host lock holder. If the lock is being held by a host lock holder, an instruction interception is recognized and execution of the instruction is terminated. If the lock is not being held by a host lock holder, the lock is updated to indicate that it is being held by the guest processor as a shared lock holder, the instruction is executed, and then the lock is updated a second time to indicate that it is no longer being held by the guest processor as a shared lock holder.

    摘要翻译: 一种用于管理在客机处理器上执行需要在客机的其它处理器上进行相应操作的广播指令的方法和装置。 信息处理系统上的多个处理器中的每个处理器可以在主机程序的控制下作为主机处理器操作,在主机上执行的主机程序或作为来宾处理器,在访客机器上执行的访客程序的控制下。 客机由在主机上执行的主机程序定义,并且包含形成客户机多处理配置的多个这样的客户处理器。 为客机定义了一个锁,其中包含主机锁持有人是否从主机程序保持的指示,以及将锁定的数量计数为访客锁持有者。 在解码在作为来宾处理器操作的处理器上执行的广播指令时,测试该锁以确定其是否被主机锁持有器保持。 如果主机锁持有者握住锁,则识别指令拦截并终止指令的执行。 如果锁没有被主机锁持有者握住,则锁被更新以指示它被访客处理器保持为共享锁持有者,执行指令,然后再次更新锁以指示 它不再被访客处理器作为共享锁定座持有。